XG_MIPLEVEL_LAYOUT Structure

Describes a single mip level in the hardware layout of a texture. Each mip level comprises a number of contiguous slices in the case of an array or volume texture.

Syntax

struct XG_MIPLEVEL_LAYOUT {
    UINT64 SizeBytes;
    UINT64 OffsetBytes;
    UINT64 Slice2DSizeBytes;
    UINT32 PitchPixels;
    UINT32 PitchBytes;
    UINT32 AlignmentBytes;
    UINT32 PaddedWidthElements;
    UINT32 PaddedHeightElements;
    UINT32 PaddedDepthOrArraySize;
    UINT32 WidthElements;
    UINT32 HeightElements;
    UINT32 DepthOrArraySize;
    UINT32 SampleCount;
    XG_TILE_MODE TileMode;
};  

Members

SizeBytes
The size, in bytes.

OffsetBytes
The offset, in bytes.

Slice2DSizeBytes
The slice 2D size, in bytes.

PitchPixels
The number of pitch pixels.

PitchBytes
The pitch, in bytes.

AlignmentBytes
The alignment, in bytes.

PaddedWidthElements
The padded number of width elements.

PaddedHeightElements
The padded number of height elements.

PaddedDepthOrArraySize
The padded depth size or array size.

WidthElements
The number of width elements.

HeightElements
The number of height elements.

DepthOrArraySize
The depth or the array size.

SampleCount
The count of samples.

TileMode
The tile mode, as a pointer to an XG_TILE_MODE enumeration.

Remarks

This structure is used by the following API items:

Requirements

Header: Declared in xg.h.

Library: Use xg_x.lib.