Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    Effect Class

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll
    System.Object → DisposeBase → ComponentBase → Effect
    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)
    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    Properties


    Bytecode

    Gets the bytecode.

    public EffectBytecode Bytecode { get; }
    Property Value
    Type Description
    EffectBytecode

    The bytecode.

    | Improve this Doc View Source

    Methods


    HasParameter(ParameterKey)

    public bool HasParameter(ParameterKey parameterKey)
    Parameters
    Type Name Description
    ParameterKey parameterKey
    Returns
    Type Description
    System.Boolean

    Inherited Members

    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.Destroy()
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    ComponentBase.ToString()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation