Having read the docs and done a little looking around I’m still unclear.
The title largely sums up the question, but to ask a more specific question:
Given a shader with a single binding and it’s binding being:
layout(binding = 0) buffer Buffer {
uint x[];
};
I know that setting VkDescriptorSetLayoutBinding::descriptorCount = 1
works:
VkDescriptorSetLayoutCreateInfo descriptorSetLayoutCreateInfo = {};
{
VkDescriptorSetLayoutBinding binding = {};
{
binding.binding = 0;
binding.descriptorCount = 1;
binding.stageFlags = VK_SHADER_STAGE_COMPUTE_BIT;
}
descriptorSetLayoutCreateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO;
descriptorSetLayoutCreateInfo.bindingCount = 1;
descriptorSetLayoutCreateInfo.pBindings = &binding;
}
In changing VkDescriptorSetLayoutBinding::descriptorCount
to 2 or some other value, what would I need to change?