From 3717fb3790decd473352b0baaf63f050d40aea7d Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Sat, 4 Apr 2026 23:43:45 +0200 Subject: [PATCH] adding unsupported descriptor kinds --- build.zig.zon | 4 ++-- src/soft/SoftDescriptorSet.zig | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index ca45753..2f81795 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -59,8 +59,8 @@ .lazy = true, }, .SPIRV_Interpreter = .{ - .url = "git+https://git.kbz8.me/kbz_8/SPIRV-Interpreter#a83a761afa45d8223c20110b8aee68c98271f531", - .hash = "SPIRV_Interpreter-0.0.1-ajmpn3p4BADxJRmBtTxMRKcAWxGLNgSNrwZ8yeybEOjW", + .url = "git+https://git.kbz8.me/kbz_8/SPIRV-Interpreter#85e0fe4362e3425a0d3142b873f0e8d9cca40fc6", + .hash = "SPIRV_Interpreter-0.0.1-ajmpnwF9BAAAb2kR9WjfMH0h3kOjhGICGfdId_4lomVD", }, }, diff --git a/src/soft/SoftDescriptorSet.zig b/src/soft/SoftDescriptorSet.zig index 4fb2106..402929e 100644 --- a/src/soft/SoftDescriptorSet.zig +++ b/src/soft/SoftDescriptorSet.zig @@ -22,6 +22,7 @@ const DescriptorBuffer = struct { const Descriptor = union(enum) { buffer: []DescriptorBuffer, image: struct {}, + unsupported: struct {}, }; interface: Interface, @@ -113,6 +114,9 @@ pub fn write(interface: *Interface, write_data: vk.WriteDescriptorSet) VkError!v } } }, - else => base.unsupported("descriptor type {s} for writting", .{@tagName(write_data.descriptor_type)}), + else => { + self.descriptors[write_data.dst_binding] = .{ .unsupported = .{} }; + base.unsupported("descriptor type {s} for writting", .{@tagName(write_data.descriptor_type)}); + }, } }