diff options
| author | ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> | 2024-04-19 23:18:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-19 20:18:40 -0700 |
| commit | f9bcad35562c1f08638e6d3eb397d370d7d2f8f8 (patch) | |
| tree | 4e2a993689209bd5b597263922af03cb87d07c3d /tests/glsl/work-group-builtIn.slang | |
| parent | 2da28c50d9c3699692eccde4b86d0b8d2323e55c (diff) | |
Initial pass to add capability declarations to stdlib intrinsics. (#3912)
Diffstat (limited to 'tests/glsl/work-group-builtIn.slang')
| -rw-r--r-- | tests/glsl/work-group-builtIn.slang | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/glsl/work-group-builtIn.slang b/tests/glsl/work-group-builtIn.slang new file mode 100644 index 000000000..bce0fa518 --- /dev/null +++ b/tests/glsl/work-group-builtIn.slang @@ -0,0 +1,21 @@ +//TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl +#version 430 +precision highp float; +precision highp int; + +//TEST_INPUT:ubuffer(data=[0 0 0], stride=4):out,name=outputBuffer +layout(binding = 0) buffer MyBlockName +{ + int data[6]; +} outputBuffer; + +layout(local_size_x = 32, local_size_y = 1, local_size_z = 1) in; +void computeMain() +{ + outputBuffer.data[0] = gl_NumWorkGroups.x; + outputBuffer.data[1] = gl_NumWorkGroups.y; + outputBuffer.data[2] = gl_NumWorkGroups.z; + // BUF: 1 + // BUF-NEXT: 1 + // BUF-NEXT: 1 +}
\ No newline at end of file |
