add uniform buffer to descriptor pool sizes
This commit is contained in:
parent
e5cfa8aac7
commit
1b4d997976
5
vulkan.d
5
vulkan.d
@ -553,7 +553,7 @@ AllocDescSet(Vulkan* vk, DescSetLayout layout, u32 dynamic_count = 0)
|
||||
alloc_info.descriptorPool = vk.active_pool;
|
||||
|
||||
result = vkAllocateDescriptorSets(vk.device, &alloc_info, &set.handle);
|
||||
VkCheckA("vkAllocateDescriptorSets failure", result); // TODO: look more into how to handle this
|
||||
VkCheckA("vkAllocateDescriptorSets failure", result);
|
||||
}
|
||||
|
||||
return set;
|
||||
@ -2158,12 +2158,13 @@ InitDescriptors(Vulkan* vk)
|
||||
void
|
||||
PushDescriptorPool(Vulkan* vk)
|
||||
{
|
||||
VkDescriptorPoolSize[7] pool_sizes = [
|
||||
VkDescriptorPoolSize[8] pool_sizes = [
|
||||
{ type: VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, descriptorCount: 4096 },
|
||||
{ type: VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, descriptorCount: 4096 },
|
||||
{ type: VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, descriptorCount: 4096 },
|
||||
{ type: VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, descriptorCount: 4096 },
|
||||
{ type: VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, descriptorCount: 4096 },
|
||||
{ type: VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, descriptorCount: 4096 },
|
||||
{ type: VK_DESCRIPTOR_TYPE_SAMPLER, descriptorCount: 4096 },
|
||||
{ type: VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER, descriptorCount: 4096 },
|
||||
];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user