Composes a constant buffer view.
public:
HRESULT ComposeConstantBufferView(
D3D11X_DESCRIPTOR_RESOURCE *pDescriptorResource,
const D3D11X_RESOURCE_VIEW_DESC *pViewDesc,
D3D11X_DESCRIPTOR_CONSTANT_BUFFER_VIEW *pDescriptorCb
)
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.
Type: HRESULT
One of the Direct3D 11 return codes.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.