Class ShaderMixinObjectId
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
ShaderMixinSourceThe 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
stringName of the effect.
compilerParameters
CompilerParametersThe compiler parameters.
Returns
- ObjectId
EffectObjectIds.