ID3D11ModuleInstance::BindConstantBuffer method
Rebinds a constant buffer from a source slot to a destination slot.
Syntax
HRESULT BindConstantBuffer( [in] UINT uSrcSlot, [in] UINT uDstSlot, [in] UINT cbDstOffset );
Parameters
- uSrcSlot [in]
-
Type: UINT
The source slot number for rebinding.
- uDstSlot [in]
-
Type: UINT
The destination slot number for rebinding.
- cbDstOffset [in]
-
Type: UINT
The offset in bytes of the destination slot for rebinding. The offset must have 16-byte alignment.
Return value
Type: HRESULT
Returns:
- S_OK for a valid rebinding
- S_FALSE for rebinding a nonexistent slot; that is, for which the shader reflection doesn’t have any data
- E_FAIL for an invalid rebinding, for example, the rebinding is out-of-bounds
- Possibly one of the other Direct3D 11 Return Codes
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|
See also
Show: