summaryrefslogtreecommitdiffstats
path: root/tools/gfx/vulkan/vk-descriptor-allocator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/vulkan/vk-descriptor-allocator.cpp')
-rw-r--r--tools/gfx/vulkan/vk-descriptor-allocator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gfx/vulkan/vk-descriptor-allocator.cpp b/tools/gfx/vulkan/vk-descriptor-allocator.cpp
index d5e9b5863..49199091d 100644
--- a/tools/gfx/vulkan/vk-descriptor-allocator.cpp
+++ b/tools/gfx/vulkan/vk-descriptor-allocator.cpp
@@ -31,6 +31,10 @@ VkDescriptorPool DescriptorSetAllocator::newPool()
descriptorPoolInfo.pPoolSizes = poolSizes.getBuffer();
descriptorPoolInfo.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT;
+ VkDescriptorPoolInlineUniformBlockCreateInfo inlineUniformBlockInfo = { VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_INLINE_UNIFORM_BLOCK_CREATE_INFO };
+ inlineUniformBlockInfo.maxInlineUniformBlockBindings = 16;
+ descriptorPoolInfo.pNext = &inlineUniformBlockInfo;
+
VkDescriptorPool descriptorPool = VK_NULL_HANDLE;
SLANG_VK_CHECK(m_api->vkCreateDescriptorPool(
m_api->m_device, &descriptorPoolInfo, nullptr, &descriptorPool));