Added diagnostics for multiple shader type implementations
このコミットが含まれているのは:
1 親
49d73b675f
コミット
5a4e05ba94
4ファイル変更
+49
-1
検索条件に一致するファイルはありません
@@ -1370,6 +1370,31 @@ namespace ComputeSharp.Tests.SourceGenerators
|
||||
VerifyGeneratedDiagnostics<IComputeShaderDataLoaderGenerator>(source, "CMPS0046");
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void MultipleShaderTypes()
|
||||
{
|
||||
string source = @"
|
||||
using ComputeSharp;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
public interface IComputeShader { }
|
||||
public interface IPixelShader<TPixel> { }
|
||||
}
|
||||
|
||||
namespace MyFancyApp.Sample
|
||||
{
|
||||
public struct MyShader : IComputeShader, IPixelShader<Float4>
|
||||
{
|
||||
public void Execute()
|
||||
{
|
||||
}
|
||||
}
|
||||
}";
|
||||
|
||||
VerifyGeneratedDiagnostics<IComputeShaderSourceGenerator>(source, "CMPS0047");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifies the output of a source generator.
|
||||
/// </summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする