summaryrefslogtreecommitdiff
path: root/tests/spirv
diff options
context:
space:
mode:
authorSai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com>2023-04-26 15:46:24 -0400
committerGitHub <noreply@github.com>2023-04-26 15:46:24 -0400
commite1940e53c0f76e91a2616693b261beb9190015be (patch)
tree2ef14f1e81eb1cf0b003cf93102afdbd542f4750 /tests/spirv
parenta1739e87b5fb90b0a39c583f8d2468f851869c9f (diff)
For C-like targets, emit resource declarations before other globals (#2843)
* For C-like targets, emit resource declarations before other globals * Remove unused tests
Diffstat (limited to 'tests/spirv')
-rw-r--r--tests/spirv/spirv-debug-break.slang.expected12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/spirv/spirv-debug-break.slang.expected b/tests/spirv/spirv-debug-break.slang.expected
index d8ac8e010..219aab7d2 100644
--- a/tests/spirv/spirv-debug-break.slang.expected
+++ b/tests/spirv/spirv-debug-break.slang.expected
@@ -7,15 +7,17 @@ standard output = {
layout(row_major) uniform;
layout(row_major) buffer;
-#line 5 0
+#line 12 0
+layout(std430, binding = 0) buffer _S1 {
+ uint _data[];
+} resultBuffer_0;
+
+#line 5
spirv_instruction(id = 1, set = "NonSemantic.DebugBreak")
void _spvDebugBreak_0(int _0);
-#line 12
-layout(std430, binding = 0) buffer _S1 {
- uint _data[];
-} resultBuffer_0;
+#line 15
layout(local_size_x = 4, local_size_y = 1, local_size_z = 1) in;
void main()
{