LiteFX::Rendering::ICommandBuffer::bind¶
bind overloads
Synopses¶
Declared in <litefx/rendering_api.hpp>
Binds an arbitrary input range of descriptor sets to the last pipeline that was used by the command buffer.
[[dllimport, dllexport]] void bind(Span<IDescriptorSet const*> descriptorSets) const;
Binds the provided descriptor to the last pipeline that was used by the command buffer.
[[dllimport, dllexport]] void bind(IDescriptorSet const& descriptorSet) const;
Binds a index buffer to the pipeline.
[[dllimport, dllexport]] void bind(IIndexBuffer const& buffer) const;
Binds a vertex buffer to the pipeline.
[[dllimport, dllexport]] void bind(IVertexBuffer const& buffer) const;
Binds an arbitrary input range of descriptor sets to the provided pipeline.
[[dllimport, dllexport]] void bind(
Span<IDescriptorSet const*> descriptorSets,
IPipeline const& pipeline) const;
Binds the provided descriptor set to the provided pipeline.
[[dllimport, dllexport]] void bind(
IDescriptorSet const& descriptorSet,
IPipeline const& pipeline) const;
Binds an arbitrary input range of descriptor sets to the last pipeline that was used by the command buffer.
template<typename TSelf>
void bind(this
TSelf const& self,
auto&& descriptorSets)
requires std::derived_from<std::remove_cv_t<std::remove_pointer_t<std::iter_value_t<std::ranges::iterator_t<std::remove_cv_t<std::remove_reference_t<decltype(descriptorSets)>>>>>>, IDescriptorSet>;
Binds an arbitrary input range of descriptor sets to the last pipeline that was used by the command buffer.
template<
typename TSelf,
typename T>
void bind(this
TSelf const& self,
std::initializer_list<T const*> descriptorSets)
requires std::derived_from<T, IDescriptorSet>;
Binds an arbitrary input range of descriptor sets to the provided pipeline.
template<typename TSelf>
void bind(this
TSelf const& self,
auto&& descriptorSets,
TSelf::pipeline_type const& pipeline)
requires std::derived_from<std::remove_cv_t<std::remove_pointer_t<std::iter_value_t<std::ranges::iterator_t<std::remove_cv_t<std::remove_reference_t<decltype(descriptorSets)>>>>>>, IDescriptorSet>;
Binds an arbitrary input range of descriptor sets to the last pipeline that was used by the command buffer.
template<
typename TSelf,
typename T>
void bind(this
TSelf const& self,
std::initializer_list<T const*> descriptorSets,
TSelf::pipeline_type const& pipeline);
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. |
| descriptorSet | The descriptor set to bind. |
| buffer | The index buffer to bind to the pipeline. |
| pipeline | The pipeline to bind the descriptor set to. |
See Also¶
use
IndexBuffer
drawIndexed
VertexBuffer
draw