Skip to content

Latest commit

 

History

History
127 lines (86 loc) · 4.28 KB

nf-d3d10effect-d3d10compileeffectfrommemory.md

File metadata and controls

127 lines (86 loc) · 4.28 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:d3d10effect.D3D10CompileEffectFromMemory
D3D10CompileEffectFromMemory function (d3d10effect.h)
Compile an effect.
D3D10CompileEffectFromMemory
D3D10CompileEffectFromMemory function [Direct3D 10]
a15fb616-366d-0a19-dbf6-a1e603c6c9db
d3d10effect/D3D10CompileEffectFromMemory
direct3d10.d3d10compileeffectfrommemory
direct3d10\d3d10compileeffectfrommemory.htm
direct3d10
VS|directx_sdk|~\d3d10compileeffectfrommemory.htm
12/05/2018
D3D10CompileEffectFromMemory, D3D10CompileEffectFromMemory function [Direct3D 10], a15fb616-366d-0a19-dbf6-a1e603c6c9db, d3d10effect/D3D10CompileEffectFromMemory, direct3d10.d3d10compileeffectfrommemory
d3d10effect.h
Windows
D3D10.lib
D3D10.dll
Windows
19H1
D3D10CompileEffectFromMemory
d3d10effect/D3D10CompileEffectFromMemory
c++
APIRef
kbSyntax
DllExport
D3D10.dll
D3D10CompileEffectFromMemory

D3D10CompileEffectFromMemory function

-description

Compile an effect.

Note  Use D3DX10CompileFromMemory instead of this function.
 

-parameters

-param pData [in]

Type: void*

A pointer to effect data; either ASCII HLSL code or a compiled effect.

-param DataLength [in]

Type: SIZE_T

Length of pData.

-param pSrcFileName [in]

Type: LPCSTR

The name of the effect file.

-param pDefines [in]

Type: const D3D10_SHADER_MACRO*

Optional. An array of NULL-terminated macro definitions (see D3D10_SHADER_MACRO).

-param pInclude [in]

Type: ID3D10Include*

Optional. A pointer to an ID3D10Include Interface for handling include files. Setting this to NULL will cause a compile error if a shader contains a #include.

-param HLSLFlags [in]

Type: UINT

Shader compile options.

-param FXFlags [in]

Type: UINT

Effect compile options.

-param ppCompiledEffect [out]

Type: ID3D10Blob**

The address of a ID3D10Blob Interface that contains the compiled effect.

-param ppErrors [out]

Type: ID3D10Blob**

Optional. A pointer to an ID3D10Blob Interface that contains compiler error messages, or NULL if there were no errors.

-returns

Type: HRESULT

Returns one of the following Direct3D 10 Return Codes.

-remarks

This function uses the version of the HLSL compiler released in the November 2006 DirectX SDK.

For an example, see Compile an Effect (Direct3D 10).

-see-also

Effect Functions (Direct3D 10)