Skip to content

LiteFX::Rendering::IGraphicsDevice::bindDescriptorSet

Binds the descriptors of the descriptor set to the global descriptor heaps.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] void bindDescriptorSet(
    ICommandBuffer const& commandBuffer,
    IDescriptorSet const& descriptorSet,
    IPipeline const& pipeline) const;

Description

Descriptors can be updated after binding the descriptor set. However, updates are visible to all command buffers immediately, so you have to ensure manually that descriptors are not updated while they may still be in use by the GPU.

Parameters

NameDescription
commandBufferThe command buffer to bind the descriptor set on.
descriptorSetThe descriptor set to bind.
pipelineThe pipeline to bind the descriptor set to.