EffectValidator Struct
Namespace: Stride.RenderingAssembly: 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
| Name | Description | |
|---|---|---|
| Properties | ||
| ShouldSkip | Sets this property to |
|
| Methods | ||
| BeginEffectValidation() | ||
| EndEffectValidation() | ||
| Initialize() | ||
| ValidateParameter<T>(PermutationParameterKey<T>, T) | ||
Properties
ShouldSkip
Sets this property to true to skip this effect.
public bool ShouldSkip { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
BeginEffectValidation()
public void BeginEffectValidation()
EndEffectValidation()
public bool EndEffectValidation()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Initialize()
public void Initialize()
ValidateParameter<T>(PermutationParameterKey<T>, T)
public void ValidateParameter<T>(PermutationParameterKey<T> key, T value)
Parameters
| Type | Name | Description |
|---|---|---|
| PermutationParameterKey<T> | key | |
| T | value |
Type Parameters
| Name | Description |
|---|---|
| T |
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()