Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MSAAResolver Class

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

    A renderer to resolve MSAA textures.

    System.Object → DisposeBase → ComponentBase → RendererCoreBase → RendererBase → DrawEffect → ImageEffect → MSAAResolver
    Derived from MSAAResolver:

    [DataContract]
    [Display("MSAA Resolver", null)]
    public class MSAAResolver : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
    Name Description
    Constructors
    MSAAResolver()

    Initializes a new instance of the MSAAResolver class.

    MSAAResolver(String, String)

    Initializes a new instance of the MSAAResolver class.

    Properties
    Enabled
    FilterRadius

    MSAA resolve filter radius value.

    FilterType

    MSAA resolve filter type.

    Methods
    DrawCore(RenderDrawContext)
    InitializeCore()
    Resolve(RenderDrawContext, Texture, Texture)

    Resolves the specified input multisampled texture.

    | Improve this Doc View Source

    Constructors


    MSAAResolver()

    Initializes a new instance of the MSAAResolver class.

    public MSAAResolver()

    MSAAResolver(String, String)

    Initializes a new instance of the MSAAResolver class.

    public MSAAResolver(string msaaResolverShaderName, string msaaDepthResolverShaderName)
    Parameters
    Type Name Description
    System.String msaaResolverShaderName

    Name of the MSAA resolve pass shader.

    System.String msaaDepthResolverShaderName

    Name of the MSAA depth resolve pass shader.

    | Improve this Doc View Source

    Properties


    Enabled

    public override bool Enabled { get; set; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    RendererCoreBase.Enabled

    FilterRadius

    MSAA resolve filter radius value.

    [DataMember(20)]
    [DataMemberRange(0.5, 3, 0.01, 0.1, 3)]
    public float FilterRadius { get; set; }
    Property Value
    Type Description
    System.Single

    FilterType

    MSAA resolve filter type.

    [DataMember(10)]
    public MSAAResolver.FilterTypes FilterType { get; set; }
    Property Value
    Type Description
    MSAAResolver.FilterTypes
    | Improve this Doc View Source

    Methods


    DrawCore(RenderDrawContext)

    protected override void DrawCore(RenderDrawContext drawContext)
    Parameters
    Type Name Description
    RenderDrawContext drawContext
    Overrides
    RendererBase.DrawCore(RenderDrawContext)

    InitializeCore()

    protected override void InitializeCore()
    Overrides
    RendererCoreBase.InitializeCore()

    Resolve(RenderDrawContext, Texture, Texture)

    Resolves the specified input multisampled texture.

    public void Resolve(RenderDrawContext drawContext, Texture input, Texture output)
    Parameters
    Type Name Description
    RenderDrawContext drawContext

    The draw context.

    Texture input

    The input.

    Texture output

    The output.


    Inherited Members

    ImageEffect.EnableSetRenderTargets
    ImageEffect.SetInput(Int32, Texture)
    ImageEffect.Reset()
    ImageEffect.SetOutput(Texture)
    ImageEffect.SetOutput(Texture[])
    ImageEffect.SetDepthOutput(Texture, Texture)
    ImageEffect.SetDepthOutput(Texture, Texture[])
    ImageEffect.SetViewport(Nullable<Viewport>)
    ImageEffect.PreDrawCore(RenderDrawContext)
    ImageEffect.SetRenderTargets(RenderDrawContext)
    ImageEffect.PostDrawCore(RenderDrawContext)
    ImageEffect.DisposeCreatedRenderTargetViews(RenderDrawContext)
    ImageEffect.InputCount
    ImageEffect.GetInput(Int32)
    ImageEffect.GetSafeInput(Int32)
    ImageEffect.DepthStencil
    ImageEffect.HasDepthStencilOutput
    ImageEffect.OutputCount
    ImageEffect.GetOutput(Int32)
    ImageEffect.GetSafeOutput(Int32)
    ImageEffect.NewScopedRenderTarget2D(TextureDescription)
    ImageEffect.NewScopedRenderTarget2D(Int32, Int32, PixelFormat, TextureFlags, Int32)
    ImageEffect.NewScopedRenderTarget2D(Int32, Int32, PixelFormat, MipMapCount, TextureFlags, Int32)
    DrawEffect.SamplingPattern
    DrawEffect.Parameters
    DrawEffect.Scaler
    DrawEffect.SetDefaultParameters()
    DrawEffect.Draw(RenderDrawContext, String)
    DrawEffect.Draw(RenderDrawContext, String, Object[])
    DrawEffect.ToString()
    RendererBase.Draw(RenderDrawContext)
    RendererCoreBase.Profiling
    RendererCoreBase.ProfilingKey
    RendererCoreBase.Context
    RendererCoreBase.Services
    RendererCoreBase.Content
    RendererCoreBase.GraphicsDevice
    RendererCoreBase.EffectSystem
    RendererCoreBase.Initialized
    RendererCoreBase.Initialize(RenderContext)
    RendererCoreBase.Unload()
    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)
    ImageEffectExtensions.SetInput(IImageEffect, Texture)
    ImageEffectExtensions.SetInput(IImageEffect, Texture, Texture)
    ImageEffectExtensions.SetInput(IImageEffect, Texture, Texture, Texture)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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