blob: e2db863c65488b2399e052f2a0a3aeb1dee3c6d6 [file] [log] [blame]
steve-lunarg932bb5c2017-02-21 17:19:08 -07001spv.ssbo.autoassign.frag
John Kessenich2b5ea9f2018-01-31 18:35:56 -07002// Module Version 10000
Graeme Leese182ab462020-06-22 11:49:38 +01003// Generated by (magic number): 8000a
steve-lunargf8203a02017-04-20 09:00:56 -06004// Id's are bound by 99
steve-lunarg932bb5c2017-02-21 17:19:08 -07005
6 Capability Shader
7 1: ExtInstImport "GLSL.std.450"
8 MemoryModel Logical GLSL450
steve-lunargf8203a02017-04-20 09:00:56 -06009 EntryPoint Fragment 4 "main" 92 95
steve-lunarg932bb5c2017-02-21 17:19:08 -070010 ExecutionMode 4 OriginUpperLeft
John Kessenich6fa17642017-04-07 15:33:08 -060011 Source HLSL 500
steve-lunarg932bb5c2017-02-21 17:19:08 -070012 Name 4 "main"
13 Name 11 "@main(vf4;"
14 Name 10 "pos"
15 Name 13 "vTmp"
16 Name 14 "BufType"
17 MemberName 14(BufType) 0 "va"
18 MemberName 14(BufType) 1 "vb"
19 Name 16 "SB0"
steve-lunargdd8287a2017-02-23 18:04:12 -070020 MemberName 16(SB0) 0 "@data"
21 Name 18 "SB0"
steve-lunarg932bb5c2017-02-21 17:19:08 -070022 Name 26 "TestCB"
23 MemberName 26(TestCB) 0 "W"
24 MemberName 26(TestCB) 1 "H"
25 Name 28 ""
steve-lunargdd8287a2017-02-23 18:04:12 -070026 Name 57 "SB1"
steve-lunargf8203a02017-04-20 09:00:56 -060027 MemberName 57(SB1) 0 "@data"
28 Name 59 "SB1"
29 Name 90 "pos"
30 Name 92 "pos"
31 Name 95 "@entryPointOutput"
32 Name 96 "param"
steve-lunarg932bb5c2017-02-21 17:19:08 -070033 MemberDecorate 14(BufType) 0 Offset 0
steve-lunarg932bb5c2017-02-21 17:19:08 -070034 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
steve-lunargdd8287a2017-02-23 18:04:12 -070039 Decorate 18(SB0) DescriptorSet 0
40 Decorate 18(SB0) Binding 30
steve-lunarg932bb5c2017-02-21 17:19:08 -070041 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
steve-lunargf8203a02017-04-20 09:00:56 -060046 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
steve-lunarg932bb5c2017-02-21 17:19:08 -070053 2: TypeVoid
54 3: TypeFunction 2
55 6: TypeFloat 32
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)
steve-lunargdd8287a2017-02-23 18:04:12 -070063 18(SB0): 17(ptr) Variable Uniform
steve-lunarg932bb5c2017-02-21 17:19:08 -070064 19: TypeInt 32 1
65 20: 19(int) Constant 0
66 21: TypeInt 32 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
steve-lunargf8203a02017-04-20 09:00:56 -060074 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)
8395(@entryPointOutput): 94(ptr) Variable Output
steve-lunarg932bb5c2017-02-21 17:19:08 -070084 4(main): 2 Function None 3
85 5: Label
steve-lunargf8203a02017-04-20 09:00:56 -060086 90(pos): 8(ptr) Variable Function
87 96(param): 8(ptr) Variable Function
88 93: 7(fvec4) Load 92(pos)
89 Store 90(pos) 93
90 97: 7(fvec4) Load 90(pos)
91 Store 96(param) 97
92 98: 7(fvec4) FunctionCall 11(@main(vf4;) 96(param)
93 Store 95(@entryPointOutput) 98
steve-lunarg932bb5c2017-02-21 17:19:08 -070094 Return
95 FunctionEnd
96 11(@main(vf4;): 7(fvec4) Function None 9
97 10(pos): 8(ptr) FunctionParameter
98 12: Label
99 13(vTmp): 8(ptr) Variable Function
100 24: 23(ptr) AccessChain 10(pos) 22
101 25: 6(float) Load 24
102 30: 29(ptr) AccessChain 28 20
103 31: 21(int) Load 30
104 32: 6(float) ConvertUToF 31
105 33: 6(float) FMul 25 32
106 35: 23(ptr) AccessChain 10(pos) 34
107 36: 6(float) Load 35
108 37: 6(float) FAdd 33 36
steve-lunargf8203a02017-04-20 09:00:56 -0600109 38: 21(int) ConvertFToU 37
110 40: 39(ptr) AccessChain 18(SB0) 20 38 20
111 41: 7(fvec4) Load 40
112 42: 23(ptr) AccessChain 10(pos) 22
113 43: 6(float) Load 42
114 44: 29(ptr) AccessChain 28 20
115 45: 21(int) Load 44
116 46: 6(float) ConvertUToF 45
117 47: 6(float) FMul 43 46
118 48: 23(ptr) AccessChain 10(pos) 34
119 49: 6(float) Load 48
120 50: 6(float) FAdd 47 49
121 51: 21(int) ConvertFToU 50
122 53: 39(ptr) AccessChain 18(SB0) 20 51 52
123 54: 7(fvec4) Load 53
124 55: 7(fvec4) FAdd 41 54
125 Store 13(vTmp) 55
126 60: 23(ptr) AccessChain 10(pos) 22
127 61: 6(float) Load 60
128 62: 29(ptr) AccessChain 28 20
129 63: 21(int) Load 62
130 64: 6(float) ConvertUToF 63
131 65: 6(float) FMul 61 64
132 66: 23(ptr) AccessChain 10(pos) 34
133 67: 6(float) Load 66
134 68: 6(float) FAdd 65 67
135 69: 21(int) ConvertFToU 68
136 70: 39(ptr) AccessChain 59(SB1) 20 69 20
137 71: 7(fvec4) Load 70
138 72: 23(ptr) AccessChain 10(pos) 22
139 73: 6(float) Load 72
140 74: 29(ptr) AccessChain 28 20
141 75: 21(int) Load 74
142 76: 6(float) ConvertUToF 75
143 77: 6(float) FMul 73 76
144 78: 23(ptr) AccessChain 10(pos) 34
145 79: 6(float) Load 78
146 80: 6(float) FAdd 77 79
147 81: 21(int) ConvertFToU 80
148 82: 39(ptr) AccessChain 59(SB1) 20 81 52
149 83: 7(fvec4) Load 82
150 84: 7(fvec4) FAdd 71 83
151 85: 7(fvec4) Load 13(vTmp)
152 86: 7(fvec4) FAdd 85 84
153 Store 13(vTmp) 86
154 87: 7(fvec4) Load 13(vTmp)
155 ReturnValue 87
steve-lunarg932bb5c2017-02-21 17:19:08 -0700156 FunctionEnd