HLSL: Wrap the entry-point; need to write 'in' args, and support 'inout' args.
This needs some render testing, but is destined to be part of master. This also leads to a variety of other simplifications. - IO are global symbols, so only need one list of linkage nodes (deferred) - no longer need parse-context-wide 'inEntryPoint' state, entry-point is localized - several parts of splitting/flattening are now localized
This commit is contained in:
parent
18adbdbbb8
commit
02467d8d94
171 changed files with 37604 additions and 32679 deletions
|
|
@ -2,95 +2,77 @@ hlsl.if.frag
|
|||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:2 Function Definition: PixelShaderFunction(vf4; (temp 4-component vector of float)
|
||||
0:2 Function Definition: @PixelShaderFunction(vf4; (temp 4-component vector of float)
|
||||
0:2 Function Parameters:
|
||||
0:2 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:2 'input' (in 4-component vector of float)
|
||||
0:? Sequence
|
||||
0:3 Test condition and select (temp void)
|
||||
0:3 Condition
|
||||
0:3 all (temp bool)
|
||||
0:3 Equal (temp 4-component vector of bool)
|
||||
0:3 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:3 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:3 'input' (in 4-component vector of float)
|
||||
0:3 'input' (in 4-component vector of float)
|
||||
0:3 true case
|
||||
0:4 Sequence
|
||||
0:4 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:4 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:4 Branch: Return
|
||||
0:4 Branch: Return with expression
|
||||
0:4 'input' (in 4-component vector of float)
|
||||
0:6 Test condition and select (temp void)
|
||||
0:6 Condition
|
||||
0:6 all (temp bool)
|
||||
0:6 Equal (temp 4-component vector of bool)
|
||||
0:6 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:6 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:6 'input' (in 4-component vector of float)
|
||||
0:6 'input' (in 4-component vector of float)
|
||||
0:6 true case
|
||||
0:7 Sequence
|
||||
0:7 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:7 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:7 Branch: Return
|
||||
0:7 Branch: Return with expression
|
||||
0:7 'input' (in 4-component vector of float)
|
||||
0:6 false case
|
||||
0:9 Sequence
|
||||
0:9 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:9 Negate value (temp 4-component vector of float)
|
||||
0:9 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:9 Branch: Return
|
||||
0:9 Branch: Return with expression
|
||||
0:9 Negate value (temp 4-component vector of float)
|
||||
0:9 'input' (in 4-component vector of float)
|
||||
0:11 Test condition and select (temp void)
|
||||
0:11 Condition
|
||||
0:11 all (temp bool)
|
||||
0:11 Equal (temp 4-component vector of bool)
|
||||
0:11 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:11 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:11 'input' (in 4-component vector of float)
|
||||
0:11 'input' (in 4-component vector of float)
|
||||
0:11 true case is null
|
||||
0:14 Test condition and select (temp void)
|
||||
0:14 Condition
|
||||
0:14 all (temp bool)
|
||||
0:14 Equal (temp 4-component vector of bool)
|
||||
0:14 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:14 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:14 'input' (in 4-component vector of float)
|
||||
0:14 'input' (in 4-component vector of float)
|
||||
0:14 true case is null
|
||||
0:19 Test condition and select (temp void)
|
||||
0:19 Condition
|
||||
0:19 all (temp bool)
|
||||
0:19 Equal (temp 4-component vector of bool)
|
||||
0:19 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:19 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:19 'input' (in 4-component vector of float)
|
||||
0:19 'input' (in 4-component vector of float)
|
||||
0:19 true case
|
||||
0:? Sequence
|
||||
0:20 Sequence
|
||||
0:20 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:20 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:20 Branch: Return
|
||||
0:20 Branch: Return with expression
|
||||
0:20 'input' (in 4-component vector of float)
|
||||
0:23 Test condition and select (temp void)
|
||||
0:23 Condition
|
||||
0:23 all (temp bool)
|
||||
0:23 Equal (temp 4-component vector of bool)
|
||||
0:23 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:23 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:23 'input' (in 4-component vector of float)
|
||||
0:23 'input' (in 4-component vector of float)
|
||||
0:23 true case
|
||||
0:? Sequence
|
||||
0:24 Sequence
|
||||
0:24 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:24 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:24 Branch: Return
|
||||
0:24 Branch: Return with expression
|
||||
0:24 'input' (in 4-component vector of float)
|
||||
0:23 false case
|
||||
0:? Sequence
|
||||
0:26 Sequence
|
||||
0:26 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:26 Negate value (temp 4-component vector of float)
|
||||
0:26 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:26 Branch: Return
|
||||
0:26 Branch: Return with expression
|
||||
0:26 Negate value (temp 4-component vector of float)
|
||||
0:26 'input' (in 4-component vector of float)
|
||||
0:30 Test condition and select (temp void)
|
||||
0:30 Condition
|
||||
0:30 move second child to first child (temp float)
|
||||
0:30 'ii' (temp float)
|
||||
0:30 direct index (temp float)
|
||||
0:30 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:30 'input' (in 4-component vector of float)
|
||||
0:30 Constant:
|
||||
0:30 2 (const int)
|
||||
0:30 true case
|
||||
|
|
@ -98,6 +80,16 @@ gl_FragCoord origin is upper left
|
|||
0:31 'ii' (temp float)
|
||||
0:32 Pre-Increment (temp int)
|
||||
0:32 'ii' (temp int)
|
||||
0:2 Function Definition: PixelShaderFunction( (temp void)
|
||||
0:2 Function Parameters:
|
||||
0:? Sequence
|
||||
0:2 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'input' (temp 4-component vector of float)
|
||||
0:? 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:2 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:2 Function Call: @PixelShaderFunction(vf4; (temp 4-component vector of float)
|
||||
0:? 'input' (temp 4-component vector of float)
|
||||
0:? Linker Objects
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:? 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
|
|
@ -109,95 +101,77 @@ Linked fragment stage:
|
|||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:2 Function Definition: PixelShaderFunction(vf4; (temp 4-component vector of float)
|
||||
0:2 Function Definition: @PixelShaderFunction(vf4; (temp 4-component vector of float)
|
||||
0:2 Function Parameters:
|
||||
0:2 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:2 'input' (in 4-component vector of float)
|
||||
0:? Sequence
|
||||
0:3 Test condition and select (temp void)
|
||||
0:3 Condition
|
||||
0:3 all (temp bool)
|
||||
0:3 Equal (temp 4-component vector of bool)
|
||||
0:3 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:3 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:3 'input' (in 4-component vector of float)
|
||||
0:3 'input' (in 4-component vector of float)
|
||||
0:3 true case
|
||||
0:4 Sequence
|
||||
0:4 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:4 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:4 Branch: Return
|
||||
0:4 Branch: Return with expression
|
||||
0:4 'input' (in 4-component vector of float)
|
||||
0:6 Test condition and select (temp void)
|
||||
0:6 Condition
|
||||
0:6 all (temp bool)
|
||||
0:6 Equal (temp 4-component vector of bool)
|
||||
0:6 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:6 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:6 'input' (in 4-component vector of float)
|
||||
0:6 'input' (in 4-component vector of float)
|
||||
0:6 true case
|
||||
0:7 Sequence
|
||||
0:7 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:7 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:7 Branch: Return
|
||||
0:7 Branch: Return with expression
|
||||
0:7 'input' (in 4-component vector of float)
|
||||
0:6 false case
|
||||
0:9 Sequence
|
||||
0:9 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:9 Negate value (temp 4-component vector of float)
|
||||
0:9 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:9 Branch: Return
|
||||
0:9 Branch: Return with expression
|
||||
0:9 Negate value (temp 4-component vector of float)
|
||||
0:9 'input' (in 4-component vector of float)
|
||||
0:11 Test condition and select (temp void)
|
||||
0:11 Condition
|
||||
0:11 all (temp bool)
|
||||
0:11 Equal (temp 4-component vector of bool)
|
||||
0:11 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:11 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:11 'input' (in 4-component vector of float)
|
||||
0:11 'input' (in 4-component vector of float)
|
||||
0:11 true case is null
|
||||
0:14 Test condition and select (temp void)
|
||||
0:14 Condition
|
||||
0:14 all (temp bool)
|
||||
0:14 Equal (temp 4-component vector of bool)
|
||||
0:14 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:14 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:14 'input' (in 4-component vector of float)
|
||||
0:14 'input' (in 4-component vector of float)
|
||||
0:14 true case is null
|
||||
0:19 Test condition and select (temp void)
|
||||
0:19 Condition
|
||||
0:19 all (temp bool)
|
||||
0:19 Equal (temp 4-component vector of bool)
|
||||
0:19 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:19 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:19 'input' (in 4-component vector of float)
|
||||
0:19 'input' (in 4-component vector of float)
|
||||
0:19 true case
|
||||
0:? Sequence
|
||||
0:20 Sequence
|
||||
0:20 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:20 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:20 Branch: Return
|
||||
0:20 Branch: Return with expression
|
||||
0:20 'input' (in 4-component vector of float)
|
||||
0:23 Test condition and select (temp void)
|
||||
0:23 Condition
|
||||
0:23 all (temp bool)
|
||||
0:23 Equal (temp 4-component vector of bool)
|
||||
0:23 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:23 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:23 'input' (in 4-component vector of float)
|
||||
0:23 'input' (in 4-component vector of float)
|
||||
0:23 true case
|
||||
0:? Sequence
|
||||
0:24 Sequence
|
||||
0:24 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:24 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:24 Branch: Return
|
||||
0:24 Branch: Return with expression
|
||||
0:24 'input' (in 4-component vector of float)
|
||||
0:23 false case
|
||||
0:? Sequence
|
||||
0:26 Sequence
|
||||
0:26 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:26 Negate value (temp 4-component vector of float)
|
||||
0:26 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:26 Branch: Return
|
||||
0:26 Branch: Return with expression
|
||||
0:26 Negate value (temp 4-component vector of float)
|
||||
0:26 'input' (in 4-component vector of float)
|
||||
0:30 Test condition and select (temp void)
|
||||
0:30 Condition
|
||||
0:30 move second child to first child (temp float)
|
||||
0:30 'ii' (temp float)
|
||||
0:30 direct index (temp float)
|
||||
0:30 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:30 'input' (in 4-component vector of float)
|
||||
0:30 Constant:
|
||||
0:30 2 (const int)
|
||||
0:30 true case
|
||||
|
|
@ -205,133 +179,156 @@ gl_FragCoord origin is upper left
|
|||
0:31 'ii' (temp float)
|
||||
0:32 Pre-Increment (temp int)
|
||||
0:32 'ii' (temp int)
|
||||
0:2 Function Definition: PixelShaderFunction( (temp void)
|
||||
0:2 Function Parameters:
|
||||
0:? Sequence
|
||||
0:2 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'input' (temp 4-component vector of float)
|
||||
0:? 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:2 move second child to first child (temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:2 Function Call: @PixelShaderFunction(vf4; (temp 4-component vector of float)
|
||||
0:? 'input' (temp 4-component vector of float)
|
||||
0:? Linker Objects
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:? 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 84
|
||||
// Id's are bound by 94
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "PixelShaderFunction" 9 19
|
||||
EntryPoint Fragment 4 "PixelShaderFunction" 87 90
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "PixelShaderFunction"
|
||||
Name 9 "input"
|
||||
Name 19 "@entryPointOutput"
|
||||
Name 67 "ii"
|
||||
Name 11 "@PixelShaderFunction(vf4;"
|
||||
Name 10 "input"
|
||||
Name 68 "ii"
|
||||
Name 80 "ii"
|
||||
Decorate 9(input) Location 0
|
||||
Decorate 19(@entryPointOutput) Location 0
|
||||
Name 85 "input"
|
||||
Name 87 "input"
|
||||
Name 90 "@entryPointOutput"
|
||||
Name 91 "param"
|
||||
Decorate 87(input) Location 0
|
||||
Decorate 90(@entryPointOutput) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
7: TypeVector 6(float) 4
|
||||
8: TypePointer Input 7(fvec4)
|
||||
9(input): 8(ptr) Variable Input
|
||||
12: TypeBool
|
||||
13: TypeVector 12(bool) 4
|
||||
18: TypePointer Output 7(fvec4)
|
||||
19(@entryPointOutput): 18(ptr) Variable Output
|
||||
66: TypePointer Function 6(float)
|
||||
68: TypeInt 32 0
|
||||
69: 68(int) Constant 2
|
||||
70: TypePointer Input 6(float)
|
||||
8: TypePointer Function 7(fvec4)
|
||||
9: TypeFunction 7(fvec4) 8(ptr)
|
||||
15: TypeBool
|
||||
16: TypeVector 15(bool) 4
|
||||
67: TypePointer Function 6(float)
|
||||
69: TypeInt 32 0
|
||||
70: 69(int) Constant 2
|
||||
76: 6(float) Constant 1065353216
|
||||
78: TypeInt 32 1
|
||||
79: TypePointer Function 78(int)
|
||||
82: 78(int) Constant 1
|
||||
86: TypePointer Input 7(fvec4)
|
||||
87(input): 86(ptr) Variable Input
|
||||
89: TypePointer Output 7(fvec4)
|
||||
90(@entryPointOutput): 89(ptr) Variable Output
|
||||
4(PixelShaderFunction): 2 Function None 3
|
||||
5: Label
|
||||
67(ii): 66(ptr) Variable Function
|
||||
85(input): 8(ptr) Variable Function
|
||||
91(param): 8(ptr) Variable Function
|
||||
88: 7(fvec4) Load 87(input)
|
||||
Store 85(input) 88
|
||||
92: 7(fvec4) Load 85(input)
|
||||
Store 91(param) 92
|
||||
93: 7(fvec4) FunctionCall 11(@PixelShaderFunction(vf4;) 91(param)
|
||||
Store 90(@entryPointOutput) 93
|
||||
Return
|
||||
FunctionEnd
|
||||
11(@PixelShaderFunction(vf4;): 7(fvec4) Function None 9
|
||||
10(input): 8(ptr) FunctionParameter
|
||||
12: Label
|
||||
68(ii): 67(ptr) Variable Function
|
||||
80(ii): 79(ptr) Variable Function
|
||||
10: 7(fvec4) Load 9(input)
|
||||
11: 7(fvec4) Load 9(input)
|
||||
14: 13(bvec4) FOrdEqual 10 11
|
||||
15: 12(bool) All 14
|
||||
SelectionMerge 17 None
|
||||
BranchConditional 15 16 17
|
||||
16: Label
|
||||
20: 7(fvec4) Load 9(input)
|
||||
Store 19(@entryPointOutput) 20
|
||||
Return
|
||||
17: Label
|
||||
22: 7(fvec4) Load 9(input)
|
||||
23: 7(fvec4) Load 9(input)
|
||||
24: 13(bvec4) FOrdEqual 22 23
|
||||
25: 12(bool) All 24
|
||||
SelectionMerge 27 None
|
||||
BranchConditional 25 26 30
|
||||
26: Label
|
||||
28: 7(fvec4) Load 9(input)
|
||||
Store 19(@entryPointOutput) 28
|
||||
Return
|
||||
30: Label
|
||||
31: 7(fvec4) Load 9(input)
|
||||
32: 7(fvec4) FNegate 31
|
||||
Store 19(@entryPointOutput) 32
|
||||
Return
|
||||
27: Label
|
||||
34: 7(fvec4) Load 9(input)
|
||||
35: 7(fvec4) Load 9(input)
|
||||
36: 13(bvec4) FOrdEqual 34 35
|
||||
37: 12(bool) All 36
|
||||
SelectionMerge 39 None
|
||||
BranchConditional 37 38 39
|
||||
38: Label
|
||||
Branch 39
|
||||
39: Label
|
||||
40: 7(fvec4) Load 9(input)
|
||||
41: 7(fvec4) Load 9(input)
|
||||
42: 13(bvec4) FOrdEqual 40 41
|
||||
43: 12(bool) All 42
|
||||
SelectionMerge 45 None
|
||||
BranchConditional 43 44 45
|
||||
44: Label
|
||||
Branch 45
|
||||
45: Label
|
||||
46: 7(fvec4) Load 9(input)
|
||||
47: 7(fvec4) Load 9(input)
|
||||
48: 13(bvec4) FOrdEqual 46 47
|
||||
49: 12(bool) All 48
|
||||
SelectionMerge 51 None
|
||||
BranchConditional 49 50 51
|
||||
50: Label
|
||||
52: 7(fvec4) Load 9(input)
|
||||
Store 19(@entryPointOutput) 52
|
||||
Return
|
||||
51: Label
|
||||
54: 7(fvec4) Load 9(input)
|
||||
55: 7(fvec4) Load 9(input)
|
||||
56: 13(bvec4) FOrdEqual 54 55
|
||||
57: 12(bool) All 56
|
||||
SelectionMerge 59 None
|
||||
BranchConditional 57 58 62
|
||||
58: Label
|
||||
60: 7(fvec4) Load 9(input)
|
||||
Store 19(@entryPointOutput) 60
|
||||
Return
|
||||
62: Label
|
||||
63: 7(fvec4) Load 9(input)
|
||||
64: 7(fvec4) FNegate 63
|
||||
Store 19(@entryPointOutput) 64
|
||||
Return
|
||||
59: Label
|
||||
71: 70(ptr) AccessChain 9(input) 69
|
||||
13: 7(fvec4) Load 10(input)
|
||||
14: 7(fvec4) Load 10(input)
|
||||
17: 16(bvec4) FOrdEqual 13 14
|
||||
18: 15(bool) All 17
|
||||
SelectionMerge 20 None
|
||||
BranchConditional 18 19 20
|
||||
19: Label
|
||||
21: 7(fvec4) Load 10(input)
|
||||
ReturnValue 21
|
||||
20: Label
|
||||
23: 7(fvec4) Load 10(input)
|
||||
24: 7(fvec4) Load 10(input)
|
||||
25: 16(bvec4) FOrdEqual 23 24
|
||||
26: 15(bool) All 25
|
||||
SelectionMerge 28 None
|
||||
BranchConditional 26 27 31
|
||||
27: Label
|
||||
29: 7(fvec4) Load 10(input)
|
||||
ReturnValue 29
|
||||
31: Label
|
||||
32: 7(fvec4) Load 10(input)
|
||||
33: 7(fvec4) FNegate 32
|
||||
ReturnValue 33
|
||||
28: Label
|
||||
35: 7(fvec4) Load 10(input)
|
||||
36: 7(fvec4) Load 10(input)
|
||||
37: 16(bvec4) FOrdEqual 35 36
|
||||
38: 15(bool) All 37
|
||||
SelectionMerge 40 None
|
||||
BranchConditional 38 39 40
|
||||
39: Label
|
||||
Branch 40
|
||||
40: Label
|
||||
41: 7(fvec4) Load 10(input)
|
||||
42: 7(fvec4) Load 10(input)
|
||||
43: 16(bvec4) FOrdEqual 41 42
|
||||
44: 15(bool) All 43
|
||||
SelectionMerge 46 None
|
||||
BranchConditional 44 45 46
|
||||
45: Label
|
||||
Branch 46
|
||||
46: Label
|
||||
47: 7(fvec4) Load 10(input)
|
||||
48: 7(fvec4) Load 10(input)
|
||||
49: 16(bvec4) FOrdEqual 47 48
|
||||
50: 15(bool) All 49
|
||||
SelectionMerge 52 None
|
||||
BranchConditional 50 51 52
|
||||
51: Label
|
||||
53: 7(fvec4) Load 10(input)
|
||||
ReturnValue 53
|
||||
52: Label
|
||||
55: 7(fvec4) Load 10(input)
|
||||
56: 7(fvec4) Load 10(input)
|
||||
57: 16(bvec4) FOrdEqual 55 56
|
||||
58: 15(bool) All 57
|
||||
SelectionMerge 60 None
|
||||
BranchConditional 58 59 63
|
||||
59: Label
|
||||
61: 7(fvec4) Load 10(input)
|
||||
ReturnValue 61
|
||||
63: Label
|
||||
64: 7(fvec4) Load 10(input)
|
||||
65: 7(fvec4) FNegate 64
|
||||
ReturnValue 65
|
||||
60: Label
|
||||
71: 67(ptr) AccessChain 10(input) 70
|
||||
72: 6(float) Load 71
|
||||
Store 67(ii) 72
|
||||
Store 68(ii) 72
|
||||
SelectionMerge 74 None
|
||||
BranchConditional 72 73 74
|
||||
73: Label
|
||||
75: 6(float) Load 67(ii)
|
||||
75: 6(float) Load 68(ii)
|
||||
77: 6(float) FAdd 75 76
|
||||
Store 67(ii) 77
|
||||
Store 68(ii) 77
|
||||
Branch 74
|
||||
74: Label
|
||||
81: 78(int) Load 80(ii)
|
||||
83: 78(int) IAdd 81 82
|
||||
Store 80(ii) 83
|
||||
Return
|
||||
84: 7(fvec4) Undef
|
||||
ReturnValue 84
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue