Fixed build errors in the unit test projects

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-18 00:37:55 +01:00
1 親 707f0be5c4
コミット 103f3abbe1
4ファイル変更
+25 -5

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

+17
ファイルの表示
@@ -66,6 +66,23 @@ namespace ComputeSharp.SourceGenerators.Mappings
typeof(WarpIds)
};
/// <summary>
/// Checks whether or not a given type name matches a structured buffer type.
/// </summary>
/// <param name="typeName">The input type name to check.</param>
/// <returns>Whether or not <paramref name="typeName"/> represents a structured buffer type.</returns>
public static bool IsStructuredBufferType(string typeName)
{
switch (typeName)
{
case "ComputeSharp.ConstantBuffer`1":
case "ComputeSharp.ReadOnlyBuffer`1":
case "ComputeSharp.ReadWriteBuffer`1":
return true;
default: return false;
};
}
/// <summary>
/// Checks whether or not a given type name matches a typed resource type.
/// </summary>