Diligent Engine API Reference: Diligent::BufferDesc::BufferFormat Struct Reference

Diligent Engine API Reference

Public Member Functions | Public Attributes | List of all members
Diligent::BufferDesc::BufferFormat Struct Reference

Buffer format description. More...

## Public Member Functions
| BufferFormat ()
| Initializes the structure members with default values. More...
bool | operator== (const BufferFormat &RHS) const
| Tests if two structures are equivalent.

## Public Attributes
VALUE_TYPE | ValueType
| Type of components. For a formatted buffer, this value cannot be VT_UNDEFINED.
Uint32 | NumComponents
| Number of components. Allowed values: 1, 2, 3, 4. For a formatted buffer, this value cannot be 0.
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.

## Detailed Description

Buffer format description.

## Constructor & Destructor Documentation

## ◆ BufferFormat()

Diligent::BufferDesc::BufferFormat::BufferFormat | ( |  | ) |
| inline

Initializes the structure members with default values.

Default values:

Member | Default value
--- | ---
ValueType | VT_UNDEFINED
NumComponents | 0
IsNormalized | True