Move MultipleShaderTypesImplemented to analyzer

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

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

+23
ファイルの表示
@@ -391,4 +391,27 @@ public class Test_Analyzers
await CSharpAnalyzerWithLanguageVersionTest<InvalidGeneratedComputeShaderDescriptorAttributeTargetAnalyzer>.VerifyAnalyzerAsync(source);
}
[TestMethod]
public async Task MultipleComputeShaderInterfacesOnShader_TwoInterfaces()
{
const string source = """
using ComputeSharp;
[GeneratedComputeShaderDescriptor]
internal partial struct {|CMPS0042:MyType|} : IComputeShader, IComputeShader<Float4>
{
public void Execute()
{
}
Float4 IComputeShader<Float4>.Execute()
{
return 0;
}
}
""";
await CSharpAnalyzerWithLanguageVersionTest<MultipleComputeShaderInterfacesOnShaderTypeAnalyzer>.VerifyAnalyzerAsync(source);
}
}