ID3D11FunctionLinkingGraph::CreateModuleInstance method (d3d11shader.h)

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

Syntax

HRESULT CreateModuleInstance(
  [out]           ID3D11ModuleInstance **ppModuleInstance,
  [out, optional] ID3DBlob             **ppErrorBuffer
);

Parameters

[out] ppModuleInstance

Type: ID3D11ModuleInstance**

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

[out, optional] 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

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

See also

ID3D11FunctionLinkingGraph