Microsoft DirectX 8.1 (C++)

ID3DXEffect::GetCompiledEffect

Returns a compiled binary representation of an effect.

HRESULT GetCompiledEffect(
  LPD3DXBUFFER* ppCompiledEffec
);

Parameters

ppCompiledEffect
[out, retval] Pointer to a D3DXBUFFER, which contains the returned compiled effect.

Return Values

If the method succeeds, the return value is S_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

The returned effect can be used on subseqent calls to D3DXCreateEffect, so that the effect can be created without having Direct3D go through the process of reparsing the ASCII effect description.

Requirements

  Header: Declared in D3dx8effect.h.
  Import Library: Use D3dx8.lib.

See Also

ID3DXEffect::GetCompiledEffect