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);