LiteFX::Rendering::ICommandBuffer::bind¶
Binds an arbitrary input range of descriptor sets to the last pipeline that was used by the command buffer.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
template<
typename TSelf,
typename T>
void bind(this
TSelf const& self,
std::initializer_list<T const*> descriptorSets)
requires std::derived_from<T, IDescriptorSet>;
Description¶
Note that if an element of descriptorSets is nullptr, it will be ignored.
Exceptions¶
| Name | Thrown on |
|---|---|
RuntimeException | Thrown, if no pipeline has been used before attempting to bind the descriptor set. |
Template Parameters¶
| Name | Description |
|---|---|
| T | The type of the descriptor sets. |
Parameters¶
| Name | Description |
|---|---|
| descriptorSets | The pointers to the descriptor sets to bind. |