mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
pkg/glslang: yeet usingns
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
pub usingnamespace @cImport({
|
||||
pub const c = @cImport({
|
||||
@cInclude("glslang/Include/glslang_c_interface.h");
|
||||
@cInclude("glslang/Public/resource_limits_c.h");
|
||||
});
|
||||
|
@ -1,4 +1,4 @@
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
|
||||
pub fn init() !void {
|
||||
if (c.glslang_initialize_process() == 0) return error.GlslangInitFailed;
|
||||
|
@ -1,8 +1,14 @@
|
||||
pub const c = @import("c.zig");
|
||||
const initpkg = @import("init.zig");
|
||||
const program = @import("program.zig");
|
||||
const shader = @import("shader.zig");
|
||||
|
||||
pub const c = @import("c.zig").c;
|
||||
pub const testing = @import("test.zig");
|
||||
pub usingnamespace @import("init.zig");
|
||||
pub usingnamespace @import("program.zig");
|
||||
pub usingnamespace @import("shader.zig");
|
||||
|
||||
pub const init = initpkg.init;
|
||||
pub const finalize = initpkg.finalize;
|
||||
pub const Program = program.Program;
|
||||
pub const Shader = shader.Shader;
|
||||
|
||||
test {
|
||||
@import("std").testing.refAllDecls(@This());
|
||||
|
@ -1,5 +1,5 @@
|
||||
const std = @import("std");
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
const testlib = @import("test.zig");
|
||||
const Shader = @import("shader.zig").Shader;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
const std = @import("std");
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
const testlib = @import("test.zig");
|
||||
|
||||
pub const Shader = opaque {
|
||||
|
Reference in New Issue
Block a user