ID3D11Device::CreateClassLinkage method (d3d11.h)
Creates class linkage libraries to enable dynamic shader linkage.
Syntax
HRESULT CreateClassLinkage(
[out] ID3D11ClassLinkage **ppLinkage
);
Parameters
[out] ppLinkage
Type: ID3D11ClassLinkage**
A pointer to a class-linkage interface pointer (see ID3D11ClassLinkage).
Return value
Type: HRESULT
This method returns one of the following Direct3D 11 Return Codes.
Remarks
The ID3D11ClassLinkage interface returned in ppLinkage is associated with a shader by passing it as a parameter to one of the ID3D11Device create shader methods such as ID3D11Device::CreatePixelShader.
Examples
Using CreateClassLinkage
ID3D11ClassLinkage * g_pPSClassLinkage = NULL;
pd3dDevice->CreateClassLinkage( &g_pPSClassLinkage );
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d11.h |
Library | D3D11.lib |