Skip to content

LiteFX::Rendering::Backends::DirectX12Device::bindDescriptorSet

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

Synopsis

Declared in <litefx/rendering.hpp>

[[dllimport]] void bindDescriptorSet(
    command_buffer_type const& commandBuffer,
    descriptor_set_type const& descriptorSet,
    pipeline_type 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.