Added test for sequential shader compilation

このコミットが含まれているのは:
Sergio Pedri committed 2019-09-16 19:48:27 +02:00
1 親 9143b5f704
コミット a18f8eba33
1ファイル変更
+14
+14
ファイルの表示
@@ -7,6 +7,20 @@ namespace ComputeSharp.Tests
[TestCategory("HlslVectorTypes")]
public class HlslVectorTypesTests
{
[TestMethod]
public void SequentialCompilation()
{
Float2 f2 = new Float2(1, 2);
using ReadWriteBuffer<Float2> buffer = Gpu.Default.AllocateReadWriteBuffer<Float2>(2);
Action<ThreadIds> action1 = id => buffer[0] = f2.YX;
Action<ThreadIds> action2 = id => buffer[1] = f2.YX;
Gpu.Default.For(1, action1);
Gpu.Default.For(1, action2);
}
[TestMethod]
public void LocalFloatAssignToFloat2Buffer()
{