> ## 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_BOX

> 描述 3D 方塊。

描述 3D 方塊。

## 語法

```cpp theme={null}
typedef struct D3D12_BOX
{
    UINT left;
    UINT top;
    UINT front;
    UINT right;
    UINT bottom;
    UINT back;
} D3D12_BOX
```

### 成員

*left*\
類型：UINT

方塊左側的 x 位置。

*top*\
類型：UINT

方塊頂端的 y 位置。

*front*\
類型：UINT

方塊正面的 z 位置。

*right*\
類型：UINT

方塊右側的 x 位置加 1。這表示 <code>right - left</code> 等於方塊的寬度。

*bottom*\
類型：UINT

方塊底端的 y 位置加 1。這表示 <code>bottom - top</code> 等於方塊的高度。

*back*\
類型：UINT

方塊背面的 z 位置加 1。這表示 <code>back - front</code> 等於方塊的深度。

## 備註

此結構由 [WriteToSubresource](/zh-TW/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_writetosubresource_public)、[ReadFromSubresource](/zh-TW/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_readfromsubresource_public) 與 [CopyTextureRegion](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copytextureregion_public) 方法使用。

## 需求

**標頭:** d3d12\_xs.h 或 d3d12\_x.h\
**程式庫:** d3d12\_xs.lib 或 d3d12\_x.lib\
**支援的平台**: XBOX Series 主機與 XBOX One 系列

## 另請參閱

[CD3DX12\_BOX](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-box)

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


## Related topics

- [ReadFromSubresource](/zh-TW/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_readfromsubresource_public.md)
- [D3D12_TILE_REGION_SIZE](/zh-TW/reference/graphics/d3d12/structs/d3d12_tile_region_size_public.md)
- [D3D12_FEATURE](/zh-TW/reference/graphics/d3d12/enums/d3d12_feature_public.md)
- [D3D12_BLEND](/zh-TW/reference/graphics/d3d12/enums/d3d12_blend_public.md)
- [D3D12_FILTER](/zh-TW/reference/graphics/d3d12/enums/d3d12_filter_public.md)
