ID3D11Device::CreateClassLinkage method

Creates class linkage libraries to enable dynamic shader linkage.

Syntax

HRESULT CreateClassLinkage(
  ID3D11ClassLinkage **ppLinkage
);

Parameters

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

   
Target Platform Windows
Header d3d11.h
Library D3D11.lib

See Also

ID3D11Device