Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    EffectValidator Struct

    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
    Name Description
    Properties
    ShouldSkip

    Sets this property to true to skip this effect.

    Methods
    BeginEffectValidation()
    EndEffectValidation()
    Initialize()
    ValidateParameter<T>(PermutationParameterKey<T>, T)
    | Improve this Doc View Source

    Properties


    ShouldSkip

    Sets this property to true to skip this effect.

    public bool ShouldSkip { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    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()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation