The shader resource view format, consisting of the data format, number format, and swizzle.
struct D3D11X_SRV_FORMAT {
D3D11X_IMG_DATA_FORMAT DataFormat;
D3D11X_IMG_NUM_FORMAT NumFormat;
D3D11X_SWIZZLE Swizzle[4];
};
DataFormat
The data format, as an D3D11X_IMG_DATA_FORMAT enumeration constant.
NumFormat
The number format, as an D3D11X_IMG_NUM_FORMAT enumeration constant.
Swizzle
The swizzle, as a D3D11X_SWIZZLE enumeration constant.
This structure is used with shader resource views in Direct3D for Xbox One. This structure allows the title to change the data format, numeric format, and component swizzle of a shader resource view after creation. The formats and swizzles are specified in their hardware form, which is enumerated in D3D11X_IMG_DATA_FORMAT, D3D11X_IMG_NUM_FORMAT, and D3D11X_SWIZZLE.
This structure is output by ID3D11ShaderResourceView::GetFormatX, and is passed into ID3D11ShaderResourceView::SetFormatX.
Header: Declared in d3d11_x.h.