summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2020-11-30 08:59:34 -0800
committerGitHub <noreply@github.com>2020-11-30 08:59:34 -0800
commit339422dc91e10d15cf861ba3006025e3cec250c5 (patch)
treeaded0572aa9eec81d418fe1af509380a7b49fd98
parentde8dbdd778afa876efd9143e302e76c3dfc87ee0 (diff)
Enable all dynamic-dispatch tests on D3D/VK. (#1615)
-rw-r--r--tests/compute/dynamic-dispatch-1.slang4
-rw-r--r--tests/compute/dynamic-dispatch-10.slang4
-rw-r--r--tests/compute/dynamic-dispatch-11.slang2
-rw-r--r--tests/compute/dynamic-dispatch-2.slang4
-rw-r--r--tests/compute/dynamic-dispatch-3.slang4
-rw-r--r--tests/compute/dynamic-dispatch-4.slang4
-rw-r--r--tests/compute/dynamic-dispatch-5.slang4
-rw-r--r--tests/compute/dynamic-dispatch-6.slang4
-rw-r--r--tests/compute/dynamic-dispatch-7.slang4
-rw-r--r--tests/compute/dynamic-dispatch-8.slang4
-rw-r--r--tests/compute/dynamic-dispatch-9.slang4
11 files changed, 32 insertions, 10 deletions
diff --git a/tests/compute/dynamic-dispatch-1.slang b/tests/compute/dynamic-dispatch-1.slang
index f15dcd9e4..554455fcf 100644
--- a/tests/compute/dynamic-dispatch-1.slang
+++ b/tests/compute/dynamic-dispatch-1.slang
@@ -1,3 +1,5 @@
+//TEST(compute):COMPARE_COMPUTE:-dx11
+//TEST(compute):COMPARE_COMPUTE:-vk
//TEST(compute):COMPARE_COMPUTE:-cpu -xslang -disable-specialization
//TEST(compute):COMPARE_COMPUTE_EX:-cuda -compute -xslang -disable-specialization
@@ -28,7 +30,7 @@ int test(int inVal)
}
//TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):out,name=outputBuffer
-RWStructuredBuffer<int> outputBuffer : register(u0);
+RWStructuredBuffer<int> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
diff --git a/tests/compute/dynamic-dispatch-10.slang b/tests/compute/dynamic-dispatch-10.slang
index db0ad8fc1..4f5d368e8 100644
--- a/tests/compute/dynamic-dispatch-10.slang
+++ b/tests/compute/dynamic-dispatch-10.slang
@@ -1,3 +1,5 @@
+//TEST(compute):COMPARE_COMPUTE:-dx11
+//TEST(compute):COMPARE_COMPUTE:-vk
//TEST(compute):COMPARE_COMPUTE:-cpu -xslang -disable-specialization
//TEST(compute):COMPARE_COMPUTE:-cuda -xslang -disable-specialization
@@ -35,7 +37,7 @@ int test(int inVal)
}
//TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):out,name=outputBuffer
-RWStructuredBuffer<int> outputBuffer : register(u0);
+RWStructuredBuffer<int> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
diff --git a/tests/compute/dynamic-dispatch-11.slang b/tests/compute/dynamic-dispatch-11.slang
index c21f88b7f..379cf62d8 100644
--- a/tests/compute/dynamic-dispatch-11.slang
+++ b/tests/compute/dynamic-dispatch-11.slang
@@ -1,5 +1,7 @@
// Test using interface typed shader parameters with dynamic dispatch.
+//TEST(compute):COMPARE_COMPUTE:-dx11
+//TEST(compute):COMPARE_COMPUTE:-vk
//TEST(compute):COMPARE_COMPUTE:-cpu -xslang -disable-specialization
//TEST(compute):COMPARE_COMPUTE:-cuda -xslang -disable-specialization
diff --git a/tests/compute/dynamic-dispatch-2.slang b/tests/compute/dynamic-dispatch-2.slang
index 8fa96db23..e71a17b5c 100644
--- a/tests/compute/dynamic-dispatch-2.slang
+++ b/tests/compute/dynamic-dispatch-2.slang
@@ -1,3 +1,5 @@
+//TEST(compute):COMPARE_COMPUTE:-dx11
+//TEST(compute):COMPARE_COMPUTE:-vk
//TEST(compute):COMPARE_COMPUTE:-cpu -xslang -disable-specialization
//TEST(compute):COMPARE_COMPUTE:-cuda -xslang -disable-specialization
@@ -43,7 +45,7 @@ int test(int inVal)
}
//TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):out,name=outputBuffer
-RWStructuredBuffer<int> outputBuffer : register(u0);
+RWStructuredBuffer<int> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
diff --git a/tests/compute/dynamic-dispatch-3.slang b/tests/compute/dynamic-dispatch-3.slang
index 851251ffd..59b1beed9 100644
--- a/tests/compute/dynamic-dispatch-3.slang
+++ b/tests/compute/dynamic-dispatch-3.slang
@@ -1,3 +1,5 @@
+//TEST(compute):COMPARE_COMPUTE:-dx11
+//TEST(compute):COMPARE_COMPUTE:-vk
//TEST(compute):COMPARE_COMPUTE:-cpu -xslang -disable-specialization
//TEST(compute):COMPARE_COMPUTE:-cuda -xslang -disable-specialization
@@ -52,7 +54,7 @@ int test(int inVal)
}
//TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):out,name=outputBuffer
-RWStructuredBuffer<int> outputBuffer : register(u0);
+RWStructuredBuffer<int> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
diff --git a/tests/compute/dynamic-dispatch-4.slang b/tests/compute/dynamic-dispatch-4.slang
index b2d20020e..8945578a4 100644
--- a/tests/compute/dynamic-dispatch-4.slang
+++ b/tests/compute/dynamic-dispatch-4.slang
@@ -1,3 +1,5 @@
+//TEST(compute):COMPARE_COMPUTE:-dx11
+//TEST(compute):COMPARE_COMPUTE:-vk
//TEST(compute):COMPARE_COMPUTE:-cpu -xslang -disable-specialization
//TEST(compute):COMPARE_COMPUTE:-cuda -xslang -disable-specialization
@@ -35,7 +37,7 @@ int test(int inVal)
}
//TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):out,name=outputBuffer
-RWStructuredBuffer<int> outputBuffer : register(u0);
+RWStructuredBuffer<int> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
diff --git a/tests/compute/dynamic-dispatch-5.slang b/tests/compute/dynamic-dispatch-5.slang
index 88c26eee7..385f3d4c8 100644
--- a/tests/compute/dynamic-dispatch-5.slang
+++ b/tests/compute/dynamic-dispatch-5.slang
@@ -1,3 +1,5 @@
+//TEST(compute):COMPARE_COMPUTE:-dx11
+//TEST(compute):COMPARE_COMPUTE:-vk
//TEST(compute):COMPARE_COMPUTE:-cpu -xslang -disable-specialization
//TEST(compute):COMPARE_COMPUTE:-cuda -xslang -disable-specialization
@@ -27,7 +29,7 @@ int test(int inVal)
}
//TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):out,name=outputBuffer
-RWStructuredBuffer<int> outputBuffer : register(u0);
+RWStructuredBuffer<int> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
diff --git a/tests/compute/dynamic-dispatch-6.slang b/tests/compute/dynamic-dispatch-6.slang
index 8becc9381..536c960ee 100644
--- a/tests/compute/dynamic-dispatch-6.slang
+++ b/tests/compute/dynamic-dispatch-6.slang
@@ -1,3 +1,5 @@
+//TEST(compute):COMPARE_COMPUTE:-dx11
+//TEST(compute):COMPARE_COMPUTE:-vk
//TEST(compute):COMPARE_COMPUTE:-cpu -xslang -disable-specialization
//TEST(compute):COMPARE_COMPUTE:-cuda -xslang -disable-specialization
@@ -44,7 +46,7 @@ int test()
}
//TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):out,name=outputBuffer
-RWStructuredBuffer<int> outputBuffer : register(u0);
+RWStructuredBuffer<int> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
diff --git a/tests/compute/dynamic-dispatch-7.slang b/tests/compute/dynamic-dispatch-7.slang
index eb79f03ef..539a8719d 100644
--- a/tests/compute/dynamic-dispatch-7.slang
+++ b/tests/compute/dynamic-dispatch-7.slang
@@ -1,3 +1,5 @@
+//TEST(compute):COMPARE_COMPUTE:-dx11
+//TEST(compute):COMPARE_COMPUTE:-vk
//TEST(compute):COMPARE_COMPUTE:-cpu -xslang -disable-specialization
//TEST(compute):COMPARE_COMPUTE:-cuda -xslang -disable-specialization
@@ -74,7 +76,7 @@ int test()
}
//TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):out,name=outputBuffer
-RWStructuredBuffer<int> outputBuffer : register(u0);
+RWStructuredBuffer<int> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
diff --git a/tests/compute/dynamic-dispatch-8.slang b/tests/compute/dynamic-dispatch-8.slang
index 440be385e..194093009 100644
--- a/tests/compute/dynamic-dispatch-8.slang
+++ b/tests/compute/dynamic-dispatch-8.slang
@@ -1,3 +1,5 @@
+//TEST(compute):COMPARE_COMPUTE:-dx11
+//TEST(compute):COMPARE_COMPUTE:-vk
//TEST(compute):COMPARE_COMPUTE:-cpu -xslang -disable-specialization
//TEST(compute):COMPARE_COMPUTE:-cuda -xslang -disable-specialization
@@ -28,7 +30,7 @@ int test(int inVal)
}
//TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):out,name=outputBuffer
-RWStructuredBuffer<int> outputBuffer : register(u0);
+RWStructuredBuffer<int> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
diff --git a/tests/compute/dynamic-dispatch-9.slang b/tests/compute/dynamic-dispatch-9.slang
index d69707d5d..8c3dab041 100644
--- a/tests/compute/dynamic-dispatch-9.slang
+++ b/tests/compute/dynamic-dispatch-9.slang
@@ -1,3 +1,5 @@
+//TEST(compute):COMPARE_COMPUTE:-dx11
+//TEST(compute):COMPARE_COMPUTE:-vk
//TEST(compute):COMPARE_COMPUTE:-cpu -xslang -disable-specialization
//TEST(compute):COMPARE_COMPUTE:-cuda -xslang -disable-specialization
@@ -38,7 +40,7 @@ int test(int inVal)
}
//TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):out,name=outputBuffer
-RWStructuredBuffer<int> outputBuffer : register(u0);
+RWStructuredBuffer<int> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)