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. |
|
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 |
|
|
|
|
|
|
Compile an effect.
Type: void*
A pointer to effect data; either ASCII HLSL code or a compiled effect.
Type: SIZE_T
Length of pData.
Type: LPCSTR
The name of the effect file.
Type: const D3D10_SHADER_MACRO*
Optional. An array of NULL-terminated macro definitions (see D3D10_SHADER_MACRO).
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.
Type: UINT
Shader compile options.
Type: UINT
Effect compile options.
Type: ID3D10Blob**
The address of a ID3D10Blob Interface that contains the compiled effect.
Type: ID3D10Blob**
Optional. A pointer to an ID3D10Blob Interface that contains compiler error messages, or NULL if there were no errors.
Type: HRESULT
Returns one of the following Direct3D 10 Return Codes.
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).