Effect.Clone Method

Language:

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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center