Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ShaderMixinObjectId Class

    Namespace: Stride.Shaders
    Assembly: Stride.Shaders.dll

    A helper class to compute a unique object id for a ShaderMixinSource.

    System.Object → ShaderMixinObjectId
    Derived from ShaderMixinObjectId:

    [DataSerializerGlobal(typeof(ParameterKeyHashSerializer), null, DataSerializerGenericMode.None, false, false, Profile = "Hash")]
    [DataSerializerGlobal(typeof(ParameterCollectionHashSerializer), null, DataSerializerGenericMode.None, false, false, Profile = "Hash")]
    public class ShaderMixinObjectId
    Name Description
    Methods
    Compute(ShaderMixinSource, EffectCompilerParameters)

    Computes a hash ObjectId for the specified mixin.

    Compute(String, CompilerParameters)

    Computes a hash ObjectId for the specified effect and compiler parameters.

    | Improve this Doc View Source

    Methods


    Compute(ShaderMixinSource, EffectCompilerParameters)

    Computes a hash ObjectId for the specified mixin.

    public static ObjectId Compute(ShaderMixinSource mixin, EffectCompilerParameters effectCompilerParameters)
    Parameters
    Type Name Description
    ShaderMixinSource mixin

    The mixin.

    EffectCompilerParameters effectCompilerParameters
    Returns
    Type Description
    ObjectId

    EffectObjectIds.


    Compute(String, CompilerParameters)

    Computes a hash ObjectId for the specified effect and compiler parameters.

    public static ObjectId Compute(string effectName, CompilerParameters compilerParameters)
    Parameters
    Type Name Description
    System.String effectName

    Name of the effect.

    CompilerParameters compilerParameters

    The compiler parameters.

    Returns
    Type Description
    ObjectId

    EffectObjectIds.


    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