Table of Contents

Class RenderEffect

Namespace
Stride.Rendering
Assembly
Stride.Rendering.dll

Instantiation of an Effect for a given StaticEffectObjectNodeReference.

public class RenderEffect
Inheritance
RenderEffect

Constructors

RenderEffect(EffectSelector)

public RenderEffect(EffectSelector effectSelector)

Parameters

effectSelector EffectSelector

Fields

Effect

public Effect Effect

Field Value

Effect

EffectSelector

public readonly EffectSelector EffectSelector

Field Value

EffectSelector

EffectValidator

Validates if effect needs to be compiled or recompiled.

public EffectValidator EffectValidator

Field Value

EffectValidator

FallbackParameterUpdater

public EffectParameterUpdater FallbackParameterUpdater

Field Value

EffectParameterUpdater

FallbackParameters

public ParameterCollection FallbackParameters

Field Value

ParameterCollection

IsReflectionUpdateRequired

public bool IsReflectionUpdateRequired

Field Value

bool

PendingEffect

Pending effect being compiled.

public Task<Effect> PendingEffect

Field Value

Task<Effect>

PipelineState

Compiled pipeline state.

public PipelineState PipelineState

Field Value

PipelineState

Reflection

public RenderEffectReflection Reflection

Field Value

RenderEffectReflection

RetryTime

Describes when to try again after a previous error (UTC).

public DateTime RetryTime

Field Value

DateTime

State

Describes what state the effect is in (compiling, error, etc..)

public RenderEffectState State

Field Value

RenderEffectState

Properties

LastFrameUsed

public int LastFrameUsed { get; }

Property Value

int

Methods

ClearFallbackParameters()

public void ClearFallbackParameters()

IsUsedDuringThisFrame(RenderSystem)

public bool IsUsedDuringThisFrame(RenderSystem renderSystem)

Parameters

renderSystem RenderSystem

Returns

bool

MarkAsUsed(RenderSystem)

Mark effect as used during this frame.

public bool MarkAsUsed(RenderSystem renderSystem)

Parameters

renderSystem RenderSystem

Returns

bool

True if state changed (object was not mark as used during this frame until now), otherwise false.