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 |
|
|
|
|
Compile an effect.
HRESULT CompileEffect(
[in] DWORD Flags,
[out, retval] LPD3DXBUFFER *ppEffect,
[out, retval] LPD3DXBUFFER *ppErrorMsgs
);
-
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.
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.
Requirement | Value |
---|---|
Header |
|
Library |
|