D3D11_SUBRESOURCE_TILING structure (d3d11_2.h)

Describes a tiled subresource volume.

Syntax

typedef struct D3D11_SUBRESOURCE_TILING {
  UINT   WidthInTiles;
  UINT16 HeightInTiles;
  UINT16 DepthInTiles;
  UINT   StartTileIndexInOverallResource;
} D3D11_SUBRESOURCE_TILING;

Members

WidthInTiles

Type: UINT

The width in tiles of the subresource.

HeightInTiles

Type: UINT16

The height in tiles of the subresource.

DepthInTiles

Type: UINT16

The depth in tiles of the subresource.

StartTileIndexInOverallResource

Type: UINT

The index of the tile in the overall tiled subresource to start with.

GetResourceTiling sets StartTileIndexInOverallResource to D3D11_PACKED_TILE (0xffffffff) to indicate that the whole D3D11_SUBRESOURCE_TILING structure is meaningless, and the info to which the pPackedMipDesc parameter of GetResourceTiling points applies. For packed tiles, the description of the packed mipmaps comes from a D3D11_PACKED_MIP_DESC structure instead.

Remarks

Each packed mipmap is individually reported as 0 for WidthInTiles, HeightInTiles and DepthInTiles.

The total number of tiles in subresources is WidthInTilesHeightInTilesDepthInTiles.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 R2 [desktop apps | UWP apps]
Header d3d11_2.h

See also

Resource Structures