D3D11X_FORMAT Structure

Describes a GPU format through a combination of data type and number information.

Syntax

typedef struct D3D11X_FORMAT {
    union {
        struct {
            D3D11X_DATA_FORMAT DataFormat;
            D3D11X_NUMBER_FORMAT NumberFormat;
        };
        UINT32 Dword[2];
        UINT64 Qword;
    };
} D3D11X_FORMAT;  

Members

DataFormat
The data format, as an D3D11X_DATA_FORMAT enumeration constant.

NumberFormat
The number format, as an D3D11X_NUMBER_FORMAT enumeration constant.

Dword
The format as an array of two UINT32 values.

Qword
The format as a UINT64 value.

Remarks

This structure is used with shader resource views in Direct3D for Xbox One. This structure allows the title to change the data format and numeric format of a shader resource view after creation. The formats are specified in their hardware form, which is enumerated in D3D11X_DATA_FORMAT and D3D11X_NUMBER_FORMAT.

Alternatively, you can specify two UINT32 values or one UINT64 value.

This structure is used by D3D11XGetD3d11xFormatFromDxgiFormat.

Requirements

Header: Declared in d3d11_x.h.