Share via


EffectPool.EffectPool(ID3DXEffectPool) Constructor (Microsoft.DirectX.Direct3D)

Creates a new instance of an EffectPool object.

Definition

Visual Basic Public Sub New( _
    ByVal pUnk As ID3DXEffectPool _
)
C# public EffectPool(
    ID3DXEffectPool pUnk
);
C++ public:
 EffectPool(
    ID3DXEffectPool pUnk
);
JScript public function EffectPool(
    pUnk : ID3DXEffectPool
);

Parameters

pUnk Microsoft.DirectX.PrivateImplementationDetails.ID3DXEffectPool
Unmanaged Component Object Model (COM) ID3DXEffectPool interface pointer.

Remarks

A pool is used to share parameters between effects. For effects within a pool, shared parameters with the same name share values.

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.