removing spirv headers dependencies, reworking architecture

This commit is contained in:
2025-12-24 18:09:16 +01:00
parent b4ff6f559b
commit 885919952c
15 changed files with 2969 additions and 140 deletions

41
src/Runtime.zig git.filemode.normal_file
View File

@@ -0,0 +1,41 @@
const std = @import("std");
const spv = @import("spv.zig");
const SpvVoid = spv.SpvVoid;
const SpvByte = spv.SpvByte;
const SpvWord = spv.SpvWord;
const SpvBool = spv.SpvBool;
const Module = @import("Module.zig");
const WordIterator = @import("WordIterator.zig");
const Self = @This();
pub const CallError = error{
Unreachable,
Killed,
Error,
InitEnd,
ExecEnd,
};
module: *Module,
it: WordIterator,
stack_frames: std.SinglyLinkedList,
pub fn init(module: *Module) !Self {
return .{
.module = module,
.it = module.it,
.stack_frames = .{},
};
}
pub fn deinit(self: *const Self) void {
_ = self;
}
pub fn callEntryPoint(self: *Self, entry: SpvWord) CallError!void {
_ = self;
_ = entry;
}