ID3D11Linker::Link method
Links the shader and produces a shader blob that the Direct3D runtime can use.
Syntax
HRESULT Link( [in] ID3D11ModuleInstance *pEntry, [in] LPCSTR pEntryName, [in] LPCSTR pTargetName, [in] UINT uFlags, [out] ID3DBlob **ppShaderBlob, [out, optional] ID3DBlob **ppErrorBuffer );
Parameters
- pEntry [in]
-
Type: ID3D11ModuleInstance*
A pointer to the ID3D11ModuleInstance interface for the shader module instance to link from.
- pEntryName [in]
-
Type: LPCSTR
The name of the shader module instance to link from.
- pTargetName [in]
-
Type: LPCSTR
The name for the shader blob that is produced.
- uFlags [in]
-
Type: UINT
Reserved.
- ppShaderBlob [out]
-
Type: ID3DBlob**
A pointer to a variable that receives a pointer to the ID3DBlob interface that you can use to access the compiled shader code.
- ppErrorBuffer [out, optional]
-
Type: ID3DBlob**
A pointer to a variable that receives a pointer to the ID3DBlob interface that you can use to access compiler error messages.
Return value
Type: HRESULT
Returns S_OK if successful; otherwise, returns one of the Direct3D 11 Return Codes.
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|
See also