Skip to content

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;

» more...

Binds the provided descriptor to the last pipeline that was used by the command buffer.

[[dllimport, dllexport]] void bind(IDescriptorSet const& descriptorSet) const;

» more...

Binds a index buffer to the pipeline.

[[dllimport, dllexport]] void bind(IIndexBuffer const& buffer) const;

» more...

Binds a vertex buffer to the pipeline.

[[dllimport, dllexport]] void bind(IVertexBuffer const& buffer) const;

» more...

Binds an arbitrary input range of descriptor sets to the provided pipeline.

[[dllimport, dllexport]] void bind(
    Span<IDescriptorSet const*> descriptorSets,
    IPipeline const& pipeline) const;

» more...

Binds the provided descriptor set to the provided pipeline.

[[dllimport, dllexport]] void bind(
    IDescriptorSet const& descriptorSet,
    IPipeline const& pipeline) const;

» more...

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>;

» more...

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>;

» more...

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>;

» more...

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);

» more...

Exceptions

NameThrown on
RuntimeExceptionThrown, if no pipeline has been used before attempting to bind the descriptor set.

Template Parameters

NameDescription
TThe type of the descriptor sets.

Parameters

NameDescription
descriptorSetsThe pointers to the descriptor sets to bind.
descriptorSetThe descriptor set to bind.
bufferThe index buffer to bind to the pipeline.
pipelineThe pipeline to bind the descriptor set to.

See Also

use

IndexBuffer

drawIndexed

VertexBuffer

draw