diff --git a/src/ComputeSharp.Shaders/Mappings/HlslKnownMethods.cs b/src/ComputeSharp.Shaders/Mappings/HlslKnownMethods.cs index 85823c17..cb023eb5 100644 --- a/src/ComputeSharp.Shaders/Mappings/HlslKnownMethods.cs +++ b/src/ComputeSharp.Shaders/Mappings/HlslKnownMethods.cs @@ -222,19 +222,6 @@ namespace ComputeSharp.Shaders.Mappings } } - /// - /// Checks whether or not a specified method is a known HLSL method - /// - /// The containing member symbol for the method to check - /// The symbol for the method to check - /// A indicating whether the input method is in fact an HLSL known method - [Pure] - public static bool IsKnownMethod(ISymbol containingMemberSymbol, ISymbol memberSymbol) - { - string fullTypeName = containingMemberSymbol.IsStatic ? containingMemberSymbol.ToString() : memberSymbol.ContainingType.ToString(); - return KnownMethods.ContainsKey(fullTypeName + Type.Delimiter + memberSymbol.Name); - } - /// /// Tries to get the mapped HLSL-compatible mthod name for the input symbols /// diff --git a/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs b/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs index cd318772..326c3889 100644 --- a/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs +++ b/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs @@ -103,20 +103,6 @@ namespace ComputeSharp.Shaders.Mappings public static bool IsReadWriteBufferType(Type type) => type.IsGenericType && type.GetGenericTypeDefinition() == typeof(ReadWriteBuffer<>); - /// - /// Checks whether or not a given is an HLSL known type - /// - /// The input instance to check - /// A indicating whether the input is in fact a known HLSL type - [Pure] - public static bool IsKnownType(Type type) - { - Type declaredType = type.IsArray ? type.GetElementType() : type; - string fullname = $"{declaredType.Namespace}{Type.Delimiter}{declaredType.Name}"; - - return KnownTypes.ContainsKey(fullname); - } - /// /// Gets the mapped HLSL-compatible type name for the input instance ///