tp::DescriptorSetSetup struct

Used as configuration for creating a new tp::DescriptorSet object.

Constructors, destructors, conversion operators

DescriptorSetSetup(ArrayView<const Descriptor> descriptors, DescriptorSetFlagMask flags = DescriptorSetFlagMask::None(), const char* debugName = nullptr)

Function documentation

tp::DescriptorSetSetup::DescriptorSetSetup(ArrayView<const Descriptor> descriptors, DescriptorSetFlagMask flags = DescriptorSetFlagMask::None(), const char* debugName = nullptr)

Parameters
descriptors The array of descriptors following the layout that will be passed to tp::DescriptorPool::allocateDescriptorSets along with this setup structure. The descriptors must be in the same order as the order of tp::DescriptorBinding values provided to tp::Device::createDescriptorSetLayout, regardless of their bindingNumber. For each tp::DescriptorBinding, an arraySize number of valid descriptors must be present, therefore the total number of descriptors in the array must match tp::DescriptorSetLayout::getDescriptorCount.
flags Additional flags for the descriptor set.
debugName The debug name identifier for the object.