Partager via


Effect.Clone(Device) Method (Microsoft.DirectX.Direct3D)

Creates a clone of an effect.

Definition

Visual Basic Public Function Clone( _
    ByVal dev As Device _
) As Effect
C# public Effect Clone(
    Device dev
);
C++ public:
EffectClone(
    Devicedev
);
JScript public function Clone(
    dev : Device
) : Effect;

Parameters

dev Microsoft.DirectX.Direct3D.Device
The Device associated with the effect.

Return Value

Microsoft.DirectX.Direct3D.Effect
An Effect object that contains the cloned effect.

Remarks

Exceptions

InvalidCallException

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

InvalidDataException

The data is invalid.