SPIR-V: Move from Version .99 Rev 31 to Version 1.0, Rev 2.

This commit is contained in:
John Kessenich
2015-11-15 21:33:39 -07:00
parent 1c77f3a8d2
commit 55e7d11ce8
117 changed files with 6740 additions and 5997 deletions

View File

@@ -5,16 +5,16 @@ WARNING: 0:4: varying deprecated in version 130; may be removed in future releas
Linked fragment stage:
// Module Version 99
// Generated by (magic number): 51a00bb
// Id's are bound by 120
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 123
Source GLSL 130
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main"
EntryPoint Fragment 4 "main" 61
ExecutionMode 4 OriginLowerLeft
Source GLSL 130
Name 4 "main"
Name 8 "s0"
MemberName 8(s0) 0 "i"
@@ -41,14 +41,11 @@ Linked fragment stage:
MemberName 54(s00) 0 "s0_0"
Name 56 "locals00"
Name 61 "coord"
Name 68 "foo0"
Name 83 "foo00"
Name 96 "gl_FragColor"
Name 113 "sampler"
Name 119 "foo2"
Decorate 61(coord) Smooth
Decorate 96(gl_FragColor) BuiltIn FragColor
Decorate 119(foo2) NoStaticUse
Name 71 "foo0"
Name 86 "foo00"
Name 99 "gl_FragColor"
Name 116 "samp2D"
Name 122 "foo2"
2: TypeVoid
3: TypeFunction 2
6: TypeInt 32 1
@@ -92,27 +89,30 @@ Linked fragment stage:
59: TypeVector 7(float) 2
60: TypePointer Input 59(fvec2)
61(coord): 60(ptr) Variable Input
67: TypePointer UniformConstant 8(s0)
68(foo0): 67(ptr) Variable UniformConstant
72: 7(float) Constant 1073741824
73: 7(float) Constant 1077936128
74: 7(float) Constant 1082130432
75: 7(float) Constant 1084227584
76: 38 ConstantComposite 41 29 72 73 74 75
82: TypePointer UniformConstant 54(s00)
83(foo00): 82(ptr) Variable UniformConstant
85: TypePointer Function 6(int)
88: 6(int) Constant 5
94: TypeVector 7(float) 4
95: TypePointer Output 94(fvec4)
96(gl_FragColor): 95(ptr) Variable Output
103: 6(int) Constant 3
110: TypeImage 7(float) 2D sampled format:Unknown
111: TypeSampledImage 110
112: TypePointer UniformConstant 111
113(sampler): 112(ptr) Variable UniformConstant
118: TypePointer UniformConstant 10(s2)
119(foo2): 118(ptr) Variable UniformConstant
62: 11(int) Constant 0
63: TypePointer Input 7(float)
67: 11(int) Constant 1
70: TypePointer UniformConstant 8(s0)
71(foo0): 70(ptr) Variable UniformConstant
75: 7(float) Constant 1073741824
76: 7(float) Constant 1077936128
77: 7(float) Constant 1082130432
78: 7(float) Constant 1084227584
79: 38 ConstantComposite 41 29 75 76 77 78
85: TypePointer UniformConstant 54(s00)
86(foo00): 85(ptr) Variable UniformConstant
88: TypePointer Function 6(int)
91: 6(int) Constant 5
97: TypeVector 7(float) 4
98: TypePointer Output 97(fvec4)
99(gl_FragColor): 98(ptr) Variable Output
106: 6(int) Constant 3
113: TypeImage 7(float) 2D sampled format:Unknown
114: TypeSampledImage 113
115: TypePointer UniformConstant 114
116(samp2D): 115(ptr) Variable UniformConstant
121: TypePointer UniformConstant 10(s2)
122(foo2): 121(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
27(locals2): 26(ptr) Variable Function
@@ -138,55 +138,55 @@ Linked fragment stage:
Store 56(locals00) 57
Branch 25
58: Label
62: 59(fvec2) Load 61(coord)
63: 7(float) CompositeExtract 62 0
64: 30(ptr) AccessChain 27(locals2) 28
Store 64 63
65: 59(fvec2) Load 61(coord)
66: 7(float) CompositeExtract 65 1
69: 8(s0) Load 68(foo0)
70: 9(s1) CompositeConstruct 28 66 69
71: 35(ptr) AccessChain 27(locals2) 32
Store 71 70
Store 40(fArray) 76
77: 35(ptr) AccessChain 27(locals2) 32
78: 9(s1) Load 77
79: 35(ptr) AccessChain 46(locals1Array) 47
Store 79 78
80: 67(ptr) AccessChain 49(foo1) 32
81: 8(s0) Load 80
Store 53(locals0) 81
84: 54(s00) Load 83(foo00)
Store 56(locals00) 84
64: 63(ptr) AccessChain 61(coord) 62
65: 7(float) Load 64
66: 30(ptr) AccessChain 27(locals2) 28
Store 66 65
68: 63(ptr) AccessChain 61(coord) 67
69: 7(float) Load 68
72: 8(s0) Load 71(foo0)
73: 9(s1) CompositeConstruct 28 69 72
74: 35(ptr) AccessChain 27(locals2) 32
Store 74 73
Store 40(fArray) 79
80: 35(ptr) AccessChain 27(locals2) 32
81: 9(s1) Load 80
82: 35(ptr) AccessChain 46(locals1Array) 47
Store 82 81
83: 70(ptr) AccessChain 49(foo1) 32
84: 8(s0) Load 83
Store 53(locals0) 84
87: 54(s00) Load 86(foo00)
Store 56(locals00) 87
Branch 25
25: Label
86: 85(ptr) AccessChain 53(locals0) 17
87: 6(int) Load 86
89: 22(bool) SGreaterThan 87 88
SelectionMerge 91 None
BranchConditional 89 90 91
90: Label
92: 52(ptr) AccessChain 56(locals00) 17
93: 8(s0) Load 92
Store 53(locals0) 93
Branch 91
91: Label
97: 85(ptr) AccessChain 53(locals0) 17
98: 6(int) Load 97
99: 7(float) ConvertSToF 98
100: 30(ptr) AccessChain 46(locals1Array) 47 28
101: 7(float) Load 100
102: 7(float) FAdd 99 101
104: 30(ptr) AccessChain 40(fArray) 103
105: 7(float) Load 104
106: 7(float) FAdd 102 105
107: 30(ptr) AccessChain 27(locals2) 32 28
89: 88(ptr) AccessChain 53(locals0) 17
90: 6(int) Load 89
92: 22(bool) SGreaterThan 90 91
SelectionMerge 94 None
BranchConditional 92 93 94
93: Label
95: 52(ptr) AccessChain 56(locals00) 17
96: 8(s0) Load 95
Store 53(locals0) 96
Branch 94
94: Label
100: 88(ptr) AccessChain 53(locals0) 17
101: 6(int) Load 100
102: 7(float) ConvertSToF 101
103: 30(ptr) AccessChain 46(locals1Array) 47 28
104: 7(float) Load 103
105: 7(float) FAdd 102 104
107: 30(ptr) AccessChain 40(fArray) 106
108: 7(float) Load 107
109: 7(float) FAdd 106 108
114: 111 Load 113(sampler)
115: 59(fvec2) Load 61(coord)
116: 94(fvec4) ImageSampleImplicitLod 114 115
117: 94(fvec4) VectorTimesScalar 116 109
Store 96(gl_FragColor) 117
109: 7(float) FAdd 105 108
110: 30(ptr) AccessChain 27(locals2) 32 28
111: 7(float) Load 110
112: 7(float) FAdd 109 111
117: 114 Load 116(samp2D)
118: 59(fvec2) Load 61(coord)
119: 97(fvec4) ImageSampleImplicitLod 117 118
120: 97(fvec4) VectorTimesScalar 119 112
Store 99(gl_FragColor) 120
Return
FunctionEnd