summaryrefslogtreecommitdiff
path: root/tests/compute/parameter-block.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-03-25 09:41:53 -0700
committerGitHub <noreply@github.com>2021-03-25 09:41:53 -0700
commite050035e0b7d3f257a46bc1cb644163026cb1b23 (patch)
treee4a38fa4c2f26313c2d374a19c5a4a1904ffdeb1 /tests/compute/parameter-block.slang
parent98afb421f408aa8651afff3dba1b21fad71131fe (diff)
Improve Vulkan shader-objects implementation. (#1765)
* Improve Vulkan shader-objects implementation. 1. Null bindings no longer crashes. 2. No longer copies push constants to staging CPU buffer before setting it into command buffer. The entry-point shader object now directly sets it into command buffer upon `bindObject` call. * Update comments * Fix * Re-enable 3 tests. Improved vulkan implementation so that each shader object is responsible for creating descriptor sets on-demand. Fixed slang reflection to correctly report `ParameterBlock` binding. * Fix gcc compile error.
Diffstat (limited to 'tests/compute/parameter-block.slang')
-rw-r--r--tests/compute/parameter-block.slang7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/compute/parameter-block.slang b/tests/compute/parameter-block.slang
index 331eebf7c..b1f861236 100644
--- a/tests/compute/parameter-block.slang
+++ b/tests/compute/parameter-block.slang
@@ -1,5 +1,8 @@
-//TEST_DISABLED(compute):COMPARE_COMPUTE:
-//TEST_DISABLED(compute):COMPARE_COMPUTE:-cpu
+//TEST(compute):COMPARE_COMPUTE:-cpu -shaderobj
+//TEST(compute):COMPARE_COMPUTE:-cuda -shaderobj
+//TEST(compute):COMPARE_COMPUTE:-vk -shaderobj
+//TEST(compute):COMPARE_COMPUTE:-shaderobj
+
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=block0.buffer
//TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):name=block1.buffer