D3D11_SUBRESOURCE_TILING Structure

Describes a tiled subresource volume.

Syntax

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

Members

WidthInTiles
The width in tiles of the subresource.

HeightInTiles
The height in tiles of the subresource.

DepthInTiles
The depth in tiles of the subresource.

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

ID3D11Device2::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 WidthInTiles * HeightInTiles * DepthInTiles.

Requirements

Header: Declared in d3d11_x.h (Desktop: d3d11_2.h).