fix descriptor handling
This commit is contained in:
parent
ab0ca67f40
commit
528e4865c9
8
vulkan.d
8
vulkan.d
@ -340,6 +340,7 @@ alias SI = StepInitialized;
|
||||
|
||||
enum DescType : VkDescriptorType
|
||||
{
|
||||
None = u32.max,
|
||||
Sampler = VK_DESCRIPTOR_TYPE_SAMPLER,
|
||||
CombinedSampler = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER,
|
||||
Image = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE,
|
||||
@ -1074,6 +1075,13 @@ WaitForTransfers(Vulkan* vk)
|
||||
vkWaitForFences(vk.device, 1, &vk.imm_fence, VK_TRUE, u64.max);
|
||||
}
|
||||
|
||||
void
|
||||
CreateImageView(Vulkan* vk, Descriptor* view, u32 w, u32 h, u32 ch, u8[] data)
|
||||
{
|
||||
view.type = DT.Image;
|
||||
CreateImageView(vk, &view.view, w, h, ch, data);
|
||||
}
|
||||
|
||||
pragma(inline): void
|
||||
CreateImageView(Vulkan* vk, ImageView* view, u32 w, u32 h, u32 ch, u8[] data)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user