Implement GetNonDynamicHlslSourceInfo() method

This includes the data gathering step for the HLSL rewrite pipeline
このコミットが含まれているのは:
Sergio Pedri committed 2021-12-08 11:17:04 +01:00
1 親 1b465e7b9d
コミット b912b4f076
9ファイル変更
+2161 -1

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

+20
ファイルの表示
@@ -149,6 +149,26 @@ internal static class HlslKnownTypes
};
}
/// <summary>
/// Checks whether or not a given type name matches a writeable typed resource type.
/// </summary>
/// <param name="typeName">The input type name to check.</param>
/// <returns>Whether or not <paramref name="typeName"/> represents a writeable typed resource type.</returns>
public static bool IsReadWriteTypedResourceType(string typeName)
{
return typeName switch
{
"ComputeSharp.ReadWriteBuffer`1" or
"ComputeSharp.ReadWriteTexture2D`1" or
"ComputeSharp.ReadWriteTexture2D`2" or
"ComputeSharp.ReadWriteTexture3D`1" or
"ComputeSharp.ReadWriteTexture3D`2" or
"ComputeSharp.IReadWriteTexture2D`1" or
"ComputeSharp.IReadWriteTexture3D`1" => true,
_ => false,
};
}
/// <summary>
/// Checks whether or not a given type name matches a typed resource type.
/// </summary>