Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::BufferFormat Struct Reference

Buffer format description. More...

#include <BufferView.h>

Public Member Functions

constexpr bool operator== (const BufferFormat &RHS) const
 Tests if two structures are equivalent.
 

Public Attributes

VALUE_TYPE ValueType = VT_UNDEFINED
 Type of components. For a formatted buffer views, this value cannot be VT_UNDEFINED.
 
Uint8 NumComponents = 0
 Number of components. Allowed values: 1, 2, 3, 4.
 
Bool IsNormalized = False
 

Detailed Description

Buffer format description.

Member Data Documentation

◆ IsNormalized

Bool Diligent::BufferFormat::IsNormalized = False

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.

◆ NumComponents

Uint8 Diligent::BufferFormat::NumComponents = 0

Number of components. Allowed values: 1, 2, 3, 4.

For a formatted buffer, this value cannot be 0