From ab0ca67f40c755aee4c19ffc90911f66608a1ea0 Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 6 Nov 2025 07:57:38 +1100 Subject: [PATCH] fix descriptor write --- vulkan.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vulkan.d b/vulkan.d index 705c7b4..ba46846 100644 --- a/vulkan.d +++ b/vulkan.d @@ -2266,7 +2266,7 @@ Write(Vulkan* vk, DescSet set, Descriptor[] descs) write.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; write.descriptorType = descs[i].type; - write.dstSet = set; + write.dstSet = set.handle; write.dstBinding = descs[i].binding; write.descriptorCount = 1; @@ -2293,10 +2293,11 @@ Write(Vulkan* vk, DescSet set, Descriptor[] descs) { write.pTexelBufferView = &descs[i].buf_view.view; } break; + default: assert(false, "Unsupported descriptor type"); } } - vkUpdateDescriptorSets(vk.device, writes.length, writes.ptr, 0, null); + vkUpdateDescriptorSets(vk.device, cast(u32)writes.length, writes.ptr, 0, null); } void