D3DXCreateEffectPool

Create an effect pool. A pool is used to share parameters between effects.

HRESULT D3DXCreateEffectPool(
  LPD3DXEFFECTPOOL* ppPool
);

Parameters

ppPool
[out] Returns a pointer to the created pool.

Return Values

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.

Remarks

For effects within a pool, shared parameters with the same name share values.

Requirements

Header: Declared in D3dx9effect.h.