Table of Contents

Class ImageEffectShader

Namespace
Stride.Rendering.Images
Assembly
Stride.Rendering.dll

Post effect using an Effect (either sdfx or sdsl).

[DataContract("ImageEffectShader")]
public class ImageEffectShader : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Inheritance
ImageEffectShader
Implements
Derived
Inherited Members
Extension Methods

Constructors

ImageEffectShader(string, bool)

Initializes a new instance of the ImageEffectShader class.

public ImageEffectShader(string effectName = null, bool delaySetRenderTargets = false)

Parameters

effectName string
delaySetRenderTargets bool

Properties

BlendState

public BlendStateDescription BlendState { get; set; }

Property Value

BlendStateDescription

DepthStencilState

public DepthStencilStateDescription DepthStencilState { get; set; }

Property Value

DepthStencilStateDescription

EffectInstance

The current effect instance.

public DynamicEffectInstance EffectInstance { get; }

Property Value

DynamicEffectInstance

EffectName

Effect name.

public string EffectName { get; protected set; }

Property Value

string

RasterizerState

public RasterizerStateDescription RasterizerState { get; set; }

Property Value

RasterizerStateDescription

Methods

DrawCore(RenderDrawContext)

Main drawing method for this renderer that must be implemented.

protected override void DrawCore(RenderDrawContext context)

Parameters

context RenderDrawContext

The context.

InitializeCore()

protected override void InitializeCore()

PreDrawCore(RenderDrawContext)

protected override void PreDrawCore(RenderDrawContext context)

Parameters

context RenderDrawContext

SetDefaultParameters()

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

protected override void SetDefaultParameters()

UpdateParameters()

Updates the effect Parameters from properties defined in this instance. See remarks.

protected virtual void UpdateParameters()

Remarks

By default, all the input textures will be remapped to Texture0...etc.

Exceptions

InvalidOperationException

Expecting less than 10 textures in input