ID3D12Device::CreateConstantBufferView method (d3d12.h)

Creates a constant-buffer view for accessing resource data.

Syntax

void CreateConstantBufferView(
  [in, optional] const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  [in]           D3D12_CPU_DESCRIPTOR_HANDLE           DestDescriptor
);

Parameters

[in, optional] pDesc

Type: const D3D12_CONSTANT_BUFFER_VIEW_DESC*

A pointer to a D3D12_CONSTANT_BUFFER_VIEW_DESC structure that describes the constant-buffer view.

[in] 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

Requirement Value
Target Platform Windows
Header d3d12.h
Library D3D12.lib
DLL D3D12.dll

See also

ID3D12Device