ShaderMixinObjectId Class
Namespace: Stride.ShadersAssembly: 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. |
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. |