Table of Contents

Class ShaderMixinObjectId

Namespace
Stride.Shaders
Assembly
Stride.Shaders.dll

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

[DataSerializerGlobal(typeof(ParameterKeyHashSerializer), null, DataSerializerGenericMode.None, false, false, Profile = "Hash")]
[DataSerializerGlobal(typeof(ParameterCollectionHashSerializer), null, DataSerializerGenericMode.None, false, false, Profile = "Hash")]
public class ShaderMixinObjectId
Inheritance
ShaderMixinObjectId

Methods

Compute(ShaderMixinSource, EffectCompilerParameters)

Computes a hash ObjectId for the specified mixin.

public static ObjectId Compute(ShaderMixinSource mixin, EffectCompilerParameters effectCompilerParameters)

Parameters

mixin ShaderMixinSource

The mixin.

effectCompilerParameters EffectCompilerParameters

Returns

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

effectName string

Name of the effect.

compilerParameters CompilerParameters

The compiler parameters.

Returns

ObjectId

EffectObjectIds.