blob: ca282c60a982fd2f2292ff49ce9f4c5f33af55da [file] [log] [blame]
steve-lunarg932bb5c2017-02-21 17:19:08 -07001spv.ssbo.autoassign.frag
2// Module Version 10000
3// Generated by (magic number): 80001
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 NonWritable
34 MemberDecorate 14(BufType) 0 Offset 0
35 MemberDecorate 14(BufType) 1 NonWritable
36 MemberDecorate 14(BufType) 1 Offset 16
37 Decorate 15 ArrayStride 32
38 MemberDecorate 16(SB0) 0 NonWritable
39 MemberDecorate 16(SB0) 0 Offset 0
40 Decorate 16(SB0) BufferBlock
steve-lunargdd8287a2017-02-23 18:04:12 -070041 Decorate 18(SB0) DescriptorSet 0
42 Decorate 18(SB0) Binding 30
steve-lunarg932bb5c2017-02-21 17:19:08 -070043 MemberDecorate 26(TestCB) 0 Offset 0
44 MemberDecorate 26(TestCB) 1 Offset 4
45 Decorate 26(TestCB) Block
46 Decorate 28 DescriptorSet 0
47 Decorate 28 Binding 15
steve-lunargf8203a02017-04-20 09:00:56 -060048 Decorate 56 ArrayStride 32
49 MemberDecorate 57(SB1) 0 Offset 0
50 Decorate 57(SB1) BufferBlock
51 Decorate 59(SB1) DescriptorSet 0
52 Decorate 59(SB1) Binding 31
53 Decorate 92(pos) Location 0
54 Decorate 95(@entryPointOutput) Location 0
steve-lunarg932bb5c2017-02-21 17:19:08 -070055 2: TypeVoid
56 3: TypeFunction 2
57 6: TypeFloat 32
58 7: TypeVector 6(float) 4
59 8: TypePointer Function 7(fvec4)
60 9: TypeFunction 7(fvec4) 8(ptr)
61 14(BufType): TypeStruct 7(fvec4) 7(fvec4)
62 15: TypeRuntimeArray 14(BufType)
63 16(SB0): TypeStruct 15
64 17: TypePointer Uniform 16(SB0)
steve-lunargdd8287a2017-02-23 18:04:12 -070065 18(SB0): 17(ptr) Variable Uniform
steve-lunarg932bb5c2017-02-21 17:19:08 -070066 19: TypeInt 32 1
67 20: 19(int) Constant 0
68 21: TypeInt 32 0
69 22: 21(int) Constant 1
70 23: TypePointer Function 6(float)
71 26(TestCB): TypeStruct 21(int) 21(int)
72 27: TypePointer Uniform 26(TestCB)
73 28: 27(ptr) Variable Uniform
74 29: TypePointer Uniform 21(int)
75 34: 21(int) Constant 0
steve-lunargf8203a02017-04-20 09:00:56 -060076 39: TypePointer Uniform 7(fvec4)
77 52: 19(int) Constant 1
78 56: TypeRuntimeArray 14(BufType)
79 57(SB1): TypeStruct 56
80 58: TypePointer Uniform 57(SB1)
81 59(SB1): 58(ptr) Variable Uniform
82 91: TypePointer Input 7(fvec4)
83 92(pos): 91(ptr) Variable Input
84 94: TypePointer Output 7(fvec4)
8595(@entryPointOutput): 94(ptr) Variable Output
steve-lunarg932bb5c2017-02-21 17:19:08 -070086 4(main): 2 Function None 3
87 5: Label
steve-lunargf8203a02017-04-20 09:00:56 -060088 90(pos): 8(ptr) Variable Function
89 96(param): 8(ptr) Variable Function
90 93: 7(fvec4) Load 92(pos)
91 Store 90(pos) 93
92 97: 7(fvec4) Load 90(pos)
93 Store 96(param) 97
94 98: 7(fvec4) FunctionCall 11(@main(vf4;) 96(param)
95 Store 95(@entryPointOutput) 98
steve-lunarg932bb5c2017-02-21 17:19:08 -070096 Return
97 FunctionEnd
98 11(@main(vf4;): 7(fvec4) Function None 9
99 10(pos): 8(ptr) FunctionParameter
100 12: Label
101 13(vTmp): 8(ptr) Variable Function
102 24: 23(ptr) AccessChain 10(pos) 22
103 25: 6(float) Load 24
104 30: 29(ptr) AccessChain 28 20
105 31: 21(int) Load 30
106 32: 6(float) ConvertUToF 31
107 33: 6(float) FMul 25 32
108 35: 23(ptr) AccessChain 10(pos) 34
109 36: 6(float) Load 35
110 37: 6(float) FAdd 33 36
steve-lunargf8203a02017-04-20 09:00:56 -0600111 38: 21(int) ConvertFToU 37
112 40: 39(ptr) AccessChain 18(SB0) 20 38 20
113 41: 7(fvec4) Load 40
114 42: 23(ptr) AccessChain 10(pos) 22
115 43: 6(float) Load 42
116 44: 29(ptr) AccessChain 28 20
117 45: 21(int) Load 44
118 46: 6(float) ConvertUToF 45
119 47: 6(float) FMul 43 46
120 48: 23(ptr) AccessChain 10(pos) 34
121 49: 6(float) Load 48
122 50: 6(float) FAdd 47 49
123 51: 21(int) ConvertFToU 50
124 53: 39(ptr) AccessChain 18(SB0) 20 51 52
125 54: 7(fvec4) Load 53
126 55: 7(fvec4) FAdd 41 54
127 Store 13(vTmp) 55
128 60: 23(ptr) AccessChain 10(pos) 22
129 61: 6(float) Load 60
130 62: 29(ptr) AccessChain 28 20
131 63: 21(int) Load 62
132 64: 6(float) ConvertUToF 63
133 65: 6(float) FMul 61 64
134 66: 23(ptr) AccessChain 10(pos) 34
135 67: 6(float) Load 66
136 68: 6(float) FAdd 65 67
137 69: 21(int) ConvertFToU 68
138 70: 39(ptr) AccessChain 59(SB1) 20 69 20
139 71: 7(fvec4) Load 70
140 72: 23(ptr) AccessChain 10(pos) 22
141 73: 6(float) Load 72
142 74: 29(ptr) AccessChain 28 20
143 75: 21(int) Load 74
144 76: 6(float) ConvertUToF 75
145 77: 6(float) FMul 73 76
146 78: 23(ptr) AccessChain 10(pos) 34
147 79: 6(float) Load 78
148 80: 6(float) FAdd 77 79
149 81: 21(int) ConvertFToU 80
150 82: 39(ptr) AccessChain 59(SB1) 20 81 52
151 83: 7(fvec4) Load 82
152 84: 7(fvec4) FAdd 71 83
153 85: 7(fvec4) Load 13(vTmp)
154 86: 7(fvec4) FAdd 85 84
155 Store 13(vTmp) 86
156 87: 7(fvec4) Load 13(vTmp)
157 ReturnValue 87
steve-lunarg932bb5c2017-02-21 17:19:08 -0700158 FunctionEnd