29 #include "BasicTypes.h" 34 static constexpr Uint32 iMaxLayoutElements = 16;
86 Uint32 _BufferSlot = 0,
87 Uint32 _NumComponents = 0,
89 Bool _IsNormalized = True,
90 Uint32 _RelativeOffset = 0,
92 Uint32 _InstanceDataStepRate = 1) :
99 Frequency(_Frequency),
Uint32 NumComponents
Number of components in the element. Allowed values are 1, 2, 3, and 4.
Definition: InputLayout.h:46
Bool IsNormalized
For signed and unsigned integer value types (VT_INT8, VT_INT16, VT_INT32, VT_UINT8, VT_UINT16, VT_UINT32) indicates if the value should be normalized to [-1,+1] or [0, 1] range respectively. For floating point types (VT_FLOAT16 and VT_FLOAT32), this member is ignored.
Definition: InputLayout.h:56
Uint32 InputIndex
Input index of the element, which is specified in the vertex shader.
Definition: InputLayout.h:40
Namespace for the OpenGL implementation of the graphics engine.
Definition: BufferD3D11Impl.h:34
Uint32 RelativeOffset
Relative offset, in bytes, to the element bits. If this value is zero, the offset will be computed au...
Definition: InputLayout.h:62
Uint32 InstanceDataStepRate
The number of instances to draw using the same per-instance data before advancing in the buffer by on...
Definition: InputLayout.h:82
Description of a single element of the input layout.
Definition: InputLayout.h:37
FREQUENCY
Input frequency.
Definition: InputLayout.h:65
VALUE_TYPE
Value type.
Definition: GraphicsTypes.h:39
Frequency is undefined.
Definition: InputLayout.h:68
Uint32 BufferSlot
Buffer slot index that this element is read from.
Definition: InputLayout.h:43
Input data is per-instance data.
Definition: InputLayout.h:74
Full-precision 32-bit floating point.
Definition: GraphicsTypes.h:49
LayoutElement(Uint32 _InputIndex=0, Uint32 _BufferSlot=0, Uint32 _NumComponents=0, VALUE_TYPE _ValueType=VT_FLOAT32, Bool _IsNormalized=True, Uint32 _RelativeOffset=0, FREQUENCY _Frequency=FREQUENCY_PER_VERTEX, Uint32 _InstanceDataStepRate=1)
Initializes the structure.
Definition: InputLayout.h:85
Input data is per-vertex data.
Definition: InputLayout.h:71
VALUE_TYPE ValueType
Type of the element components, see Diligent::VALUE_TYPE for details.
Definition: InputLayout.h:49
Helper value that stores the total number of frequencies in the enumeration.
Definition: InputLayout.h:77