diff options
Diffstat (limited to 'tools/gfx/vulkan/vk-descriptor-allocator.cpp')
| -rw-r--r-- | tools/gfx/vulkan/vk-descriptor-allocator.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/gfx/vulkan/vk-descriptor-allocator.cpp b/tools/gfx/vulkan/vk-descriptor-allocator.cpp index 49199091d..afaa836ca 100644 --- a/tools/gfx/vulkan/vk-descriptor-allocator.cpp +++ b/tools/gfx/vulkan/vk-descriptor-allocator.cpp @@ -1,4 +1,5 @@ #include "vk-descriptor-allocator.h" + #include "vk-util.h" namespace gfx @@ -31,13 +32,17 @@ 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 }; + 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)); + m_api->m_device, + &descriptorPoolInfo, + nullptr, + &descriptorPool)); pools.add(descriptorPool); return descriptorPool; } @@ -77,4 +82,4 @@ VulkanDescriptorSet DescriptorSetAllocator::allocate(VkDescriptorSetLayout layou assert(!"descriptor set allocation failed."); return rs; } -} +} // namespace gfx |
