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

# CreateConstantBufferView

> Creates a constant-buffer view for accessing resource data.

Creates a constant-buffer view for accessing resource data.

## Syntax

```cpp theme={null}
void CreateConstantBufferView(
    const D3D12_CONSTANT_BUFFER_VIEW_DESC  pDesc,
    D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor
)
```

### Parameters

*pDesc \[in, optional]*\
Type: const D3D12\_CONSTANT\_BUFFER\_VIEW\_DESC \*

A pointer to a [D3D12\_CONSTANT\_BUFFER\_VIEW\_DESC](/reference/graphics/d3d12/structs/d3d12_constant_buffer_view_desc_public) structure that describes the constant-buffer view.

*DestDescriptor \[in]*\
Type: D3D12\_CPU\_DESCRIPTOR\_HANDLE

Describes the CPU descriptor handle that represents the start of the heap that holds the constant-buffer view.

### Return value

Type: void

None.

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[ID3D12Device](/reference/graphics/d3d12_x/interfaces/id3d12device/id3d12device)


## Related topics

- [D3D12_CONSTANT_BUFFER_VIEW_DESC](/reference/graphics/d3d12/structs/d3d12_constant_buffer_view_desc_public.md)
- [D3D12_CPU_DESCRIPTOR_HANDLE](/reference/graphics/d3d12/structs/d3d12_cpu_descriptor_handle_public.md)
- [SetComputeRootConstantBufferView](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setcomputerootconstantbufferview_public.md)
- [SetGraphicsRootConstantBufferView](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setgraphicsrootconstantbufferview_public.md)
- [D3D12_RENDER_TARGET_VIEW_DESC](/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public.md)
