#include <RadientVertexLayout.h>
Public Attributes | |
| Uint32 | ByteStride = RADIENT_VERTEX_AUTO_STRIDE |
Description of a logical byte stream containing one fixed-size record per vertex.
A record may contain one attribute or several interleaved attributes, with optional padding. Attributes select this stream by their BufferIndex. This descriptor contains layout metadata only; it neither provides a data pointer nor requires a separate physical allocation or GPU buffer for the stream.
| Uint32 Diligent::RadientVertexBufferLayoutDesc::ByteStride = RADIENT_VERTEX_AUTO_STRIDE |
Distance in bytes between the starts of consecutive vertex records, including padding within and between records. RADIENT_VERTEX_AUTO_STRIDE (the C++ default) computes the smallest stride containing all attributes in this buffer: the maximum resolved ByteOffset plus element size. No trailing alignment padding is added, and gaps from explicit offsets are preserved.
An explicit stride is preserved and must contain every attribute referencing this buffer. Explicit and resolved strides are in [1, 0xFFFFFFFE]; zero is invalid, and 0xFFFFFFFF is reserved for automatic stride. A buffer referenced by no attributes requires an explicit nonzero stride because there is no record size to infer. The layout imposes no alignment requirement. C callers set RADIENT_VERTEX_AUTO_STRIDE explicitly to request packing.