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

> 描述要檢視的常數緩衝區。

描述要檢視的常數緩衝區。

## 語法

```cpp theme={null}
typedef struct D3D12_CONSTANT_BUFFER_VIEW_DESC
{
    D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
    UINT SizeInBytes;
} D3D12_CONSTANT_BUFFER_VIEW_DESC
```

### 成員

*BufferLocation*\
類型：D3D12\_GPU\_VIRTUAL\_ADDRESS

常數緩衝區的 D3D12\_GPU\_VIRTUAL\_ADDRESS。
D3D12\_GPU\_VIRTUAL\_ADDRESS 是以 typedef 定義的 UINT64 別名。

*SizeInBytes*\
類型：UINT

常數緩衝區的大小 (以位元組為單位)。

## 備註

此結構由 [CreateConstantBufferView](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createconstantbufferview_public) 使用。

## 需求

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

## 另請參閱

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


## Related topics

- [CreateConstantBufferView](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createconstantbufferview_public.md)
- [D3D12_UNORDERED_ACCESS_VIEW_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_unordered_access_view_desc_public.md)
- [D3D12_RENDER_TARGET_VIEW_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public.md)
- [D3D12_SHADER_RESOURCE_VIEW_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_shader_resource_view_desc_public.md)
- [D3D12_BUFFER_SRV](/zh-TW/reference/graphics/d3d12/structs/d3d12_buffer_srv_public.md)
