Remove IShader.GetDispatchId() infrastructure

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-13 10:58:57 +02:00
1 親 9acb650627
コミット 3db275a157
19ファイル変更
+14 -709

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

-35
ファイルの表示
@@ -1481,41 +1481,6 @@ public class DiagnosticsTests
VerifyGeneratedDiagnostics<IShaderGenerator>(source, "CMPS0042", "CMPS0047");
}
[TestMethod]
public void EmbeddedBytecodeWithDynamicShader()
{
const string source = """
using System;
using ComputeSharp;
namespace ComputeSharp
{
public interface IComputeShader { }
public class ReadWriteBuffer<T> { }
public class EmbeddedBytecodeAttribute : Attribute
{
public EmbeddedBytecodeAttribute(int threadsX, int threadsY, int threadsZ) { }
}
}
namespace MyFancyApp.Sample
{
[EmbeddedBytecode(8, 8, 1)]
public struct MyShader : IComputeShader
{
public ReadWriteBuffer<float> buffer;
public Action action;
public void Execute()
{
}
}
}
""";
VerifyGeneratedDiagnostics<IShaderGenerator>(source, "CMPS0043");
}
[TestMethod]
[DataRow(-1, 1, 1)]
[DataRow(1, -1, 1)]