LiteFX::Rendering::DescriptorBinding::texelBuffer¶
Creates a descriptor binding for a texel buffer.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, nodiscard, dllexport]] constexpr static DescriptorBinding texelBuffer(
IBuffer const& buffer,
Format texelFormat,
UInt32 firstElement = 0,
UInt32 elements = 0,
UInt32 elementsPerDescriptor = 1) noexcept;Return Value¶
The descriptor binding.
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| buffer | The buffer to bind. |
| texelFormat | The format used to read the buffer elements. |
| firstElement | The first element in the buffer to bind. |
| elements | The number of elements in the buffer to bind. |
| elementsPerDescriptor | The number of elements to bind to a single descriptor. |