removing spirv headers dependencies, reworking architecture
This commit is contained in:
20
src/lib.zig
20
src/lib.zig
@@ -1,24 +1,16 @@
|
||||
const std = @import("std");
|
||||
pub const spv = @cImport(@cInclude("spirv.h"));
|
||||
|
||||
pub const Image = @import("Image.zig");
|
||||
pub const Interpreter = @import("Interpreter.zig");
|
||||
pub const Module = @import("Module.zig");
|
||||
pub const State = @import("State.zig");
|
||||
pub const Runtime = @import("Runtime.zig");
|
||||
|
||||
const opcode = @import("opcode.zig");
|
||||
const spv_data = @import("spv_data.zig");
|
||||
|
||||
pub const SpvVoid = void;
|
||||
pub const SpvByte = u8;
|
||||
pub const SpvWord = u32;
|
||||
pub const SpvBool = bool;
|
||||
const opcodes = @import("opcodes.zig");
|
||||
const spv = @import("spv.zig");
|
||||
|
||||
test {
|
||||
std.testing.refAllDecls(Image);
|
||||
std.testing.refAllDecls(Interpreter);
|
||||
std.testing.refAllDecls(Module);
|
||||
std.testing.refAllDecls(State);
|
||||
std.testing.refAllDecls(opcode);
|
||||
std.testing.refAllDecls(spv_data);
|
||||
std.testing.refAllDecls(Runtime);
|
||||
std.testing.refAllDecls(opcodes);
|
||||
std.testing.refAllDecls(spv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user