ID3D11DeviceX::ComposeConstantBufferView Method

Composes a constant buffer view.

Syntax

public:
HRESULT ComposeConstantBufferView(
         D3D11X_DESCRIPTOR_RESOURCE *pDescriptorResource,
         const D3D11X_RESOURCE_VIEW_DESC *pViewDesc,
         D3D11X_DESCRIPTOR_CONSTANT_BUFFER_VIEW *pDescriptorCb
)  

Parameters

pDescriptorResource
Type: D3D11X_DESCRIPTOR_RESOURCE *

[in] The resource descriptor for the buffer, as a pointer to a D3D11X_DESCRIPTOR_RESOURCE structure.

pViewDesc
Type: D3D11X_RESOURCE_VIEW_DESC *

[in] A resource view descriptor, as a pointer to a D3D11X_RESOURCE_VIEW_DESC structure.

pDescriptorCb
Type: D3D11X_DESCRIPTOR_CONSTANT_BUFFER_VIEW *

[out] A binding descriptor for a constant buffer view, as a pointer to a D3D11X_DESCRIPTOR_CONSTANT_BUFFER_VIEW structure.

Return value

Type: HRESULT 

One of the Direct3D 11 return codes.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11DeviceX Interface

ID3D11DeviceX Members