Optional descriptor count parameter for descriptor set layout binding initializer
This commit is contained in:
parent
f4cc6bf5a4
commit
2749b846b4
2 changed files with 5 additions and 4 deletions
|
|
@ -630,14 +630,14 @@ VkDescriptorPoolSize vkTools::initializers::descriptorPoolSize(
|
|||
VkDescriptorSetLayoutBinding vkTools::initializers::descriptorSetLayoutBinding(
|
||||
VkDescriptorType type,
|
||||
VkShaderStageFlags stageFlags,
|
||||
uint32_t binding)
|
||||
uint32_t binding,
|
||||
uint32_t count)
|
||||
{
|
||||
VkDescriptorSetLayoutBinding setLayoutBinding = {};
|
||||
setLayoutBinding.descriptorType = type;
|
||||
setLayoutBinding.stageFlags = stageFlags;
|
||||
setLayoutBinding.binding = binding;
|
||||
// Default value in all examples
|
||||
setLayoutBinding.descriptorCount = 1;
|
||||
setLayoutBinding.descriptorCount = count;
|
||||
return setLayoutBinding;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -180,7 +180,8 @@ namespace vkTools
|
|||
VkDescriptorSetLayoutBinding descriptorSetLayoutBinding(
|
||||
VkDescriptorType type,
|
||||
VkShaderStageFlags stageFlags,
|
||||
uint32_t binding);
|
||||
uint32_t binding,
|
||||
uint32_t count = 1);
|
||||
|
||||
VkDescriptorSetLayoutCreateInfo descriptorSetLayoutCreateInfo(
|
||||
const VkDescriptorSetLayoutBinding* pBindings,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue