Removed unused methods

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-26 00:44:29 +02:00
1 親 6d8ba57eff
コミット 705c9c0a94
2ファイル変更
-27

検索条件に一致するファイルはありません

-13
ファイルの表示
@@ -222,19 +222,6 @@ namespace ComputeSharp.Shaders.Mappings
}
}
/// <summary>
/// Checks whether or not a specified method is a known HLSL method
/// </summary>
/// <param name="containingMemberSymbol">The containing member symbol for the method to check</param>
/// <param name="memberSymbol">The symbol for the method to check</param>
/// <returns>A <see langword="bool"/> indicating whether the input method is in fact an HLSL known method</returns>
[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);
}
/// <summary>
/// Tries to get the mapped HLSL-compatible mthod name for the input symbols
/// </summary>
-14
ファイルの表示
@@ -103,20 +103,6 @@ namespace ComputeSharp.Shaders.Mappings
public static bool IsReadWriteBufferType(Type type) => type.IsGenericType &&
type.GetGenericTypeDefinition() == typeof(ReadWriteBuffer<>);
/// <summary>
/// Checks whether or not a given <see cref="Type"/> is an HLSL known type
/// </summary>
/// <param name="type">The input <see cref="Type"/> instance to check</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a known HLSL type</returns>
[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);
}
/// <summary>
/// Gets the mapped HLSL-compatible type name for the input <see cref="Type"/> instance
/// </summary>