Skip to content

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

NameDescription
bufferThe buffer to bind.
texelFormatThe format used to read the buffer elements.
firstElementThe first element in the buffer to bind.
elementsThe number of elements in the buffer to bind.
elementsPerDescriptorThe number of elements to bind to a single descriptor.