blob: d3da56821c86f9619b4ba64f545aa19a302a34f3 [file] [log] [blame]
LoopDawge2cda3c2017-08-23 12:34:42 -06001hlsl.clipdistance-4.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:7 Function Definition: @main(struct-VS_OUTPUT-vf4-vf41; ( temp 4-component vector of float)
60:7 Function Parameters:
70:7 'v' ( const (read only) structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
80:? Sequence
90:8 Branch: Return with expression
100:8 add ( temp 4-component vector of float)
110:8 Position: direct index for structure ( temp 4-component vector of float)
120:8 'v' ( const (read only) structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
130:8 Constant:
140:8 0 (const int)
150:8 ClipRect: direct index for structure ( temp 4-component vector of float)
160:8 'v' ( const (read only) structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
170:8 Constant:
180:8 1 (const int)
190:7 Function Definition: main( ( temp void)
200:7 Function Parameters:
210:? Sequence
220:7 Sequence
230:7 move second child to first child ( temp 4-component vector of float)
240:7 Position: direct index for structure ( temp 4-component vector of float)
250:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
260:7 Constant:
270:7 0 (const int)
280:? 'v.Position' ( in 4-component vector of float FragCoord)
290:? Sequence
300:7 move second child to first child ( temp float)
310:7 direct index ( temp float)
320:7 ClipRect: direct index for structure ( temp 4-component vector of float)
330:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
340:7 Constant:
350:7 1 (const int)
360:7 Constant:
370:7 0 (const int)
LoopDawgd6f4d9b2017-08-28 14:05:41 -0600380:7 direct index ( in float ClipDistance)
LoopDawge2cda3c2017-08-23 12:34:42 -0600390:? 'v.ClipRect' ( in 4-element array of float ClipDistance)
400:7 Constant:
410:7 0 (const int)
420:7 move second child to first child ( temp float)
430:7 direct index ( temp float)
440:7 ClipRect: direct index for structure ( temp 4-component vector of float)
450:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
460:7 Constant:
470:7 1 (const int)
480:7 Constant:
490:7 1 (const int)
LoopDawgd6f4d9b2017-08-28 14:05:41 -0600500:7 direct index ( in float ClipDistance)
LoopDawge2cda3c2017-08-23 12:34:42 -0600510:? 'v.ClipRect' ( in 4-element array of float ClipDistance)
520:7 Constant:
530:7 1 (const int)
540:7 move second child to first child ( temp float)
550:7 direct index ( temp float)
560:7 ClipRect: direct index for structure ( temp 4-component vector of float)
570:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
580:7 Constant:
590:7 1 (const int)
600:7 Constant:
610:7 2 (const int)
LoopDawgd6f4d9b2017-08-28 14:05:41 -0600620:7 direct index ( in float ClipDistance)
LoopDawge2cda3c2017-08-23 12:34:42 -0600630:? 'v.ClipRect' ( in 4-element array of float ClipDistance)
640:7 Constant:
650:7 2 (const int)
660:7 move second child to first child ( temp float)
670:7 direct index ( temp float)
680:7 ClipRect: direct index for structure ( temp 4-component vector of float)
690:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
700:7 Constant:
710:7 1 (const int)
720:7 Constant:
730:7 3 (const int)
LoopDawgd6f4d9b2017-08-28 14:05:41 -0600740:7 direct index ( in float ClipDistance)
LoopDawge2cda3c2017-08-23 12:34:42 -0600750:? 'v.ClipRect' ( in 4-element array of float ClipDistance)
760:7 Constant:
770:7 3 (const int)
780:7 move second child to first child ( temp 4-component vector of float)
790:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
800:7 Function Call: @main(struct-VS_OUTPUT-vf4-vf41; ( temp 4-component vector of float)
810:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
820:? Linker Objects
830:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
840:? 'v.Position' ( in 4-component vector of float FragCoord)
850:? 'v.ClipRect' ( in 4-element array of float ClipDistance)
86
87
88Linked fragment stage:
89
90
91Shader version: 500
92gl_FragCoord origin is upper left
930:? Sequence
940:7 Function Definition: @main(struct-VS_OUTPUT-vf4-vf41; ( temp 4-component vector of float)
950:7 Function Parameters:
960:7 'v' ( const (read only) structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
970:? Sequence
980:8 Branch: Return with expression
990:8 add ( temp 4-component vector of float)
1000:8 Position: direct index for structure ( temp 4-component vector of float)
1010:8 'v' ( const (read only) structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
1020:8 Constant:
1030:8 0 (const int)
1040:8 ClipRect: direct index for structure ( temp 4-component vector of float)
1050:8 'v' ( const (read only) structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
1060:8 Constant:
1070:8 1 (const int)
1080:7 Function Definition: main( ( temp void)
1090:7 Function Parameters:
1100:? Sequence
1110:7 Sequence
1120:7 move second child to first child ( temp 4-component vector of float)
1130:7 Position: direct index for structure ( temp 4-component vector of float)
1140:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
1150:7 Constant:
1160:7 0 (const int)
1170:? 'v.Position' ( in 4-component vector of float FragCoord)
1180:? Sequence
1190:7 move second child to first child ( temp float)
1200:7 direct index ( temp float)
1210:7 ClipRect: direct index for structure ( temp 4-component vector of float)
1220:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
1230:7 Constant:
1240:7 1 (const int)
1250:7 Constant:
1260:7 0 (const int)
LoopDawgd6f4d9b2017-08-28 14:05:41 -06001270:7 direct index ( in float ClipDistance)
LoopDawge2cda3c2017-08-23 12:34:42 -06001280:? 'v.ClipRect' ( in 4-element array of float ClipDistance)
1290:7 Constant:
1300:7 0 (const int)
1310:7 move second child to first child ( temp float)
1320:7 direct index ( temp float)
1330:7 ClipRect: direct index for structure ( temp 4-component vector of float)
1340:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
1350:7 Constant:
1360:7 1 (const int)
1370:7 Constant:
1380:7 1 (const int)
LoopDawgd6f4d9b2017-08-28 14:05:41 -06001390:7 direct index ( in float ClipDistance)
LoopDawge2cda3c2017-08-23 12:34:42 -06001400:? 'v.ClipRect' ( in 4-element array of float ClipDistance)
1410:7 Constant:
1420:7 1 (const int)
1430:7 move second child to first child ( temp float)
1440:7 direct index ( temp float)
1450:7 ClipRect: direct index for structure ( temp 4-component vector of float)
1460:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
1470:7 Constant:
1480:7 1 (const int)
1490:7 Constant:
1500:7 2 (const int)
LoopDawgd6f4d9b2017-08-28 14:05:41 -06001510:7 direct index ( in float ClipDistance)
LoopDawge2cda3c2017-08-23 12:34:42 -06001520:? 'v.ClipRect' ( in 4-element array of float ClipDistance)
1530:7 Constant:
1540:7 2 (const int)
1550:7 move second child to first child ( temp float)
1560:7 direct index ( temp float)
1570:7 ClipRect: direct index for structure ( temp 4-component vector of float)
1580:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
1590:7 Constant:
1600:7 1 (const int)
1610:7 Constant:
1620:7 3 (const int)
LoopDawgd6f4d9b2017-08-28 14:05:41 -06001630:7 direct index ( in float ClipDistance)
LoopDawge2cda3c2017-08-23 12:34:42 -06001640:? 'v.ClipRect' ( in 4-element array of float ClipDistance)
1650:7 Constant:
1660:7 3 (const int)
1670:7 move second child to first child ( temp 4-component vector of float)
1680:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
1690:7 Function Call: @main(struct-VS_OUTPUT-vf4-vf41; ( temp 4-component vector of float)
1700:? 'v' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float ClipRect})
1710:? Linker Objects
1720:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
1730:? 'v.Position' ( in 4-component vector of float FragCoord)
1740:? 'v.ClipRect' ( in 4-element array of float ClipDistance)
175
John Kessenich2b5ea9f2018-01-31 18:35:56 -0700176// Module Version 10000
John Kessenichc72e5932017-12-11 08:24:06 -0700177// Generated by (magic number): 80003
LoopDawge2cda3c2017-08-23 12:34:42 -0600178// Id's are bound by 57
179
180 Capability Shader
181 Capability ClipDistance
182 1: ExtInstImport "GLSL.std.450"
183 MemoryModel Logical GLSL450
184 EntryPoint Fragment 4 "main" 24 32 54
185 ExecutionMode 4 OriginUpperLeft
186 Source HLSL 500
187 Name 4 "main"
188 Name 8 "VS_OUTPUT"
189 MemberName 8(VS_OUTPUT) 0 "Position"
190 MemberName 8(VS_OUTPUT) 1 "ClipRect"
191 Name 11 "@main(struct-VS_OUTPUT-vf4-vf41;"
192 Name 10 "v"
193 Name 22 "v"
194 Name 24 "v.Position"
195 Name 32 "v.ClipRect"
196 Name 54 "@entryPointOutput"
197 Decorate 24(v.Position) BuiltIn FragCoord
198 Decorate 32(v.ClipRect) BuiltIn ClipDistance
199 Decorate 54(@entryPointOutput) Location 0
200 2: TypeVoid
201 3: TypeFunction 2
202 6: TypeFloat 32
203 7: TypeVector 6(float) 4
204 8(VS_OUTPUT): TypeStruct 7(fvec4) 7(fvec4)
205 9: TypeFunction 7(fvec4) 8(VS_OUTPUT)
206 13: TypeInt 32 1
207 14: 13(int) Constant 0
208 16: 13(int) Constant 1
209 21: TypePointer Function 8(VS_OUTPUT)
210 23: TypePointer Input 7(fvec4)
211 24(v.Position): 23(ptr) Variable Input
212 26: TypePointer Function 7(fvec4)
213 28: TypeInt 32 0
214 29: 28(int) Constant 4
215 30: TypeArray 6(float) 29
216 31: TypePointer Input 30
217 32(v.ClipRect): 31(ptr) Variable Input
218 33: TypePointer Input 6(float)
219 36: 28(int) Constant 0
220 37: TypePointer Function 6(float)
221 41: 28(int) Constant 1
222 43: 13(int) Constant 2
223 46: 28(int) Constant 2
224 48: 13(int) Constant 3
225 51: 28(int) Constant 3
226 53: TypePointer Output 7(fvec4)
22754(@entryPointOutput): 53(ptr) Variable Output
228 4(main): 2 Function None 3
229 5: Label
230 22(v): 21(ptr) Variable Function
231 25: 7(fvec4) Load 24(v.Position)
232 27: 26(ptr) AccessChain 22(v) 14
233 Store 27 25
234 34: 33(ptr) AccessChain 32(v.ClipRect) 14
235 35: 6(float) Load 34
236 38: 37(ptr) AccessChain 22(v) 16 36
237 Store 38 35
238 39: 33(ptr) AccessChain 32(v.ClipRect) 16
239 40: 6(float) Load 39
240 42: 37(ptr) AccessChain 22(v) 16 41
241 Store 42 40
242 44: 33(ptr) AccessChain 32(v.ClipRect) 43
243 45: 6(float) Load 44
244 47: 37(ptr) AccessChain 22(v) 16 46
245 Store 47 45
246 49: 33(ptr) AccessChain 32(v.ClipRect) 48
247 50: 6(float) Load 49
248 52: 37(ptr) AccessChain 22(v) 16 51
249 Store 52 50
250 55:8(VS_OUTPUT) Load 22(v)
251 56: 7(fvec4) FunctionCall 11(@main(struct-VS_OUTPUT-vf4-vf41;) 55
252 Store 54(@entryPointOutput) 56
253 Return
254 FunctionEnd
25511(@main(struct-VS_OUTPUT-vf4-vf41;): 7(fvec4) Function None 9
256 10(v):8(VS_OUTPUT) FunctionParameter
257 12: Label
258 15: 7(fvec4) CompositeExtract 10(v) 0
259 17: 7(fvec4) CompositeExtract 10(v) 1
260 18: 7(fvec4) FAdd 15 17
261 ReturnValue 18
262 FunctionEnd