1 spv.ssbo.autoassign.frag
2 // Module Version 10000
3 // Generated by (magic number): 80005
4 // Id's are bound by 99
7 1: ExtInstImport "GLSL.std.450"
8 MemoryModel Logical GLSL450
9 EntryPoint Fragment 4 "main" 92 95
10 ExecutionMode 4 OriginUpperLeft
17 MemberName 14(BufType) 0 "va"
18 MemberName 14(BufType) 1 "vb"
20 MemberName 16(SB0) 0 "@data"
23 MemberName 26(TestCB) 0 "W"
24 MemberName 26(TestCB) 1 "H"
27 MemberName 57(SB1) 0 "@data"
31 Name 95 "@entryPointOutput"
33 MemberDecorate 14(BufType) 0 Offset 0
34 MemberDecorate 14(BufType) 1 Offset 16
35 Decorate 15 ArrayStride 32
36 MemberDecorate 16(SB0) 0 NonWritable
37 MemberDecorate 16(SB0) 0 Offset 0
38 Decorate 16(SB0) BufferBlock
39 Decorate 18(SB0) DescriptorSet 0
40 Decorate 18(SB0) Binding 30
41 MemberDecorate 26(TestCB) 0 Offset 0
42 MemberDecorate 26(TestCB) 1 Offset 4
43 Decorate 26(TestCB) Block
44 Decorate 28 DescriptorSet 0
45 Decorate 28 Binding 15
46 Decorate 56 ArrayStride 32
47 MemberDecorate 57(SB1) 0 Offset 0
48 Decorate 57(SB1) BufferBlock
49 Decorate 59(SB1) DescriptorSet 0
50 Decorate 59(SB1) Binding 31
51 Decorate 92(pos) Location 0
52 Decorate 95(@entryPointOutput) Location 0
56 7: TypeVector 6(float) 4
57 8: TypePointer Function 7(fvec4)
58 9: TypeFunction 7(fvec4) 8(ptr)
59 14(BufType): TypeStruct 7(fvec4) 7(fvec4)
60 15: TypeRuntimeArray 14(BufType)
61 16(SB0): TypeStruct 15
62 17: TypePointer Uniform 16(SB0)
63 18(SB0): 17(ptr) Variable Uniform
65 20: 19(int) Constant 0
67 22: 21(int) Constant 1
68 23: TypePointer Function 6(float)
69 26(TestCB): TypeStruct 21(int) 21(int)
70 27: TypePointer Uniform 26(TestCB)
71 28: 27(ptr) Variable Uniform
72 29: TypePointer Uniform 21(int)
73 34: 21(int) Constant 0
74 39: TypePointer Uniform 7(fvec4)
75 52: 19(int) Constant 1
76 56: TypeRuntimeArray 14(BufType)
77 57(SB1): TypeStruct 56
78 58: TypePointer Uniform 57(SB1)
79 59(SB1): 58(ptr) Variable Uniform
80 91: TypePointer Input 7(fvec4)
81 92(pos): 91(ptr) Variable Input
82 94: TypePointer Output 7(fvec4)
83 95(@entryPointOutput): 94(ptr) Variable Output
84 4(main): 2 Function None 3
86 90(pos): 8(ptr) Variable Function
87 96(param): 8(ptr) Variable Function
88 93: 7(fvec4) Load 92(pos)
90 97: 7(fvec4) Load 90(pos)
92 98: 7(fvec4) FunctionCall 11(@main(vf4;) 96(param)
93 Store 95(@entryPointOutput) 98
96 11(@main(vf4;): 7(fvec4) Function None 9
97 10(pos): 8(ptr) FunctionParameter
99 13(vTmp): 8(ptr) Variable Function
100 24: 23(ptr) AccessChain 10(pos) 22
102 30: 29(ptr) AccessChain 28 20
104 32: 6(float) ConvertUToF 31
105 33: 6(float) FMul 25 32
106 35: 23(ptr) AccessChain 10(pos) 34
108 37: 6(float) FAdd 33 36
109 38: 21(int) ConvertFToU 37
110 40: 39(ptr) AccessChain 18(SB0) 20 38 20
112 42: 23(ptr) AccessChain 10(pos) 22
114 44: 29(ptr) AccessChain 28 20
116 46: 6(float) ConvertUToF 45
117 47: 6(float) FMul 43 46
118 48: 23(ptr) AccessChain 10(pos) 34
120 50: 6(float) FAdd 47 49
121 51: 21(int) ConvertFToU 50
122 53: 39(ptr) AccessChain 18(SB0) 20 51 52
124 55: 7(fvec4) FAdd 41 54
126 60: 23(ptr) AccessChain 10(pos) 22
128 62: 29(ptr) AccessChain 28 20
130 64: 6(float) ConvertUToF 63
131 65: 6(float) FMul 61 64
132 66: 23(ptr) AccessChain 10(pos) 34
134 68: 6(float) FAdd 65 67
135 69: 21(int) ConvertFToU 68
136 70: 39(ptr) AccessChain 59(SB1) 20 69 20
138 72: 23(ptr) AccessChain 10(pos) 22
140 74: 29(ptr) AccessChain 28 20
142 76: 6(float) ConvertUToF 75
143 77: 6(float) FMul 73 76
144 78: 23(ptr) AccessChain 10(pos) 34
146 80: 6(float) FAdd 77 79
147 81: 21(int) ConvertFToU 80
148 82: 39(ptr) AccessChain 59(SB1) 20 81 52
150 84: 7(fvec4) FAdd 71 83
151 85: 7(fvec4) Load 13(vTmp)
152 86: 7(fvec4) FAdd 85 84
154 87: 7(fvec4) Load 13(vTmp)