ID3D11FunctionLinkingGraph::CreateModuleInstance method

Initializes a shader module from the function-linking-graph object.

Syntax

HRESULT CreateModuleInstance(
  ID3D11ModuleInstance **ppModuleInstance,
  ID3DBlob             **ppErrorBuffer
);

Parameters

ppModuleInstance

Type: ID3D11ModuleInstance**

The address of a pointer to an ID3D11ModuleInstance interface for the shader module to initialize.

ppErrorBuffer

Type: ID3DBlob**

An optional pointer to a variable that receives a pointer to the ID3DBlob interface that you can use to access compiler error messages, or NULL if there are no errors.

Return Value

Type: HRESULT

Returns S_OK if successful; otherwise, returns one of the Direct3D 11 Return Codes.

Requirements

   
Target Platform Windows
Header d3d11shader.h
Library D3DCompiler.lib
DLL D3DCompiler_47.dll

See Also

ID3D11FunctionLinkingGraph