Skip to content

LiteFX::Rendering::IBuffer::bufferDescriptorRange

Resolves the number of buffer elements and descriptors described by a binding.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] BufferDescriptorRange bufferDescriptorRange(
    UInt32 firstElement,
    UInt32 elements,
    UInt32 elementsPerDescriptor) const;

Exceptions

NameThrown on
ArgumentOutOfRangeExceptionThrown, if the element range exceeds the buffer.
InvalidArgumentExceptionThrown, if the number of elements is not a multiple of the elements per descriptor.

Return Value

The number of descriptors and the resolved number of elements per descriptor.

Parameters

NameDescription
firstElementThe index of the first buffer element to bind.
elementsThe number of buffer elements to bind, or 0 to bind all remaining elements.
elementsPerDescriptorThe number of elements viewed by each descriptor, or 0 to view all bound elements with a single descriptor.