Move MultipleShaderTypesImplemented to analyzer

このコミットが含まれているのは:
Sergio Pedri committed 2023-11-29 23:17:33 +01:00
1 親 7a630204ef
コミット 86bc68e4dd
4ファイル変更
+24 -26

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

-20
ファイルの表示
@@ -1116,26 +1116,6 @@ public class DiagnosticsTests
VerifyGeneratedDiagnostics<ComputeShaderDescriptorGenerator>(source, "CMPS0041", "CMPS0047");
}
[TestMethod]
public void MultipleShaderTypes()
{
const string source = """
using ComputeSharp;
namespace MyFancyApp.Sample;
[GeneratedComputeShaderDescriptor]
public partial struct MyShader : IComputeShader, IComputeShader<float4>
{
public void Execute()
{
}
}
""";
VerifyGeneratedDiagnostics<ComputeShaderDescriptorGenerator>(source, "CMPS0042", "CMPS0047");
}
[TestMethod]
[DataRow(-1, 1, 1)]
[DataRow(1, -1, 1)]