> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# D3D12_TILE_SHAPE

> 通过指定尺寸来描述图块的形状。(D3D12_TILE_SHAPE)

通过指定尺寸来描述图块的形状。

## 语法

```cpp theme={null}
typedef struct D3D12_TILE_SHAPE
{
    UINT WidthInTexels;
    UINT HeightInTexels;
    UINT DepthInTexels;
} D3D12_TILE_SHAPE
```

### 成员

*WidthInTexels*\
类型：UINT

图块的宽度（以纹素为单位）。

*HeightInTexels*\
类型：UINT

图块的高度（以纹素为单位）。

*DepthInTexels*\
类型：UINT

图块的深度（以纹素为单位）。

## 备注

此结构由 [GetResourceTiling](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourcetiling_public) 方法使用。

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机及 XBOX One 系列

## 另请参阅

[CD3DX12\_TILE\_SHAPE](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-tile-shape)

[核心结构](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [GetResourceTiling](/zh-CN/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourcetiling_public.md)
- [D3D12_TILE_RANGE_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_tile_range_flags_public.md)
- [D3D12_TILE_REGION_SIZE](/zh-CN/reference/graphics/d3d12/structs/d3d12_tile_region_size_public.md)
- [D3D12_TILE_COPY_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_tile_copy_flags_public.md)
- [D3D12_TILE_MAPPING_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_tile_mapping_flags_public.md)
