diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-06 01:03:42 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-06 01:03:42 -0800 |
| commit | b301c93753eaddb4571999f209cb8c1faa2fe205 (patch) | |
| tree | 72fef2e499abecad0dda5ba2347e5890346ac173 /tests | |
| parent | 23c65b873f8002b74d60f61cacb3614da60e078d (diff) | |
Unify GLSL and HLSL buffer block parsing. (#3552)
* Unify GLSL and HLSL buffer block parsing.
Automatic GLSL module recognition.
* Fix.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/glsl/ssbo-scalar.slang | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/glsl/ssbo-scalar.slang b/tests/glsl/ssbo-scalar.slang new file mode 100644 index 000000000..4d3583383 --- /dev/null +++ b/tests/glsl/ssbo-scalar.slang @@ -0,0 +1,26 @@ +//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 0 0 0], stride=4):out,name=outputBuffer +layout(scalar) buffer MyBlockName2 +{ + ivec3 data0; + ivec3 data1; +} outputBuffer; + +layout(local_size_x = 1) in; +void computeMain() +{ + outputBuffer.data0 = ivec3(1,2,3); + outputBuffer.data1 = ivec3(4,5,6); + + // BUF: 1 + // BUF-NEXT: 2 + // BUF-NEXT: 3 + // BUF-NEXT: 4 + // BUF-NEXT: 5 + // BUF-NEXT: 6 +} |
