Class Effect<T>
Class used to instantiate custom effects.
public class Effect<T> : Effect where T : CustomEffect
Type Parameters
T
Type of the custom effect
- Inheritance
-
Effect<T>
- Inherited Members
Constructors
Effect(DeviceContext)
Initializes a new instance of a custom Effect class.
public Effect(DeviceContext deviceContext)
Parameters
deviceContext
DeviceContextThe device context.
Remarks
The created effect does not increment the reference count for the dynamic-link library (DLL) from which the effect was created. If the application deletes an effect while that effect is loaded, the resulting behavior will be unpredictable.
Exceptions
- SharpDX.SharpDXException
If no sufficient memory to complete the call, or if it does not have enough display memory to perform the operation, or if the specified effect is not registered by the system.
Effect(DeviceContext, Guid)
Initializes a new instance of a custom Effect class.
public Effect(DeviceContext deviceContext, Guid effectId)
Parameters
deviceContext
DeviceContextThe device context.
effectId
GuidEffect ID.
Remarks
The created effect does not increment the reference count for the dynamic-link library (DLL) from which the effect was created. If the application deletes an effect while that effect is loaded, the resulting behavior will be unpredictable.
Exceptions
- SharpDX.SharpDXException
If no sufficient memory to complete the call, or if it does not have enough display memory to perform the operation, or if the specified effect is not registered by the system.
Effect(EffectContext)
Initializes a new instance of the Effect class.
public Effect(EffectContext effectContext)
Parameters
effectContext
EffectContextThe effect context.