Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

D3DLoadModule function

Creates a shader module interface from source data for the shader module.

Note  This function is part of the HLSL shader linking technology that you can use on all Direct3D 11 platforms to create precompiled HLSL functions, package them into libraries, and link them into full shaders at run time.

Syntax


HRESULT WINAPI D3DLoadModule(
  _In_   LPCVOID pSrcData,
  _In_   SIZE_T cbSrcDataSize,
  _Out_  ID3D11Module **ppModule
);

Parameters

pSrcData [in]

Type: LPCVOID

A pointer to the source data for the shader module.

cbSrcDataSize [in]

Type: SIZE_T

The size, in bytes, of the block of memory that pSrcData points to.

ppModule [out]

Type: ID3D11Module**

A pointer to a variable that receives a pointer to the ID3D11Module interface that is used for shader resource re-binding.

Return value

Type: HRESULT

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

Remarks

Note  The D3dcompiler_47.dll or later version of the DLL contains the D3DLoadModule function.

Windows Phone 8.1: This API is supported.

Requirements

Header

D3Dcompiler.h

Library

D3DCompiler.lib

DLL

D3DCompiler_47.dll

See also

ID3D11Module

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.