diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-07-14 14:38:13 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-07-14 14:42:51 -0700 |
| commit | 66bae403827a37bdc587f3356cc58fde166d04a1 (patch) | |
| tree | 427a1073c4d2bdafb3b1f4ba2480a70c9af52b4a /tests/reflection/thread-group-size.hlsl.expected | |
| parent | ffa7f2a9e919be6f155d1c6e62e85827ffc6e3bd (diff) | |
Add reflection support for GLSL thread-group-size modifier
Fixes #15
These are the modifiers like:
layout(local_size_x = 16) in;
Unlike the HLSL case, these don't get attache to the entry point function itself, so there is a bit more work involed in looking them up.
Just to make sure I didn't mess up the HLSL case, I went ahead and added two tests for this capability: one for GLSL and one for HLSL.
Diffstat (limited to 'tests/reflection/thread-group-size.hlsl.expected')
| -rw-r--r-- | tests/reflection/thread-group-size.hlsl.expected | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/reflection/thread-group-size.hlsl.expected b/tests/reflection/thread-group-size.hlsl.expected new file mode 100644 index 000000000..60d5e822c --- /dev/null +++ b/tests/reflection/thread-group-size.hlsl.expected @@ -0,0 +1,39 @@ +result code = 0 +standard error = { +} +standard output = { +{ + "parameters": [ + { + "name": "b", + "binding": {"kind": "unorderedAccess", "index": 0}, + "type": { + "kind": "resource", + "baseShape": "structuredBuffer", + "access": "readWrite" + } + } + ], + "entryPoints": [ + { + "name": "main", + "stage:": "compute", + "parameters": [ + { + "name": "tid", + "binding": {"kind": "vertexInput", "index": 0}, + "type": { + "kind": "vector", + "elementCount": 3, + "elementType": { + "kind": "scalar", + "scalarType": "uint32" + } + } + } + ], + "threadGroupSize": [3, 5, 7] + } + ] +} +} |
