Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    DrawEffect Class

    Namespace: Stride.Rendering
    Assembly: Stride.Rendering.dll

    The base class in charge of applying and drawing an effect.

    System.Object → DisposeBase → ComponentBase → RendererCoreBase → RendererBase → DrawEffect
    Derived from DrawEffect: ComputeEffectShader RadiancePrefilteringGGX RadiancePrefilteringGGXNoCompute LambertianPrefilteringSH ImageEffect

    [DataContract]
    public abstract class DrawEffect : RendererBase, IComponent, IReferencable, ICollectorHolder, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
    Name Description
    Constructors
    DrawEffect()

    Initializes a new instance of the DrawEffect class with the given RenderContext.

    DrawEffect(RenderContext, String)

    Initializes a new instance of the DrawEffect class.

    DrawEffect(String)

    Initializes a new instance of the DrawEffect class.

    Properties
    Parameters

    Gets the parameters.

    SamplingPattern
    Scaler

    Gets a shared ImageScaler.

    Methods
    Draw(RenderDrawContext, String)

    Draws a full screen quad using iterating on each pass of this effect.

    Draw(RenderDrawContext, String, Object[])

    Draws a full screen quad using iterating on each pass of this effect.

    Reset()

    Resets the state of this effect.

    SetDefaultParameters()

    Sets the default parameters (called at constructor time and if Reset() is called)

    ToString()

    Returns a System.String that represents this instance.

    | Improve this Doc View Source

    Constructors


    DrawEffect()

    Initializes a new instance of the DrawEffect class with the given RenderContext.

    protected DrawEffect()

    DrawEffect(RenderContext, String)

    Initializes a new instance of the DrawEffect class.

    protected DrawEffect(RenderContext context, string name = null)
    Parameters
    Type Name Description
    RenderContext context

    The context.

    System.String name

    The name.


    DrawEffect(String)

    Initializes a new instance of the DrawEffect class.

    protected DrawEffect(string name)
    Parameters
    Type Name Description
    System.String name
    | Improve this Doc View Source

    Properties


    Parameters

    Gets the parameters.

    public ParameterCollection Parameters { get; protected set; }
    Property Value
    Type Description
    ParameterCollection

    The parameters.


    SamplingPattern

    public SamplingPattern SamplingPattern { get; set; }
    Property Value
    Type Description
    SamplingPattern

    Scaler

    Gets a shared ImageScaler.

    protected ImageScaler Scaler { get; }
    Property Value
    Type Description
    ImageScaler
    | Improve this Doc View Source

    Methods


    Draw(RenderDrawContext, String)

    Draws a full screen quad using iterating on each pass of this effect.

    public void Draw(RenderDrawContext context, string name)
    Parameters
    Type Name Description
    RenderDrawContext context
    System.String name

    Draw(RenderDrawContext, String, Object[])

    Draws a full screen quad using iterating on each pass of this effect.

    public void Draw(RenderDrawContext context, string nameFormat, params object[] args)
    Parameters
    Type Name Description
    RenderDrawContext context
    System.String nameFormat
    System.Object[] args

    Reset()

    Resets the state of this effect.

    public virtual void Reset()

    SetDefaultParameters()

    Sets the default parameters (called at constructor time and if Reset() is called)

    protected virtual void SetDefaultParameters()

    ToString()

    Returns a System.String that represents this instance.

    public override string ToString()
    Returns
    Type Description
    System.String

    A System.String that represents this instance.

    Overrides
    ComponentBase.ToString()

    Inherited Members

    RendererBase.DrawCore(RenderDrawContext)
    RendererBase.Draw(RenderDrawContext)
    RendererCoreBase.Enabled
    RendererCoreBase.Profiling
    RendererCoreBase.ProfilingKey
    RendererCoreBase.Context
    RendererCoreBase.Services
    RendererCoreBase.Content
    RendererCoreBase.GraphicsDevice
    RendererCoreBase.EffectSystem
    RendererCoreBase.Initialized
    RendererCoreBase.Initialize(RenderContext)
    RendererCoreBase.InitializeCore()
    RendererCoreBase.Unload()
    RendererCoreBase.PreDrawCore(RenderDrawContext)
    RendererCoreBase.PostDrawCore(RenderDrawContext)
    RendererCoreBase.NewScopedBuffer(BufferDescription, PixelFormat)
    RendererCoreBase.NewScopedTypedBuffer(Int32, PixelFormat, Boolean, GraphicsResourceUsage)
    RendererCoreBase.PushScopedResource<T>(T)
    RendererCoreBase.CheckIsInDrawCore()
    RendererCoreBase.Destroy()
    RendererCoreBase.ToLoadAndUnload<T>(T)
    RendererCoreBase.PreDrawCoreInternal(RenderDrawContext)
    RendererCoreBase.EnsureContext(RenderContext)
    RendererCoreBase.PostDrawCoreInternal(RenderDrawContext)
    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    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