summaryrefslogtreecommitdiff
path: root/tests/reflection/thread-group-size.hlsl
diff options
context:
space:
mode:
authorTim Foley <tim.foley.is@gmail.com>2017-07-14 17:15:51 -0700
committerGitHub <noreply@github.com>2017-07-14 17:15:51 -0700
commiteecb6c56da5792010e88f2a0d6d1503244b081a4 (patch)
tree427a1073c4d2bdafb3b1f4ba2480a70c9af52b4a /tests/reflection/thread-group-size.hlsl
parentffa7f2a9e919be6f155d1c6e62e85827ffc6e3bd (diff)
parent66bae403827a37bdc587f3356cc58fde166d04a1 (diff)
Merge pull request #92 from tfoleyNV/glsl-thread-group-size
Add reflection support for GLSL thread-group-size modifier
Diffstat (limited to 'tests/reflection/thread-group-size.hlsl')
-rw-r--r--tests/reflection/thread-group-size.hlsl11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/reflection/thread-group-size.hlsl b/tests/reflection/thread-group-size.hlsl
new file mode 100644
index 000000000..650a41e46
--- /dev/null
+++ b/tests/reflection/thread-group-size.hlsl
@@ -0,0 +1,11 @@
+//TEST:SIMPLE:-profile cs_5_0 -target reflection-json
+
+// Confirm that we provide reflection data for the `numthreads` attribute
+
+RWStructuredBuffer<float> b;
+
+[numthreads(3,5,7)]
+void main(uint3 tid : SV_DispatchThreadID)
+{
+ b[tid.x] = b[tid.x + 1] + 1.0f;
+} \ No newline at end of file