summaryrefslogtreecommitdiffstats
path: root/tests/compute/static-const-array.slang
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-04-09 15:43:09 -0400
committerGitHub <noreply@github.com>2020-04-09 15:43:09 -0400
commita01c09c3934d3f859bf4bea6b4e583f25291b643 (patch)
tree47b01ad7a3b138c46ca0f7904415a5ad6a74bb72 /tests/compute/static-const-array.slang
parent78acd326a0dd684dd16f1db55bd53937fc38d467 (diff)
Literal folding on other operators (#1314)
* Fold prefix operators if they prefix an int literal. * Make test case a bit more convoluted. * Remove ++ and -- as not appropriate for folding of literals. * Set output buffer name.
Diffstat (limited to 'tests/compute/static-const-array.slang')
-rw-r--r--tests/compute/static-const-array.slang6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/compute/static-const-array.slang b/tests/compute/static-const-array.slang
index 4bd197a05..1f111e364 100644
--- a/tests/compute/static-const-array.slang
+++ b/tests/compute/static-const-array.slang
@@ -1,10 +1,10 @@
// static-const-array.slang
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute
-//TEST_DISABLED(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute
+//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute
+//TEST(compute):COMPARE_COMPUTE_EX:-cpu -slang -compute
-
-//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out
+//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out, name outputBuffer
RWStructuredBuffer<int> outputBuffer;
static const int kArray[] = { 16, 1, 32, 2 };