improving spec constant support, adding quantization opcodes, adding getWorkgroupSize to runtime
Build / build (push) Failing after 7s
Test / build (push) Failing after 3s

This commit is contained in:
2026-06-26 23:25:00 +02:00
parent ae0914647b
commit cba8a4723d
5 changed files with 455 additions and 35 deletions
+2 -2
View File
@@ -283,7 +283,7 @@ test "Built-in inputs and outputs" {
defer rt.deinit(allocator);
const vertex_index: i32 = 7;
try rt.writeBuiltIn(std.mem.asBytes(&vertex_index), .VertexIndex);
try rt.writeBuiltIn(allocator, std.mem.asBytes(&vertex_index), .VertexIndex);
try rt.callEntryPoint(allocator, try rt.getEntryPointByName("main"));
var position: [4]f32 = undefined;
@@ -412,7 +412,7 @@ test "Derivative memory buffers" {
rt.clearDerivative(allocator, output_result);
const input = [_]f32{ 1.0, 2.0, 3.0 };
try rt.writeInput(std.mem.asBytes(&input), input_result);
try rt.writeInput(allocator, std.mem.asBytes(&input), input_result);
try rt.callEntryPoint(allocator, try rt.getEntryPointByName("main"));
var output: [4]f32 = undefined;
+1 -1
View File
@@ -49,7 +49,7 @@ pub const case = struct {
defer rt.deinit(allocator);
for (config.inputs, 0..) |input, n| {
try rt.writeInput(input[0..], module.input_locations[n][0]);
try rt.writeInput(allocator, input[0..], module.input_locations[n][0]);
}
for (config.descriptor_sets, 0..) |descriptor_set, set_index| {