ID3D11Module::CreateInstance method (d3d11shader.h)
Initializes an instance of a shader module that is used for resource rebinding.
Syntax
HRESULT CreateInstance(
[in, optional] LPCSTR pNamespace,
[out] ID3D11ModuleInstance **ppModuleInstance
);
Parameters
[in, optional] pNamespace
Type: LPCSTR
The name of a shader module to initialize. This can be NULL if you don't want to specify a name for the module.
[out] ppModuleInstance
Type: ID3D11ModuleInstance**
The address of a pointer to an ID3D11ModuleInstance interface to initialize.
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 |