Skip to content

LiteFX::Rendering::DescriptorBinding::elementsPerDescriptor

The number of consecutive buffer elements viewed by each descriptor.

Synopsis

Declared in <litefx/rendering_api.hpp>

UInt32 elementsPerDescriptor = 1;

Description

A value of 1 binds each element to its own descriptor. A value of 0 binds all elements to a single descriptor. Otherwise, the bound elements are distributed across elements / elementsPerDescriptor descriptors. Views over multiple elements require buffers without padding between elements. Ignored for resources other than IBuffer.