SpiecsEngine
 
Loading...
Searching...
No Matches

◆ AddBinding()

void Spices::VulkanDescriptorSet::AddBinding ( uint32_t binding,
VkDescriptorType descriptorType,
VkShaderStageFlags stageFlags,
uint32_t count = 1 )

Add a binding to this descriptor set.

Parameters
[in]bindingWhich binging location is.
[in]descriptorTypeWhat type it is.
[in]stageFlagsShader access flags.
[in]countArray num.

Instance a VkDescriptorSetLayoutBinding.

Instance a VkDescriptorSetLayoutBinding.

Definition at line 226 of file VulkanDescriptor.cpp.

232 {
234
238 VkDescriptorSetLayoutBinding layoutBinding{};
239 layoutBinding.binding = binding;
240 layoutBinding.descriptorType = descriptorType;
241 layoutBinding.descriptorCount = count;
242 layoutBinding.stageFlags = stageFlags;
243
244 m_Bindings[binding] = layoutBinding;
245 }
#define SPICES_PROFILE_ZONE
std::unordered_map< uint32_t, VkDescriptorSetLayoutBinding > m_Bindings
The bindings this descriptor set in use.
constexpr int count
Calculate count that meets requirement.
Definition TypeList.h:289