Skip to content

LiteFX::Rendering::DescriptorSet::update

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

Synopsis

Declared in <litefx/rendering.hpp>

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

Parameters

NameDescription
bindingThe buffer binding point.
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.