> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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。這表示 `right - left` 等於方塊的寬度。

*bottom*\
類型：UINT

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

*back*\
類型：UINT

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

## 備註

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

## 需求

**標頭:** 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](https://docs.xbox.com/zh-TW/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_readfromsubresource_public.md)
- [D3D12_TILE_REGION_SIZE](https://docs.xbox.com/zh-TW/reference/graphics/d3d12/structs/d3d12_tile_region_size_public.md)
- [D3D12_FEATURE](https://docs.xbox.com/zh-TW/reference/graphics/d3d12/enums/d3d12_feature_public.md)
- [D3D12_BLEND](https://docs.xbox.com/zh-TW/reference/graphics/d3d12/enums/d3d12_blend_public.md)
- [D3D12_FILTER](https://docs.xbox.com/zh-TW/reference/graphics/d3d12/enums/d3d12_filter_public.md)
