Class ImageEffectShader
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
Properties
BlendState
public BlendStateDescription BlendState { get; set; }
Property Value
DepthStencilState
public DepthStencilStateDescription DepthStencilState { get; set; }
Property Value
EffectInstance
The current effect instance.
public DynamicEffectInstance EffectInstance { get; }
Property Value
EffectName
Effect name.
public string EffectName { get; protected set; }
Property Value
RasterizerState
public RasterizerStateDescription RasterizerState { get; set; }
Property Value
Methods
DrawCore(RenderDrawContext)
Main drawing method for this renderer that must be implemented.
protected override void DrawCore(RenderDrawContext context)
Parameters
context
RenderDrawContextThe 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