Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |
|
Library |
|
See also