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¶
| Name | Description |
|---|---|
| binding | The buffer binding point. |
| buffer | The buffer to write to the descriptor set. |
| bufferElement | The index of the first element in the buffer to bind to the descriptor set. |
| elements | The number of elements from the buffer to bind to the descriptor set. A value of 0 binds all available elements, starting at bufferElement. |
| firstDescriptor | The index of the first descriptor in the descriptor array to update. |
| texelFormat | The format used to read a texel buffer. Required if binding binds a texel buffer and ignored otherwise. |