mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
pkg/spirv-cross
This commit is contained in:
@ -38,7 +38,7 @@ pub const Program = opaque {
|
||||
return c.glslang_program_SPIRV_get_ptr(@ptrCast(self));
|
||||
}
|
||||
|
||||
pub fn sprivGetMessages(self: *Program) ![:0]const u8 {
|
||||
pub fn spirvGetMessages(self: *Program) ![:0]const u8 {
|
||||
const ptr = c.glslang_program_SPIRV_get_messages(@ptrCast(self));
|
||||
return std.mem.sliceTo(ptr, 0);
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ pub fn build(b: *std.Build) !void {
|
||||
const target = b.standardTargetOptions(.{});
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
_ = b.addModule("spirv-cross", .{ .source_file = .{ .path = "main.zig" } });
|
||||
_ = b.addModule("spirv_cross", .{ .source_file = .{ .path = "main.zig" } });
|
||||
|
||||
const upstream = b.dependency("spirv_cross", .{});
|
||||
const lib = try buildSpirvCross(b, upstream, target, optimize);
|
||||
@ -34,7 +34,7 @@ fn buildSpirvCross(
|
||||
optimize: std.builtin.OptimizeMode,
|
||||
) !*std.Build.Step.Compile {
|
||||
const lib = b.addStaticLibrary(.{
|
||||
.name = "spirv-cross",
|
||||
.name = "spirv_cross",
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
@ -1,3 +1,3 @@
|
||||
pub usingnamespace @cImport({
|
||||
@cInclude("spriv_cross/external_interface.h");
|
||||
@cInclude("spirv_cross/external_interface.h");
|
||||
});
|
||||
|
Reference in New Issue
Block a user