adding descriptor index to descriptor write
All checks were successful
Build / build (push) Successful in 2m18s
Test / build (push) Successful in 8m55s

This commit is contained in:
2026-03-10 17:46:38 +01:00
parent ad013d23fc
commit 1a48af468d
3 changed files with 19 additions and 5 deletions

View File

@@ -26,6 +26,8 @@ pub fn main() !void {
var ssbo: SSBO = .{};
try rt.writeDescriptorSet(std.mem.asBytes(&ssbo), 0, 0, 0);
for (0..16) |i| {
for (0..16) |x| {
const global_invocation_indices = [3]i32{
@@ -35,7 +37,6 @@ pub fn main() !void {
};
try rt.writeBuiltIn(std.mem.asBytes(&global_invocation_indices), .GlobalInvocationId);
try rt.writeDescriptorSet(std.mem.asBytes(&ssbo), 0, 0);
rt.callEntryPoint(allocator, entry) catch |err| switch (err) {
spv.Runtime.RuntimeError.OutOfBounds => continue,
else => return err,