Describes a 2D texture for the XG texture layout APIs.
struct XG_TEXTURE2D_DESC {
UINT Width;
UINT Height;
UINT MipLevels;
UINT ArraySize;
XG_FORMAT Format;
XG_SAMPLE_DESC SampleDesc;
XG_USAGE Usage;
UINT BindFlags;
UINT CPUAccessFlags;
UINT MiscFlags;
UINT ESRAMOffsetBytes;
UINT ESRAMUsageBytes;
XG_TILE_MODE TileMode;
UINT Pitch;
};
Width
The width.
Height
The height.
MipLevels
The mip levels.
ArraySize
The array size.
Format
The resource data format, as a pointer to an XG_FORMAT enumeration.
SampleDesc
The description of the sample, as an XG_SAMPLE_DESC structure.
Usage
The usage, as an XG_USAGE enumeration constant.
BindFlags
Flags that identify how the buffer will be bound to the pipeline. A logically OR’d combination of XG_BIND_FLAG enumeration constants.
CPUAccessFlags
CPU access flags, or 0 if no CPU access is necessary. A logically OR’d combination of XG_CPU_ACCESS_FLAG enumeration constants.
MiscFlags
Miscellaneous flags, or 0 if unused. A logically OR’d combination of XG_RESOURCE_MISC_FLAG enumeration constants.
ESRAMOffsetBytes
This member is unused in XG, and is ignored.
ESRAMUsageBytes
This member is unused in XG, and is ignored.
TileMode
The tile mode, as a pointer to an XG_TILE_MODE enumeration.
Pitch
The pitch.
This structure is a superset of D3D11_TEXTURE2D_DESC, and contains additional parameters.
This structure is used by the following API items:
Header: Declared in xg.h.
Library: Use xg_x.lib.