The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ID3D11ModuleInstance::BindResource method
Rebinds a texture or buffer from source slot to destination slot.
Syntax
HRESULT BindResource( [in] UINT uSrcSlot, [in] UINT uDstSlot, [in] UINT uCount );
Parameters
- uSrcSlot [in]
-
Type: UINT
The first source slot number for rebinding.
- uDstSlot [in]
-
Type: UINT
The first destination slot number for rebinding.
- uCount [in]
-
Type: UINT
The number of slots for rebinding.
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: