diff options
Diffstat (limited to 'tests/reflection/thread-group-size.comp')
| -rw-r--r-- | tests/reflection/thread-group-size.comp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/reflection/thread-group-size.comp b/tests/reflection/thread-group-size.comp new file mode 100644 index 000000000..2edf2c2df --- /dev/null +++ b/tests/reflection/thread-group-size.comp @@ -0,0 +1,18 @@ +//TEST:SIMPLE:-no-checking -target reflection-json + +// Confirm that we provide reflection data for the `local_size_*` attributes + +layout(local_size_x = 3) in; + +layout(local_size_y = 5, local_size_z = 7) in; + +buffer B +{ + float b[]; +}; + +void main() +{ + uint tid = gl_GlobalInvocationID.x; + b[tid] = b[tid + 1] + 1.0f; +}
\ No newline at end of file |
