ID3D12Device::CreateConstantBufferView method (d3d12.h)
Creates a constant-buffer view for accessing resource data.
Syntax
void CreateConstantBufferView(
const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor
);
Parameters
pDesc
Type: const D3D12_CONSTANT_BUFFER_VIEW_DESC*
A pointer to a D3D12_CONSTANT_BUFFER_VIEW_DESC structure that describes the constant-buffer view.
DestDescriptor
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
None
Requirements
| Target Platform | Windows |
| Header | d3d12.h |
| Library | D3D12.lib |
| DLL | D3D12.dll |