Class Effect
[ContentSerializer(typeof(DataContentSerializer<Effect>))]
[DataSerializer(typeof(EffectSerializer))]
[DataSerializerGlobal(typeof(ReferenceSerializer<Effect>), null, DataSerializerGenericMode.None, false, false, Profile = "Content")]
public class Effect : ComponentBase, IDisposable, IComponent, IReferencable, ICollectorHolder
- Inheritance
-
Effect
- Implements
- Inherited Members
- Extension Methods
Constructors
Effect(GraphicsDevice, EffectBytecode)
Initializes a new instance of the Effect class.
public Effect(GraphicsDevice device, EffectBytecode bytecode)
Parameters
device
GraphicsDeviceThe device.
bytecode
EffectBytecodeThe bytecode.
Exceptions
- ArgumentNullException
device or bytecode
Properties
Bytecode
Gets the bytecode.
public EffectBytecode Bytecode { get; }
Property Value
- EffectBytecode
The bytecode.
Methods
HasParameter(ParameterKey)
public bool HasParameter(ParameterKey parameterKey)
Parameters
parameterKey
ParameterKey