Effect Class
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Derived from 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
Name | Description | |
---|---|---|
Constructors | ||
Effect(GraphicsDevice, EffectBytecode) | Initializes a new instance of the Effect class. |
|
Properties | ||
Bytecode | Gets the bytecode. |
|
Methods | ||
HasParameter(ParameterKey) |
Constructors
Effect(GraphicsDevice, EffectBytecode)
Initializes a new instance of the Effect class.
public Effect(GraphicsDevice device, EffectBytecode bytecode)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The device. |
EffectBytecode | bytecode | The bytecode. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | device or bytecode |
Properties
Bytecode
Gets the bytecode.
public EffectBytecode Bytecode { get; }
Property Value
Type | Description |
---|---|
EffectBytecode | The bytecode. |
Methods
HasParameter(ParameterKey)
public bool HasParameter(ParameterKey parameterKey)
Parameters
Type | Name | Description |
---|---|---|
ParameterKey | parameterKey |
Returns
Type | Description |
---|---|
System.Boolean |