SPIR-V: Move from Version .99 Rev 31 to Version 1.0, Rev 2.
This commit is contained in:
parent
1c77f3a8d2
commit
55e7d11ce8
117 changed files with 6740 additions and 5997 deletions
|
|
@ -3,16 +3,16 @@ spv.earlyReturnDiscard.frag
|
|||
Linked fragment stage:
|
||||
|
||||
|
||||
// Module Version 99
|
||||
// Generated by (magic number): 51a00bb
|
||||
// Id's are bound by 111
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 112
|
||||
|
||||
Source GLSL 110
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main"
|
||||
EntryPoint Fragment 4 "main" 18 11
|
||||
ExecutionMode 4 OriginLowerLeft
|
||||
Source GLSL 110
|
||||
Name 4 "main"
|
||||
Name 9 "color"
|
||||
Name 11 "BaseColor"
|
||||
|
|
@ -22,16 +22,12 @@ Linked fragment stage:
|
|||
Name 21 "d"
|
||||
Name 27 "bigColor"
|
||||
Name 32 "smallColor"
|
||||
Name 38 "minimum"
|
||||
Name 52 "threshhold"
|
||||
Name 63 "threshhold2"
|
||||
Name 77 "b"
|
||||
Name 106 "gl_FragColor"
|
||||
Name 110 "threshhold3"
|
||||
Decorate 11(BaseColor) Smooth
|
||||
Decorate 18(c) Smooth
|
||||
Decorate 106(gl_FragColor) BuiltIn FragColor
|
||||
Decorate 110(threshhold3) NoStaticUse
|
||||
Name 41 "minimum"
|
||||
Name 53 "threshhold"
|
||||
Name 65 "threshhold2"
|
||||
Name 79 "b"
|
||||
Name 107 "gl_FragColor"
|
||||
Name 111 "threshhold3"
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
@ -48,15 +44,20 @@ Linked fragment stage:
|
|||
23: TypeBool
|
||||
27(bigColor): 14(ptr) Variable UniformConstant
|
||||
32(smallColor): 14(ptr) Variable UniformConstant
|
||||
38(minimum): 20(ptr) Variable UniformConstant
|
||||
46: 6(float) Constant 1065353216
|
||||
52(threshhold): 20(ptr) Variable UniformConstant
|
||||
63(threshhold2): 20(ptr) Variable UniformConstant
|
||||
76: TypePointer UniformConstant 23(bool)
|
||||
77(b): 76(ptr) Variable UniformConstant
|
||||
105: TypePointer Output 7(fvec4)
|
||||
106(gl_FragColor): 105(ptr) Variable Output
|
||||
110(threshhold3): 20(ptr) Variable UniformConstant
|
||||
36: TypeInt 32 0
|
||||
37: 36(int) Constant 2
|
||||
38: TypePointer Function 6(float)
|
||||
41(minimum): 20(ptr) Variable UniformConstant
|
||||
49: 6(float) Constant 1065353216
|
||||
53(threshhold): 20(ptr) Variable UniformConstant
|
||||
62: 36(int) Constant 3
|
||||
65(threshhold2): 20(ptr) Variable UniformConstant
|
||||
78: TypePointer UniformConstant 23(bool)
|
||||
79(b): 78(ptr) Variable UniformConstant
|
||||
87: 36(int) Constant 0
|
||||
106: TypePointer Output 7(fvec4)
|
||||
107(gl_FragColor): 106(ptr) Variable Output
|
||||
111(threshhold3): 20(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(color): 8(ptr) Variable Function
|
||||
|
|
@ -83,96 +84,92 @@ Linked fragment stage:
|
|||
Store 9(color) 35
|
||||
Branch 26
|
||||
26: Label
|
||||
36: 7(fvec4) Load 9(color)
|
||||
37: 6(float) CompositeExtract 36 2
|
||||
39: 6(float) Load 38(minimum)
|
||||
40: 23(bool) FOrdLessThan 37 39
|
||||
SelectionMerge 42 None
|
||||
BranchConditional 40 41 42
|
||||
41: Label
|
||||
39: 38(ptr) AccessChain 9(color) 37
|
||||
40: 6(float) Load 39
|
||||
42: 6(float) Load 41(minimum)
|
||||
43: 23(bool) FOrdLessThan 40 42
|
||||
SelectionMerge 45 None
|
||||
BranchConditional 43 44 45
|
||||
44: Label
|
||||
Return
|
||||
42: Label
|
||||
44: 7(fvec4) Load 9(color)
|
||||
45: 6(float) CompositeExtract 44 2
|
||||
47: 6(float) FAdd 45 46
|
||||
48: 7(fvec4) Load 9(color)
|
||||
49: 7(fvec4) CompositeInsert 47 48 2
|
||||
Store 9(color) 49
|
||||
50: 7(fvec4) Load 9(color)
|
||||
51: 6(float) CompositeExtract 50 2
|
||||
53: 6(float) Load 52(threshhold)
|
||||
54: 23(bool) FOrdGreaterThan 51 53
|
||||
SelectionMerge 56 None
|
||||
BranchConditional 54 55 56
|
||||
55: Label
|
||||
45: Label
|
||||
47: 38(ptr) AccessChain 9(color) 37
|
||||
48: 6(float) Load 47
|
||||
50: 6(float) FAdd 48 49
|
||||
Store 47 50
|
||||
51: 38(ptr) AccessChain 9(color) 37
|
||||
52: 6(float) Load 51
|
||||
54: 6(float) Load 53(threshhold)
|
||||
55: 23(bool) FOrdGreaterThan 52 54
|
||||
SelectionMerge 57 None
|
||||
BranchConditional 55 56 57
|
||||
56: Label
|
||||
Kill
|
||||
56: Label
|
||||
58: 7(fvec4) Load 9(color)
|
||||
59: 7(fvec4) CompositeConstruct 46 46 46 46
|
||||
60: 7(fvec4) FAdd 58 59
|
||||
Store 9(color) 60
|
||||
61: 7(fvec4) Load 9(color)
|
||||
62: 6(float) CompositeExtract 61 3
|
||||
64: 6(float) Load 63(threshhold2)
|
||||
65: 23(bool) FOrdGreaterThan 62 64
|
||||
SelectionMerge 67 None
|
||||
BranchConditional 65 66 98
|
||||
66: Label
|
||||
68: 7(fvec4) Load 9(color)
|
||||
69: 6(float) CompositeExtract 68 2
|
||||
70: 6(float) Load 63(threshhold2)
|
||||
71: 23(bool) FOrdGreaterThan 69 70
|
||||
SelectionMerge 73 None
|
||||
BranchConditional 71 72 75
|
||||
72: Label
|
||||
57: Label
|
||||
59: 7(fvec4) Load 9(color)
|
||||
60: 7(fvec4) CompositeConstruct 49 49 49 49
|
||||
61: 7(fvec4) FAdd 59 60
|
||||
Store 9(color) 61
|
||||
63: 38(ptr) AccessChain 9(color) 62
|
||||
64: 6(float) Load 63
|
||||
66: 6(float) Load 65(threshhold2)
|
||||
67: 23(bool) FOrdGreaterThan 64 66
|
||||
SelectionMerge 69 None
|
||||
BranchConditional 67 68 99
|
||||
68: Label
|
||||
70: 38(ptr) AccessChain 9(color) 37
|
||||
71: 6(float) Load 70
|
||||
72: 6(float) Load 65(threshhold2)
|
||||
73: 23(bool) FOrdGreaterThan 71 72
|
||||
SelectionMerge 75 None
|
||||
BranchConditional 73 74 77
|
||||
74: Label
|
||||
Return
|
||||
75: Label
|
||||
78: 23(bool) Load 77(b)
|
||||
SelectionMerge 80 None
|
||||
BranchConditional 78 79 86
|
||||
79: Label
|
||||
81: 7(fvec4) Load 9(color)
|
||||
82: 6(float) CompositeExtract 81 2
|
||||
83: 6(float) FAdd 82 46
|
||||
84: 7(fvec4) Load 9(color)
|
||||
85: 7(fvec4) CompositeInsert 83 84 2
|
||||
Store 9(color) 85
|
||||
Branch 80
|
||||
77: Label
|
||||
80: 23(bool) Load 79(b)
|
||||
SelectionMerge 82 None
|
||||
BranchConditional 80 81 86
|
||||
81: Label
|
||||
83: 38(ptr) AccessChain 9(color) 37
|
||||
84: 6(float) Load 83
|
||||
85: 6(float) FAdd 84 49
|
||||
Store 83 85
|
||||
Branch 82
|
||||
86: Label
|
||||
87: 7(fvec4) Load 9(color)
|
||||
88: 6(float) CompositeExtract 87 0
|
||||
89: 6(float) Load 38(minimum)
|
||||
90: 23(bool) FOrdLessThan 88 89
|
||||
SelectionMerge 92 None
|
||||
BranchConditional 90 91 94
|
||||
91: Label
|
||||
88: 38(ptr) AccessChain 9(color) 87
|
||||
89: 6(float) Load 88
|
||||
90: 6(float) Load 41(minimum)
|
||||
91: 23(bool) FOrdLessThan 89 90
|
||||
SelectionMerge 93 None
|
||||
BranchConditional 91 92 95
|
||||
92: Label
|
||||
Kill
|
||||
94: Label
|
||||
95: 7(fvec4) Load 9(color)
|
||||
96: 7(fvec4) CompositeConstruct 46 46 46 46
|
||||
97: 7(fvec4) FAdd 95 96
|
||||
Store 9(color) 97
|
||||
Branch 92
|
||||
92: Label
|
||||
Branch 80
|
||||
80: Label
|
||||
Branch 73
|
||||
73: Label
|
||||
Branch 67
|
||||
98: Label
|
||||
99: 23(bool) Load 77(b)
|
||||
SelectionMerge 101 None
|
||||
BranchConditional 99 100 103
|
||||
100: Label
|
||||
95: Label
|
||||
96: 7(fvec4) Load 9(color)
|
||||
97: 7(fvec4) CompositeConstruct 49 49 49 49
|
||||
98: 7(fvec4) FAdd 96 97
|
||||
Store 9(color) 98
|
||||
Branch 93
|
||||
93: Label
|
||||
Branch 82
|
||||
82: Label
|
||||
Branch 75
|
||||
75: Label
|
||||
Branch 69
|
||||
99: Label
|
||||
100: 23(bool) Load 79(b)
|
||||
SelectionMerge 102 None
|
||||
BranchConditional 100 101 104
|
||||
101: Label
|
||||
Kill
|
||||
103: Label
|
||||
104: Label
|
||||
Return
|
||||
101: Label
|
||||
Branch 67
|
||||
67: Label
|
||||
107: 7(fvec4) Load 9(color)
|
||||
108: 7(fvec4) Load 13(color2)
|
||||
109: 7(fvec4) FMul 107 108
|
||||
Store 106(gl_FragColor) 109
|
||||
102: Label
|
||||
Branch 69
|
||||
69: Label
|
||||
108: 7(fvec4) Load 9(color)
|
||||
109: 7(fvec4) Load 13(color2)
|
||||
110: 7(fvec4) FMul 108 109
|
||||
Store 107(gl_FragColor) 110
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue