add binding to create sampler
This commit is contained in:
parent
4b43421dc9
commit
a484c0cbe1
7
vulkan.d
7
vulkan.d
@ -2212,7 +2212,7 @@ CheckAndRecreateSwapchain(Vulkan* vk)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Descriptor
|
Descriptor
|
||||||
CreateSampler(Vulkan* vk, MipmapMode mode)
|
CreateSampler(Vulkan* vk, MipmapMode mode, u32 binding)
|
||||||
{
|
{
|
||||||
VkPhysicalDeviceProperties props;
|
VkPhysicalDeviceProperties props;
|
||||||
vkGetPhysicalDeviceProperties(vk.physical_device, &props);
|
vkGetPhysicalDeviceProperties(vk.physical_device, &props);
|
||||||
@ -2231,7 +2231,10 @@ CreateSampler(Vulkan* vk, MipmapMode mode)
|
|||||||
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);
|
VkResult result = vkCreateSampler(vk.device, &sampler_info, null, &sampler.sampler);
|
||||||
VkCheckA("vkCreateSampler failure", result);
|
VkCheckA("vkCreateSampler failure", result);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user