> ## 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 是 UINT64 的 typedef 别名。

*SizeInBytes*\
类型：UINT

常量缓冲区的大小，以字节为单位。

## 备注

此结构由 [CreateConstantBufferView](/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-CN/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createconstantbufferview_public.md)
- [D3D12_CPU_DESCRIPTOR_HANDLE](/zh-CN/reference/graphics/d3d12/structs/d3d12_cpu_descriptor_handle_public.md)
- [D3D12_UNORDERED_ACCESS_VIEW_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_unordered_access_view_desc_public.md)
- [D3D12_RENDER_TARGET_VIEW_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public.md)
- [D3D12_SHADER_RESOURCE_VIEW_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_shader_resource_view_desc_public.md)
