Table of Contents

Struct EffectValidator

Namespace
Stride.Rendering
Assembly
Stride.Rendering.dll

How to use: BeginEffectValidation(); ValidateParameter(key1, value1); ValidateParameter(key2, value2); ... EndEffectValidation(); //returns true if same as last time, false if something changed You can use EffectValues to actually compile the effect.

public struct EffectValidator
Inherited Members

Properties

ShouldSkip

Sets this property to true to skip this effect.

public bool ShouldSkip { readonly get; set; }

Property Value

bool

Methods

BeginEffectValidation()

public void BeginEffectValidation()

EndEffectValidation()

public bool EndEffectValidation()

Returns

bool

Initialize()

public void Initialize()

ValidateParameter<T>(PermutationParameterKey<T>, T)

public void ValidateParameter<T>(PermutationParameterKey<T> key, T value)

Parameters

key PermutationParameterKey<T>
value T

Type Parameters

T