Table of Contents

Class Effect

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll
[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 GraphicsDevice

The device.

bytecode EffectBytecode

The 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

Returns

bool