Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
[in] pEntry
Type: ID3D11ModuleInstance*
A pointer to the ID3D11ModuleInstance interface for the shader module instance to link from.
[in] pEntryName
Type: LPCSTR
The name of the shader module instance to link from.
[in] pTargetName
Type: LPCSTR
The name for the shader blob that is produced.
[in] uFlags
Type: UINT
Reserved.
[out] ppShaderBlob
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.
[out, optional] ppErrorBuffer
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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d11shader.h |
Library | D3DCompiler.lib |
DLL | D3DCompiler_47.dll |