diff --git a/src/ComputeSharp.Shaders/Translation/ShaderHashCodeProvider.cs b/src/ComputeSharp.Shaders/Translation/ShaderHashCodeProvider.cs index 9e5a6f0f..e42f0681 100644 --- a/src/ComputeSharp.Shaders/Translation/ShaderHashCodeProvider.cs +++ b/src/ComputeSharp.Shaders/Translation/ShaderHashCodeProvider.cs @@ -60,6 +60,7 @@ namespace ComputeSharp.Shaders.Translation /// /// Gets a unique hashcode for the input compute shader instance /// + /// The type of compute shader currently in use /// The input instance representing the shader to run [Pure] [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -78,6 +79,7 @@ namespace ComputeSharp.Shaders.Translation /// /// A that represents an aggregate hash function for a given instance /// + /// The type of compute shader currently in use /// The initial hash value /// The compute shader instance to use to compute the final hash value /// The final hash value for the input closure @@ -87,6 +89,7 @@ namespace ComputeSharp.Shaders.Translation /// /// Builds a new instance for the target and sequence of values /// + /// The type of compute shader currently in use /// The list of captured fields to inspect [Pure] private static Hasher BuildDynamicHasher(IReadOnlyCollection fieldInfos) @@ -96,7 +99,7 @@ namespace ComputeSharp.Shaders.Translation { MethodInfo getMethodInfo = typeof(Delegate).GetProperty(nameof(Delegate.Method)).GetMethod, - getHashCodeInfo = typeof(object).GetMethod(nameof(GetHashCode)); + getHashCodeInfo = typeof(object).GetMethod(nameof(object.GetHashCode)); foreach (FieldInfo fieldInfo in fieldInfos) { // (hashcode << 5) + hashcode @@ -182,7 +185,7 @@ namespace ComputeSharp.Shaders.Translation MethodInfo validateDelegateInfo = typeof(ShaderHashCodeProvider).GetMethod(nameof(ValidateDelegate), BindingFlags.NonPublic | BindingFlags.Static), getMethodInfo = typeof(Delegate).GetProperty(nameof(Delegate.Method)).GetMethod, - getHashCodeInfo = typeof(object).GetMethod(nameof(GetHashCode)); + getHashCodeInfo = typeof(object).GetMethod(nameof(object.GetHashCode)); foreach (FieldInfo fieldInfo in fieldInfos) { Label label = il.DefineLabel();