XG_TEXTURE1D_DESC Structure

Describes a 1D texture for the XG texture layout APIs.

Syntax

struct XG_TEXTURE1D_DESC {
    UINT Width;
    UINT MipLevels;
    UINT ArraySize;
    XG_FORMAT Format;
    XG_USAGE Usage;
    UINT BindFlags;
    UINT CPUAccessFlags;
    UINT MiscFlags;
    UINT ESRAMOffsetBytes;
    UINT ESRAMUsageBytes;
    XG_TILE_MODE TileMode;
    UINT Pitch;
};  

Members

Width
The width.

MipLevels
The mip levels.

ArraySize
The array size.

Format
The resource data format, as a pointer to an XG_FORMAT enumeration.

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.

Remarks

This structure is used by the following API items:

This structure is a superset of D3D11_TEXTURE1D_DESC, and contains additional parameters.

Remarks

Requirements

Header: Declared in xg.h.

Library: Use xg_x.lib.