XG_RESOURCE_LAYOUT Structure

Describes the entire hardware layout of a single resource. Certain resource configurations include up to 4 planes, each plane being a single mip chain.

Syntax

struct XG_RESOURCE_LAYOUT {
    UINT64 SizeBytes;
    UINT64 BaseAlignmentBytes;
    UINT32 MipLevels;
    UINT32 Planes;
    XG_PLANE_LAYOUT Plane[4];
    XG_RESOURCE_DIMENSION Dimension;
};  

Members

SizeBytes
The size, in bytes.

BaseAlignmentBytes
The base alignment, in bytes.

MipLevels
The mip levels.

Planes
The planes.

Plane
The plane layout, as an array of XG_PLANE_LAYOUT structures.

Dimension
The dimensions of the resource, as an XG_RESOURCE_DIMENSION enumeration constant, such as for unknown, buffer, 1D texture, 2D texture, or 3D texture.

Remarks

This structure is used by the following API items:

Requirements

Header: Declared in xg.h.

Library: Use xg_x.lib.