From a484c0cbe1baf9627b504bdcad7402ba9e516fae Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 23 Nov 2025 11:29:04 +1100 Subject: [PATCH] add binding to create sampler --- vulkan.d | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vulkan.d b/vulkan.d index aaddac2..7a2bb9d 100644 --- a/vulkan.d +++ b/vulkan.d @@ -2212,7 +2212,7 @@ CheckAndRecreateSwapchain(Vulkan* vk) } Descriptor -CreateSampler(Vulkan* vk, MipmapMode mode) +CreateSampler(Vulkan* vk, MipmapMode mode, u32 binding) { VkPhysicalDeviceProperties props; vkGetPhysicalDeviceProperties(vk.physical_device, &props); @@ -2231,7 +2231,10 @@ CreateSampler(Vulkan* vk, MipmapMode mode) mipmapMode: mode, }; - Descriptor sampler = { type: DT.Sampler }; + Descriptor sampler = { + type: DT.Sampler, + binding: binding, + }; VkResult result = vkCreateSampler(vk.device, &sampler_info, null, &sampler.sampler); VkCheckA("vkCreateSampler failure", result);