Skip to content

Latest commit

 

History

History
97 lines (60 loc) · 2.02 KB

id3dxeffectcompiler--compileeffect.md

File metadata and controls

97 lines (60 loc) · 2.02 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location
Compile an effect.
be6f862a-5091-4a06-a27a-308e81360129
ID3DXEffectCompiler::CompileEffect method (D3DX9Effect.h)
reference
05/31/2018
APIRef
kbSyntax
ID3DXEffectCompiler.CompileEffect
COM
D3dx9.lib
D3dx9.dll

ID3DXEffectCompiler::CompileEffect method

Compile an effect.

Syntax

HRESULT CompileEffect(
  [in]          DWORD        Flags,
  [out, retval] LPD3DXBUFFER *ppEffect,
  [out, retval] LPD3DXBUFFER *ppErrorMsgs
);

Parameters

Flags [in]

Type: DWORD

Compile options identified by various flags. The Direct3D 10 HLSL compiler is now the default. See D3DXSHADER Flags for details.

ppEffect [out, retval]

Type: LPD3DXBUFFER*

Buffer containing the compiled effect. For more information about accessing the buffer, see ID3DXBuffer.

ppErrorMsgs [out, retval]

Type: LPD3DXBUFFER*

Buffer containing at least the first compile error message that occurred. This includes effect compiler errors and high-level language compile errors. For more information about accessing the buffer, see ID3DXBuffer.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK.

If the arguments are invalid, the method will return D3DERR_INVALIDCALL.

If the method fails, the return value will be E_FAIL.

Requirements

Requirement Value
Header
D3DX9Effect.h
Library
D3dx9.lib

See also

ID3DXEffectCompiler