Skip to content

LiteFX::Rendering::Backends::DirectX12DescriptorSet::update

update overloads

Synopses

Declared in <litefx/backends/dx12.hpp>

Updates an acceleration structure within the current descriptor set.

[[dllimport, dllexport]] virtual void update(
    UInt32 binding,
    IDirectX12AccelerationStructure const& accelerationStructure,
    UInt32 descriptor = 0) const override;

» more...

Updates one or more sampler descriptors within the current descriptor set.

[[dllimport, dllexport]] virtual void update(
    UInt32 binding,
    IDirectX12Sampler const& sampler,
    UInt32 descriptor = 0) const override;

» more...

Updates an acceleration structure within the current descriptor set.

[[dllimport]] virtual void update(
    UInt32 binding,
    acceleration_structure_type const& accelerationStructure,
    UInt32 descriptor = 0) const = 0;

» more...

Updates one or more sampler descriptors within the current descriptor set.

[[dllimport]] virtual void update(
    UInt32 binding,
    sampler_type const& sampler,
    UInt32 descriptor = 0) const = 0;

» more...

Updates one or more buffer descriptors within the current descriptor set.

[[dllimport, dllexport]] virtual void update(
    UInt32 binding,
    IDirectX12Buffer const& buffer,
    UInt32 bufferElement = 0,
    UInt32 elements = 0,
    UInt32 firstDescriptor = 0,
    Format texelFormat = Format::None) const override;

» more...

Updates one or more buffer descriptors within the current descriptor set.

[[dllimport]] virtual void update(
    UInt32 binding,
    buffer_type const& buffer,
    UInt32 bufferElement = 0,
    UInt32 elements = 0,
    UInt32 firstDescriptor = 0,
    Format texelFormat = Format::None) const = 0;

» more...

Updates one or more texture descriptors within the current descriptor set.

[[dllimport, dllexport]] virtual void update(
    UInt32 binding,
    IDirectX12Image const& texture,
    UInt32 descriptor = 0,
    UInt32 firstLevel = 0,
    UInt32 levels = 0,
    UInt32 firstLayer = 0,
    UInt32 layers = 0) const override;

» more...

Updates one or more texture descriptors within the current descriptor set.

[[dllimport]] virtual void update(
    UInt32 binding,
    image_type const& texture,
    UInt32 descriptor = 0,
    UInt32 firstLevel = 0,
    UInt32 levels = 0,
    UInt32 firstLayer = 0,
    UInt32 layers = 0) const = 0;

» more...

Parameters

NameDescription
bindingThe acceleration structure binding point.
accelerationStructureThe acceleration structure to write to the descriptor set.
descriptorThe index of the descriptor in the descriptor array to bind the acceleration structure to.
samplerThe sampler to write to the descriptor set.
bufferThe buffer to write to the descriptor set.
bufferElementThe index of the first element in the buffer to bind to the descriptor set.
elementsThe number of elements from the buffer to bind to the descriptor set. A value of 0 binds all available elements, starting at bufferElement.
firstDescriptorThe index of the first descriptor in the descriptor array to update.
texelFormatThe format used to read a texel buffer. Required if binding binds a texel buffer and ignored otherwise.
textureThe texture to write to the descriptor set.
firstLevelThe index of the first mip-map level to bind.
levelsThe number of mip-map levels to bind. A value of 0 binds all available levels, starting at firstLevel.
firstLayerThe index of the first layer to bind.
layersThe number of layers to bind. A value of 0 binds all available layers, starting at firstLayer.