yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Jeff BolzAvoid reusing array types with stride when no stride is requested.d5eefa93

main
4.2 KiB85 linesraw
1spv.noexplicitlayout.comp
2// Module Version 10600
3// Generated by (magic number): 8000b
4// Id's are bound by 38
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint GLCompute 4  "main" 12 24
10                              ExecutionMode 4 LocalSize 64 1 1
11                              Source GLSL 450
12                              Name 4  "main"
13                              Name 10  "foo"
14                              MemberName 10(foo) 0  "x"
15                              Name 12  "f"
16                              Name 16  "x"
17                              Name 21  "Bar"
18                              MemberName 21(Bar) 0  "x"
19                              MemberName 21(Bar) 1  "y"
20                              MemberName 21(Bar) 2  "z"
21                              Name 22  "foo2"
22                              MemberName 22(foo2) 0  "a"
23                              MemberName 22(foo2) 1  "b"
24                              MemberName 22(foo2) 2  "c"
25                              Name 24  ""
26                              Name 27  "Bar"
27                              MemberName 27(Bar) 0  "x"
28                              MemberName 27(Bar) 1  "y"
29                              MemberName 27(Bar) 2  "z"
30                              Name 29  "new_bar"
31                              Decorate 9 ArrayStride 4
32                              Decorate 10(foo) Block
33                              MemberDecorate 10(foo) 0 Offset 0
34                              Decorate 12(f) Binding 0
35                              Decorate 12(f) DescriptorSet 0
36                              Decorate 20 ArrayStride 4
37                              MemberDecorate 21(Bar) 0 Offset 0
38                              MemberDecorate 21(Bar) 1 Offset 4
39                              MemberDecorate 21(Bar) 2 Offset 8
40                              Decorate 22(foo2) Block
41                              MemberDecorate 22(foo2) 0 Offset 0
42                              MemberDecorate 22(foo2) 1 Offset 16
43                              MemberDecorate 22(foo2) 2 Offset 32
44                              Decorate 24 Binding 1
45                              Decorate 24 DescriptorSet 0
46               2:             TypeVoid
47               3:             TypeFunction 2
48               6:             TypeInt 32 1
49               7:             TypeInt 32 0
50               8:      7(int) Constant 4
51               9:             TypeArray 6(int) 8
52         10(foo):             TypeStruct 9
53              11:             TypePointer StorageBuffer 10(foo)
54           12(f):     11(ptr) Variable StorageBuffer
55              13:      6(int) Constant 0
56              14:             TypeArray 6(int) 8
57              15:             TypePointer Function 14
58              17:          14 ConstantComposite 13 13 13 13
59              18:             TypeVector 7(int) 4
60              19:      7(int) Constant 2
61              20:             TypeArray 7(int) 19
62         21(Bar):             TypeStruct 7(int) 7(int) 20
63        22(foo2):             TypeStruct 18(ivec4) 21(Bar) 7(int)
64              23:             TypePointer StorageBuffer 22(foo2)
65              24:     23(ptr) Variable StorageBuffer
66              25:      6(int) Constant 1
67              26:             TypeArray 7(int) 19
68         27(Bar):             TypeStruct 7(int) 7(int) 26
69              28:             TypePointer Function 27(Bar)
70              31:             TypePointer StorageBuffer 21(Bar)
71              34:             TypeVector 7(int) 3
72              35:      7(int) Constant 64
73              36:      7(int) Constant 1
74              37:   34(ivec3) ConstantComposite 35 36 36
75         4(main):           2 Function None 3
76               5:             Label
77           16(x):     15(ptr) Variable Function
78     29(new_bar):     28(ptr) Variable Function
79                              Store 16(x) 17
80              30:     27(Bar) Load 29(new_bar)
81              32:     31(ptr) AccessChain 24 25
82              33:     21(Bar) CopyLogical 30
83                              Store 32 33
84                              Return
85                              FunctionEnd