D3D12_TILE_REGION_SIZE structure (d3d12.h)
Describes the size of a tiled region.
Syntax
typedef struct D3D12_TILE_REGION_SIZE {
UINT NumTiles;
BOOL UseBox;
UINT Width;
UINT16 Height;
UINT16 Depth;
} D3D12_TILE_REGION_SIZE;
Members
NumTiles
The number of tiles in the tiled region.
UseBox
Specifies whether the runtime uses the Width, Height, and Depth members to define the region.
If TRUE, the runtime uses the Width, Height, and Depth members to define the region. In this case, NumTiles should be equal to Width * Height * Depth.
If FALSE, the runtime ignores the Width, Height, and Depth members and uses the NumTiles member to traverse tiles in the resource linearly across x, then y, then z (as applicable) and then spills over mipmaps/arrays in subresource order. For example, use this technique to map an entire resource at once.
Regardless of whether you specify TRUE or FALSE for UseBox, you use a D3D12_TILED_RESOURCE_COORDINATE structure to specify the starting location for the region within the resource as a separate parameter outside of this structure by using x, y, and z coordinates.
When the region includes mipmaps that are packed with nonstandard tiling, UseBox must be FALSE because tile dimensions are not standard and the app only knows a count of how many tiles are consumed by the packed area, which is per array slice. The corresponding (separate) starting location parameter uses x to offset into the flat range of tiles in this case, and y and z coordinates must each be 0.
Width
The width of the tiled region, in tiles. Used for buffer and 1D, 2D, and 3D textures.
Height
The height of the tiled region, in tiles. Used for 2D and 3D textures.
Depth
The depth of the tiled region, in tiles. Used for 3D textures or arrays. For arrays, used for advancing in depth jumps to next slice of same mipmap size, which isn't contiguous in the subresource counting space if there are multiple mipmaps.
Remarks
This structure is used by the CopyTiles, CopyTileMappings and UpdateTileMappings methods.
Requirements
Requirement | Value |
---|---|
Header | d3d12.h |