ImageEffectShader Class
Namespace: Stride.Rendering.ImagesAssembly: Stride.Rendering.dll
Post effect using an Effect (either sdfx or sdsl).
System.Object → DisposeBase → ComponentBase → RendererCoreBase → RendererBase → DrawEffect → ImageEffect →
ImageEffectShader
Derived from ImageEffectShader: ColorCombiner FXAAEffect ImageScaler LuminanceLogEffect SphericalHarmonicsRendererEffect TemporalAntiAliasEffect
[DataContract("ImageEffectShader")]
public class ImageEffectShader : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Name | Description | |
---|---|---|
Constructors | ||
ImageEffectShader(String, Boolean) | Initializes a new instance of the ImageEffectShader class. |
|
Properties | ||
BlendState | ||
DepthStencilState | ||
EffectInstance | The current effect instance. |
|
EffectName | Effect name. |
|
Methods | ||
DrawCore(RenderDrawContext) | ||
InitializeCore() | ||
PreDrawCore(RenderDrawContext) | ||
SetDefaultParameters() | Sets the default parameters (called at constructor time and if |
|
UpdateParameters() | Updates the effect |
Constructors
ImageEffectShader(String, Boolean)
Initializes a new instance of the ImageEffectShader class.
public ImageEffectShader(string effectName = null, bool delaySetRenderTargets = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | effectName | |
System.Boolean | delaySetRenderTargets |
Properties
BlendState
public BlendStateDescription BlendState { get; set; }
Property Value
Type | Description |
---|---|
BlendStateDescription |
DepthStencilState
public DepthStencilStateDescription DepthStencilState { get; set; }
Property Value
Type | Description |
---|---|
DepthStencilStateDescription |
EffectInstance
The current effect instance.
public DynamicEffectInstance EffectInstance { get; }
Property Value
Type | Description |
---|---|
DynamicEffectInstance |
EffectName
Effect name.
public string EffectName { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
DrawCore(RenderDrawContext)
protected override void DrawCore(RenderDrawContext context)
Parameters
Type | Name | Description |
---|---|---|
RenderDrawContext | context |
Overrides
InitializeCore()
protected override void InitializeCore()
Overrides
PreDrawCore(RenderDrawContext)
protected override void PreDrawCore(RenderDrawContext context)
Parameters
Type | Name | Description |
---|---|---|
RenderDrawContext | context |
Overrides
SetDefaultParameters()
Sets the default parameters (called at constructor time and if
protected override void SetDefaultParameters()
Overrides
UpdateParameters()
Updates the effect
protected virtual void UpdateParameters()
Remarks
By default, all the input textures will be remapped to Texture0...etc.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Expecting less than 10 textures in input |