Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
f6eae2a5
Commit
f6eae2a5
authored
Jan 22, 2016
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPV: Require desktop 140 or ES 310 or above.
parent
4bfeed5f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
102 changed files
with
333 additions
and
307 deletions
+333
-307
spv.100ops.frag.out
Test/baseResults/spv.100ops.frag.out
+7
-5
spv.130.frag.out
Test/baseResults/spv.130.frag.out
+41
-43
spv.300BuiltIns.vert.out
Test/baseResults/spv.300BuiltIns.vert.out
+48
-34
spv.300layout.frag.out
Test/baseResults/spv.300layout.frag.out
+3
-1
spv.300layout.vert.out
Test/baseResults/spv.300layout.vert.out
+3
-1
spv.300layoutp.vert.out
Test/baseResults/spv.300layoutp.vert.out
+3
-1
spv.always-discard.frag.out
Test/baseResults/spv.always-discard.frag.out
+1
-1
spv.always-discard2.frag.out
Test/baseResults/spv.always-discard2.frag.out
+1
-1
spv.branch-return.vert.out
Test/baseResults/spv.branch-return.vert.out
+33
-22
spv.conversion.frag.out
Test/baseResults/spv.conversion.frag.out
+1
-1
spv.dataOut.frag.out
Test/baseResults/spv.dataOut.frag.out
+1
-3
spv.dataOutIndirect.frag.out
Test/baseResults/spv.dataOutIndirect.frag.out
+1
-3
spv.dataOutIndirect.vert.out
Test/baseResults/spv.dataOutIndirect.vert.out
+6
-4
spv.discard-dce.frag.out
Test/baseResults/spv.discard-dce.frag.out
+1
-1
spv.do-simple.vert.out
Test/baseResults/spv.do-simple.vert.out
+3
-1
spv.do-while-continue-break.vert.out
Test/baseResults/spv.do-while-continue-break.vert.out
+3
-1
spv.doWhileLoop.frag.out
Test/baseResults/spv.doWhileLoop.frag.out
+1
-1
spv.earlyReturnDiscard.frag.out
Test/baseResults/spv.earlyReturnDiscard.frag.out
+1
-1
spv.flowControl.frag.out
Test/baseResults/spv.flowControl.frag.out
+1
-1
spv.for-continue-break.vert.out
Test/baseResults/spv.for-continue-break.vert.out
+3
-1
spv.for-simple.vert.out
Test/baseResults/spv.for-simple.vert.out
+3
-1
spv.forLoop.frag.out
Test/baseResults/spv.forLoop.frag.out
+1
-1
spv.forwardFun.frag.out
Test/baseResults/spv.forwardFun.frag.out
+1
-7
spv.functionCall.frag.out
Test/baseResults/spv.functionCall.frag.out
+1
-3
spv.length.frag.out
Test/baseResults/spv.length.frag.out
+1
-1
spv.localAggregates.frag.out
Test/baseResults/spv.localAggregates.frag.out
+1
-4
spv.loops.frag.out
Test/baseResults/spv.loops.frag.out
+1
-3
spv.loopsArtificial.frag.out
Test/baseResults/spv.loopsArtificial.frag.out
+1
-3
spv.matFun.vert.out
Test/baseResults/spv.matFun.vert.out
+6
-3
spv.matrix.frag.out
Test/baseResults/spv.matrix.frag.out
+1
-1
spv.nonSquare.vert.out
Test/baseResults/spv.nonSquare.vert.out
+14
-3
spv.precision.frag.out
Test/baseResults/spv.precision.frag.out
+3
-1
spv.simpleFunctionCall.frag.out
Test/baseResults/spv.simpleFunctionCall.frag.out
+0
-2
spv.structAssignment.frag.out
Test/baseResults/spv.structAssignment.frag.out
+1
-3
spv.structDeref.frag.out
Test/baseResults/spv.structDeref.frag.out
+1
-3
spv.structure.frag.out
Test/baseResults/spv.structure.frag.out
+1
-3
spv.swizzle.frag.out
Test/baseResults/spv.swizzle.frag.out
+1
-1
spv.test.vert.out
Test/baseResults/spv.test.vert.out
+6
-3
spv.texture.frag.out
Test/baseResults/spv.texture.frag.out
+1
-4
spv.texture.vert.out
Test/baseResults/spv.texture.vert.out
+6
-3
spv.types.frag.out
Test/baseResults/spv.types.frag.out
+1
-1
spv.uint.frag.out
Test/baseResults/spv.uint.frag.out
+3
-1
spv.uniformArray.frag.out
Test/baseResults/spv.uniformArray.frag.out
+1
-1
spv.variableArrayIndex.frag.out
Test/baseResults/spv.variableArrayIndex.frag.out
+1
-3
spv.varyingArray.frag.out
Test/baseResults/spv.varyingArray.frag.out
+7
-12
spv.varyingArrayIndirect.frag.out
Test/baseResults/spv.varyingArrayIndirect.frag.out
+7
-12
spv.voidFunction.frag.out
Test/baseResults/spv.voidFunction.frag.out
+1
-1
spv.while-continue-break.vert.out
Test/baseResults/spv.while-continue-break.vert.out
+3
-1
spv.while-simple.vert.out
Test/baseResults/spv.while-simple.vert.out
+3
-1
spv.whileLoop.frag.out
Test/baseResults/spv.whileLoop.frag.out
+1
-1
spv.100ops.frag
Test/spv.100ops.frag
+4
-2
spv.130.frag
Test/spv.130.frag
+1
-4
spv.300BuiltIns.vert
Test/spv.300BuiltIns.vert
+1
-1
spv.300layout.frag
Test/spv.300layout.frag
+1
-1
spv.300layout.vert
Test/spv.300layout.vert
+1
-1
spv.300layoutp.vert
Test/spv.300layoutp.vert
+1
-1
spv.always-discard.frag
Test/spv.always-discard.frag
+2
-2
spv.always-discard2.frag
Test/spv.always-discard2.frag
+2
-2
spv.branch-return.vert
Test/spv.branch-return.vert
+1
-1
spv.conversion.frag
Test/spv.conversion.frag
+1
-1
spv.dataOut.frag
Test/spv.dataOut.frag
+2
-2
spv.dataOutIndirect.frag
Test/spv.dataOutIndirect.frag
+2
-2
spv.dataOutIndirect.vert
Test/spv.dataOutIndirect.vert
+2
-2
spv.discard-dce.frag
Test/spv.discard-dce.frag
+2
-2
spv.do-simple.vert
Test/spv.do-simple.vert
+1
-1
spv.do-while-continue-break.vert
Test/spv.do-while-continue-break.vert
+1
-1
spv.doWhileLoop.frag
Test/spv.doWhileLoop.frag
+2
-2
spv.earlyReturnDiscard.frag
Test/spv.earlyReturnDiscard.frag
+3
-3
spv.flowControl.frag
Test/spv.flowControl.frag
+3
-3
spv.for-continue-break.vert
Test/spv.for-continue-break.vert
+1
-1
spv.for-simple.vert
Test/spv.for-simple.vert
+1
-1
spv.forLoop.frag
Test/spv.forLoop.frag
+1
-1
spv.forwardFun.frag
Test/spv.forwardFun.frag
+2
-2
spv.functionCall.frag
Test/spv.functionCall.frag
+2
-2
spv.length.frag
Test/spv.length.frag
+2
-2
spv.localAggregates.frag
Test/spv.localAggregates.frag
+3
-3
spv.loops.frag
Test/spv.loops.frag
+2
-2
spv.loopsArtificial.frag
Test/spv.loopsArtificial.frag
+2
-2
spv.matFun.vert
Test/spv.matFun.vert
+1
-1
spv.matrix.frag
Test/spv.matrix.frag
+1
-1
spv.nonSquare.vert
Test/spv.nonSquare.vert
+1
-1
spv.precision.frag
Test/spv.precision.frag
+1
-1
spv.simpleFunctionCall.frag
Test/spv.simpleFunctionCall.frag
+1
-1
spv.structAssignment.frag
Test/spv.structAssignment.frag
+2
-2
spv.structDeref.frag
Test/spv.structDeref.frag
+2
-2
spv.structure.frag
Test/spv.structure.frag
+2
-2
spv.swizzle.frag
Test/spv.swizzle.frag
+2
-2
spv.test.vert
Test/spv.test.vert
+1
-1
spv.texture.frag
Test/spv.texture.frag
+3
-3
spv.texture.vert
Test/spv.texture.vert
+1
-1
spv.types.frag
Test/spv.types.frag
+1
-1
spv.uint.frag
Test/spv.uint.frag
+1
-1
spv.uniformArray.frag
Test/spv.uniformArray.frag
+1
-1
spv.variableArrayIndex.frag
Test/spv.variableArrayIndex.frag
+2
-2
spv.varyingArray.frag
Test/spv.varyingArray.frag
+7
-7
spv.varyingArrayIndirect.frag
Test/spv.varyingArrayIndirect.frag
+7
-7
spv.voidFunction.frag
Test/spv.voidFunction.frag
+2
-2
spv.while-continue-break.vert
Test/spv.while-continue-break.vert
+1
-1
spv.while-simple.vert
Test/spv.while-simple.vert
+1
-1
spv.whileLoop.frag
Test/spv.whileLoop.frag
+2
-2
ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.cpp
+0
-0
ShaderLang.cpp
glslang/MachineIndependent/ShaderLang.cpp
+0
-0
No files found.
Test/baseResults/spv.100ops.frag.out
View file @
f6eae2a5
spv.100ops.frag
spv.100ops.frag
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked fragment stage:
Linked fragment stage:
...
@@ -12,7 +14,7 @@ Linked fragment stage:
...
@@ -12,7 +14,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 36
EntryPoint Fragment 4 "main" 36
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source ESSL
10
0
Source ESSL
31
0
Name 4 "main"
Name 4 "main"
Name 8 "foo("
Name 8 "foo("
Name 11 "face1"
Name 11 "face1"
...
@@ -20,13 +22,13 @@ Linked fragment stage:
...
@@ -20,13 +22,13 @@ Linked fragment stage:
Name 17 "z"
Name 17 "z"
Name 21 "low"
Name 21 "low"
Name 26 "high"
Name 26 "high"
Name 36 "
gl_Frag
Color"
Name 36 "Color"
Decorate 11(face1) RelaxedPrecision
Decorate 11(face1) RelaxedPrecision
Decorate 13(face2) RelaxedPrecision
Decorate 13(face2) RelaxedPrecision
Decorate 17(z) RelaxedPrecision
Decorate 17(z) RelaxedPrecision
Decorate 21(low) RelaxedPrecision
Decorate 21(low) RelaxedPrecision
Decorate 26(high) RelaxedPrecision
Decorate 26(high) RelaxedPrecision
Decorate 36(
gl_Frag
Color) RelaxedPrecision
Decorate 36(Color) RelaxedPrecision
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeFloat 32
6: TypeFloat 32
...
@@ -47,7 +49,7 @@ Linked fragment stage:
...
@@ -47,7 +49,7 @@ Linked fragment stage:
28: TypeBool
28: TypeBool
34: TypeVector 6(float) 4
34: TypeVector 6(float) 4
35: TypePointer Output 34(fvec4)
35: TypePointer Output 34(fvec4)
36(gl_Frag
Color): 35(ptr) Variable Output
36(
Color): 35(ptr) Variable Output
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
17(z): 16(ptr) Variable Function
17(z): 16(ptr) Variable Function
...
@@ -75,7 +77,7 @@ Linked fragment stage:
...
@@ -75,7 +77,7 @@ Linked fragment stage:
42: 6(float) FunctionCall 8(foo()
42: 6(float) FunctionCall 8(foo()
43: 34(fvec4) CompositeConstruct 42 42 42 42
43: 34(fvec4) CompositeConstruct 42 42 42 42
44: 34(fvec4) FAdd 41 43
44: 34(fvec4) FAdd 41 43
Store 36(
gl_Frag
Color) 44
Store 36(Color) 44
Return
Return
FunctionEnd
FunctionEnd
8(foo(): 6(float) Function None 7
8(foo(): 6(float) Function None 7
...
...
Test/baseResults/spv.130.frag.out
View file @
f6eae2a5
spv.130.frag
spv.130.frag
WARNING: 0:3
4
: '#extension' : extension is only partially supported: GL_ARB_gpu_shader5
WARNING: 0:3
1
: '#extension' : extension is only partially supported: GL_ARB_gpu_shader5
Linked fragment stage:
Linked fragment stage:
...
@@ -7,14 +7,14 @@ Linked fragment stage:
...
@@ -7,14 +7,14 @@ Linked fragment stage:
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by 21
4
// Id's are bound by 21
3
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 17 68 79 99 173 184 185 186
187
EntryPoint Fragment 4 "main" 17 68 79 99 173 184 185 186
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
SourceExtension "GL_ARB_gpu_shader5"
SourceExtension "GL_ARB_gpu_shader5"
SourceExtension "GL_ARB_shader_texture_lod"
SourceExtension "GL_ARB_shader_texture_lod"
SourceExtension "GL_ARB_shading_language_420pack"
SourceExtension "GL_ARB_shading_language_420pack"
...
@@ -50,21 +50,20 @@ Linked fragment stage:
...
@@ -50,21 +50,20 @@ Linked fragment stage:
Name 184 "fflat"
Name 184 "fflat"
Name 185 "fsmooth"
Name 185 "fsmooth"
Name 186 "fnop"
Name 186 "fnop"
Name 187 "gl_Color"
Name 193 "bounds"
Name 194 "bounds"
Name 194 "s2D"
Name 195 "s2D"
Name 195 "s2DR"
Name 196 "s2DR"
Name 199 "s2DRS"
Name 200 "s2DRS"
Name 203 "s1D"
Name 204 "s1D"
Name 204 "s2DS"
Name 205 "s2DS"
Name 206 "f"
Name 207 "f"
Name 208 "v2"
Name 209 "v2"
Name 210 "v3"
Name 211 "v3"
Name 212 "v4"
Name 213 "v4"
Decorate 173(gl_ClipDistance) BuiltIn ClipDistance
Decorate 173(gl_ClipDistance) BuiltIn ClipDistance
Decorate 184(fflat) Flat
Decorate 184(fflat) Flat
Decorate 186(fnop) NoPerspective
Decorate 186(fnop) NoPerspective
Decorate 19
4
(bounds) Binding 0
Decorate 19
3
(bounds) Binding 0
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
14: TypeFloat 32
14: TypeFloat 32
...
@@ -155,33 +154,32 @@ Linked fragment stage:
...
@@ -155,33 +154,32 @@ Linked fragment stage:
184(fflat): 128(ptr) Variable Input
184(fflat): 128(ptr) Variable Input
185(fsmooth): 128(ptr) Variable Input
185(fsmooth): 128(ptr) Variable Input
186(fnop): 128(ptr) Variable Input
186(fnop): 128(ptr) Variable Input
187(gl_Color): 78(ptr) Variable Input
187: 96(int) Constant 3
188: 96(int) Constant 3
188: TypeArray 26(int) 187
189: TypeArray 26(int) 188
189: 26(int) Constant 10
190: 26(int) Constant 10
190: 26(int) Constant 23
191: 26(int) Constant 23
191: 26(int) Constant 32
192: 26(int) Constant 32
192: 188 ConstantComposite 189 190 191
193: 189 ConstantComposite 190 191 192
193(bounds): 20(ptr) Variable UniformConstant
194(bounds): 20(ptr) Variable UniformConstant
194(s2D): 20(ptr) Variable UniformConstant
195(s2D): 20(ptr) Variable UniformConstant
195(s2DR): 46(ptr) Variable UniformConstant
196(s2DR): 46(ptr) Variable UniformConstant
196: TypeImage 14(float) Rect depth sampled format:Unknown
197: TypeImage 14(float) Rect depth sampled format:Unknown
197: TypeSampledImage 196
198: TypeSampledImage 197
198: TypePointer UniformConstant 197
199: TypePointer UniformConstant 198
199(s2DRS): 198(ptr) Variable UniformConstant
200(s2DRS): 199(ptr) Variable UniformConstant
200: TypeImage 14(float) 1D sampled format:Unknown
201: TypeImage 14(float) 1D sampled format:Unknown
201: TypeSampledImage 200
202: TypeSampledImage 201
202: TypePointer UniformConstant 201
203: TypePointer UniformConstant 202
203(s1D): 202(ptr) Variable UniformConstant
204(s1D): 203(ptr) Variable UniformConstant
204(s2DS): 54(ptr) Variable UniformConstant
205(s2DS): 54(ptr) Variable UniformConstant
205: TypePointer UniformConstant 14(float)
206: TypePointer UniformConstant 14(float)
206(f): 205(ptr) Variable UniformConstant
207(f): 206(ptr) Variable UniformConstant
207: TypePointer UniformConstant 23(fvec2)
208: TypePointer UniformConstant 23(fvec2)
208(v2): 207(ptr) Variable UniformConstant
209(v2): 208(ptr) Variable UniformConstant
209: TypePointer UniformConstant 39(fvec3)
210: TypePointer UniformConstant 39(fvec3)
210(v3): 209(ptr) Variable UniformConstant
211(v3): 210(ptr) Variable UniformConstant
211: TypePointer UniformConstant 15(fvec4)
212: TypePointer UniformConstant 15(fvec4)
212(v4): 211(ptr) Variable UniformConstant
213(v4): 212(ptr) Variable UniformConstant
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
168: 165 Load 167(sampC)
168: 165 Load 167(sampC)
...
...
Test/baseResults/spv.300BuiltIns.vert.out
View file @
f6eae2a5
spv.300BuiltIns.vert
spv.300BuiltIns.vert
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked vertex stage:
Linked vertex stage:
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by 4
0
// Id's are bound by 4
9
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 11 2
3 25 33 39
EntryPoint Vertex 4 "main" 11 2
4 27 48
Source ESSL 3
0
0
Source ESSL 3
1
0
Name 4 "main"
Name 4 "main"
Name 8 "i"
Name 8 "i"
Name 11 "gl_VertexID"
Name 11 "gl_VertexID"
Name 16 "j"
Name 16 "j"
Name 23 "gl_Position"
Name 22 "gl_PerVertex"
Name 25 "ps"
MemberName 22(gl_PerVertex) 0 "gl_Position"
Name 33 "gl_PointSize"
MemberName 22(gl_PerVertex) 1 "gl_PointSize"
Name 39 "gl_InstanceID"
Name 24 ""
Name 27 "ps"
Name 48 "gl_InstanceID"
Decorate 8(i) RelaxedPrecision
Decorate 8(i) RelaxedPrecision
Decorate 11(gl_VertexID) BuiltIn VertexId
Decorate 11(gl_VertexID) BuiltIn VertexId
Decorate 16(j) RelaxedPrecision
Decorate 16(j) RelaxedPrecision
Decorate 23(gl_Position) Invariant
MemberDecorate 22(gl_PerVertex) 0 Invariant
Decorate 23(gl_Position) BuiltIn Position
MemberDecorate 22(gl_PerVertex) 0 BuiltIn Position
Decorate 25(ps) RelaxedPrecision
MemberDecorate 22(gl_PerVertex) 1 BuiltIn PointSize
Decorate 33(gl_PointSize) BuiltIn PointSize
Decorate 22(gl_PerVertex) Block
Decorate 39(gl_InstanceID) BuiltIn InstanceId
Decorate 27(ps) RelaxedPrecision
Decorate 48(gl_InstanceID) BuiltIn InstanceId
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeInt 32 1
6: TypeInt 32 1
...
@@ -38,13 +43,16 @@ Linked vertex stage:
...
@@ -38,13 +43,16 @@ Linked vertex stage:
14: 6(int) Constant 10
14: 6(int) Constant 10
20: TypeFloat 32
20: TypeFloat 32
21: TypeVector 20(float) 4
21: TypeVector 20(float) 4
22: TypePointer Output 21(fvec4)
22(gl_PerVertex): TypeStruct 21(fvec4) 20(float)
23(gl_Position): 22(ptr) Variable Output
23: TypePointer Output 22(gl_PerVertex)
24: TypePointer Input 20(float)
24: 23(ptr) Variable Output
25(ps): 24(ptr) Variable Input
25: 6(int) Constant 0
32: TypePointer Output 20(float)
26: TypePointer Input 20(float)
33(gl_PointSize): 32(ptr) Variable Output
27(ps): 26(ptr) Variable Input
39(gl_InstanceID): 10(ptr) Variable Input
30: TypePointer Output 21(fvec4)
38: 6(int) Constant 1
40: TypePointer Output 20(float)
48(gl_InstanceID): 10(ptr) Variable Input
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
8(i): 7(ptr) Variable Function
8(i): 7(ptr) Variable Function
...
@@ -57,20 +65,26 @@ Linked vertex stage:
...
@@ -57,20 +65,26 @@ Linked vertex stage:
18: 6(int) IMul 9 17
18: 6(int) IMul 9 17
19: 6(int) ISub 18 14
19: 6(int) ISub 18 14
Store 16(j) 19
Store 16(j) 19
26: 20(float) Load 25(ps)
28: 20(float) Load 27(ps)
27: 21(fvec4) CompositeConstruct 26 26 26 26
29: 21(fvec4) CompositeConstruct 28 28 28 28
Store 23(gl_Position) 27
31: 30(ptr) AccessChain 24 25
28: 6(int) Load 8(i)
Store 31 29
29: 20(float) ConvertSToF 28
32: 6(int) Load 8(i)
30: 21(fvec4) Load 23(gl_Position)
33: 20(float) ConvertSToF 32
31: 21(fvec4) VectorTimesScalar 30 29
34: 30(ptr) AccessChain 24 25
Store 23(gl_Position) 31
35: 21(fvec4) Load 34
34: 20(float) Load 25(ps)
36: 21(fvec4) VectorTimesScalar 35 33
Store 33(gl_PointSize) 34
37: 30(ptr) AccessChain 24 25
35: 6(int) Load 16(j)
Store 37 36
36: 20(float) ConvertSToF 35
39: 20(float) Load 27(ps)
37: 20(float) Load 33(gl_PointSize)
41: 40(ptr) AccessChain 24 38
38: 20(float) FMul 37 36
Store 41 39
Store 33(gl_PointSize) 38
42: 6(int) Load 16(j)
43: 20(float) ConvertSToF 42
44: 40(ptr) AccessChain 24 38
45: 20(float) Load 44
46: 20(float) FMul 45 43
47: 40(ptr) AccessChain 24 38
Store 47 46
Return
Return
FunctionEnd
FunctionEnd
Test/baseResults/spv.300layout.frag.out
View file @
f6eae2a5
spv.300layout.frag
spv.300layout.frag
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked fragment stage:
Linked fragment stage:
...
@@ -12,7 +14,7 @@ Linked fragment stage:
...
@@ -12,7 +14,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 9 11 15 26 29
EntryPoint Fragment 4 "main" 9 11 15 26 29
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source ESSL 3
0
0
Source ESSL 3
1
0
Name 4 "main"
Name 4 "main"
Name 9 "c"
Name 9 "c"
Name 11 "color"
Name 11 "color"
...
...
Test/baseResults/spv.300layout.vert.out
View file @
f6eae2a5
spv.300layout.vert
spv.300layout.vert
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked vertex stage:
Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 9 11 99 101 109 121 129 163 164
EntryPoint Vertex 4 "main" 9 11 99 101 109 121 129 163 164
Source ESSL 3
0
0
Source ESSL 3
1
0
Name 4 "main"
Name 4 "main"
Name 9 "pos"
Name 9 "pos"
Name 11 "p"
Name 11 "p"
...
...
Test/baseResults/spv.300layoutp.vert.out
View file @
f6eae2a5
spv.300layoutp.vert
spv.300layoutp.vert
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked vertex stage:
Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 9 11 51 53 61 73 81 115 116
EntryPoint Vertex 4 "main" 9 11 51 53 61 73 81 115 116
Source ESSL 3
0
0
Source ESSL 3
1
0
Name 4 "main"
Name 4 "main"
Name 9 "pos"
Name 9 "pos"
Name 11 "p"
Name 11 "p"
...
...
Test/baseResults/spv.always-discard.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 21 59
EntryPoint Fragment 4 "main" 21 59
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
1
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "white"
Name 9 "white"
Name 12 "black"
Name 12 "black"
...
...
Test/baseResults/spv.always-discard2.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 21 38
EntryPoint Fragment 4 "main" 21 38
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
1
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "white"
Name 9 "white"
Name 12 "black"
Name 12 "black"
...
...
Test/baseResults/spv.branch-return.vert.out
View file @
f6eae2a5
spv.branch-return.vert
spv.branch-return.vert
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked vertex stage:
Linked vertex stage:
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by 3
5
// Id's are bound by 3
9
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 8
19 34
EntryPoint Vertex 4 "main" 8
20 38
Source ESSL 3
0
0
Source ESSL 3
1
0
Name 4 "main"
Name 4 "main"
Name 8 "gl_InstanceID"
Name 8 "gl_InstanceID"
Name 19 "gl_Position"
Name 18 "gl_PerVertex"
Name 34 "gl_VertexID"
MemberName 18(gl_PerVertex) 0 "gl_Position"
MemberName 18(gl_PerVertex) 1 "gl_PointSize"
Name 20 ""
Name 38 "gl_VertexID"
Decorate 8(gl_InstanceID) BuiltIn InstanceId
Decorate 8(gl_InstanceID) BuiltIn InstanceId
Decorate 19(gl_Position) BuiltIn Position
MemberDecorate 18(gl_PerVertex) 0 BuiltIn Position
Decorate 34(gl_VertexID) BuiltIn VertexId
MemberDecorate 18(gl_PerVertex) 1 BuiltIn PointSize
Decorate 18(gl_PerVertex) Block
Decorate 38(gl_VertexID) BuiltIn VertexId
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeInt 32 1
6: TypeInt 32 1
...
@@ -26,15 +33,18 @@ Linked vertex stage:
...
@@ -26,15 +33,18 @@ Linked vertex stage:
8(gl_InstanceID): 7(ptr) Variable Input
8(gl_InstanceID): 7(ptr) Variable Input
16: TypeFloat 32
16: TypeFloat 32
17: TypeVector 16(float) 4
17: TypeVector 16(float) 4
18: TypePointer Output 17(fvec4)
18(gl_PerVertex): TypeStruct 17(fvec4) 16(float)
19(gl_Position): 18(ptr) Variable Output
19: TypePointer Output 18(gl_PerVertex)
20: 16(float) Constant 0
20: 19(ptr) Variable Output
21: 17(fvec4) ConstantComposite 20 20 20 20
21: 6(int) Constant 0
26: 16(float) Constant 1039918957
22: 16(float) Constant 0
27: TypeInt 32 0
23: 17(fvec4) ConstantComposite 22 22 22 22
28: 27(int) Constant 0
24: TypePointer Output 17(fvec4)
29: TypePointer Output 16(float)
30: 16(float) Constant 1039918957
34(gl_VertexID): 7(ptr) Variable Input
31: TypeInt 32 0
32: 31(int) Constant 0
33: TypePointer Output 16(float)
38(gl_VertexID): 7(ptr) Variable Input
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
9: 6(int) Load 8(gl_InstanceID)
9: 6(int) Load 8(gl_InstanceID)
...
@@ -47,17 +57,18 @@ Linked vertex stage:
...
@@ -47,17 +57,18 @@ Linked vertex stage:
10: Label
10: Label
Return
Return
11: Label
11: Label
Store 19(gl_Position) 21
25: 24(ptr) AccessChain 20 21
Store 25 23
Branch 14
Branch 14
12: Label
12: Label
Return
Return
13: Label
13: Label
Return
Return
14: Label
14: Label
3
0: 29(ptr) AccessChain 19(gl_Position) 28
3
4: 33(ptr) AccessChain 20 21 32
3
1: 16(float) Load 30
3
5: 16(float) Load 34
3
2: 16(float) FAdd 31 26
3
6: 16(float) FAdd 35 30
3
3: 29(ptr) AccessChain 19(gl_Position) 28
3
7: 33(ptr) AccessChain 20 21 32
Store 3
3 32
Store 3
7 36
Return
Return
FunctionEnd
FunctionEnd
Test/baseResults/spv.conversion.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 39 53 157 322 446 448 450 452 454
EntryPoint Fragment 4 "main" 39 53 157 322 446 448 450 452 454
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 8 "b"
Name 8 "b"
Name 11 "u_i"
Name 11 "u_i"
...
...
Test/baseResults/spv.dataOut.frag.out
View file @
f6eae2a5
spv.dataOut.frag
spv.dataOut.frag
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 12 16
EntryPoint Fragment 4 "main" 12 16
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 12 "gl_FragData"
Name 12 "gl_FragData"
Name 16 "Color"
Name 16 "Color"
...
...
Test/baseResults/spv.dataOutIndirect.frag.out
View file @
f6eae2a5
spv.dataOutIndirect.frag
spv.dataOutIndirect.frag
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 12 18
EntryPoint Fragment 4 "main" 12 18
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 12 "gl_FragData"
Name 12 "gl_FragData"
Name 15 "i"
Name 15 "i"
...
...
Test/baseResults/spv.dataOutIndirect.vert.out
View file @
f6eae2a5
spv.dataOutIndirect.vert
spv.dataOutIndirect.vert
WARNING: 0:3: attribute deprecated in version 130; may be removed in future release
WARNING: 0:3: attribute deprecated in version 130; may be removed in future release
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
Linked vertex stage:
Linked vertex stage:
...
@@ -8,21 +7,23 @@ Linked vertex stage:
...
@@ -8,21 +7,23 @@ Linked vertex stage:
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by 4
0
// Id's are bound by 4
1
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 25 28 34 39
EntryPoint Vertex 4 "main" 25 28 34 39
40
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 8 "i"
Name 8 "i"
Name 25 "colorOut"
Name 25 "colorOut"
Name 28 "color"
Name 28 "color"
Name 34 "gl_Position"
Name 34 "gl_Position"
Name 39 "gl_VertexID"
Name 39 "gl_VertexID"
Name 40 "gl_InstanceID"
Decorate 34(gl_Position) BuiltIn Position
Decorate 34(gl_Position) BuiltIn Position
Decorate 39(gl_VertexID) BuiltIn VertexId
Decorate 39(gl_VertexID) BuiltIn VertexId
Decorate 40(gl_InstanceID) BuiltIn InstanceId
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeInt 32 1
6: TypeInt 32 1
...
@@ -44,6 +45,7 @@ Linked vertex stage:
...
@@ -44,6 +45,7 @@ Linked vertex stage:
35: 6(int) Constant 2
35: 6(int) Constant 2
38: TypePointer Input 6(int)
38: TypePointer Input 6(int)
39(gl_VertexID): 38(ptr) Variable Input
39(gl_VertexID): 38(ptr) Variable Input
40(gl_InstanceID): 38(ptr) Variable Input
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
8(i): 7(ptr) Variable Function
8(i): 7(ptr) Variable Function
...
...
Test/baseResults/spv.discard-dce.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 21 59
EntryPoint Fragment 4 "main" 21 59
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
1
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "white"
Name 9 "white"
Name 12 "black"
Name 12 "black"
...
...
Test/baseResults/spv.do-simple.vert.out
View file @
f6eae2a5
spv.do-simple.vert
spv.do-simple.vert
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked vertex stage:
Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 22 23
EntryPoint Vertex 4 "main" 22 23
Source ESSL 3
0
0
Source ESSL 3
1
0
Name 4 "main"
Name 4 "main"
Name 8 "i"
Name 8 "i"
Name 22 "gl_VertexID"
Name 22 "gl_VertexID"
...
...
Test/baseResults/spv.do-while-continue-break.vert.out
View file @
f6eae2a5
spv.do-while-continue-break.vert
spv.do-while-continue-break.vert
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked vertex stage:
Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 44 45
EntryPoint Vertex 4 "main" 44 45
Source ESSL 3
0
0
Source ESSL 3
1
0
Name 4 "main"
Name 4 "main"
Name 8 "i"
Name 8 "i"
Name 14 "A"
Name 14 "A"
...
...
Test/baseResults/spv.doWhileLoop.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 11 33
EntryPoint Fragment 4 "main" 11 33
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
1
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "color"
Name 9 "color"
Name 11 "BaseColor"
Name 11 "BaseColor"
...
...
Test/baseResults/spv.earlyReturnDiscard.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 11 18 107
EntryPoint Fragment 4 "main" 11 18 107
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
1
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "color"
Name 9 "color"
Name 11 "BaseColor"
Name 11 "BaseColor"
...
...
Test/baseResults/spv.flowControl.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 11 18 37
EntryPoint Fragment 4 "main" 11 18 37
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
2
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "color"
Name 9 "color"
Name 11 "BaseColor"
Name 11 "BaseColor"
...
...
Test/baseResults/spv.for-continue-break.vert.out
View file @
f6eae2a5
spv.for-continue-break.vert
spv.for-continue-break.vert
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked vertex stage:
Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 46 47
EntryPoint Vertex 4 "main" 46 47
Source ESSL 3
0
0
Source ESSL 3
1
0
Name 4 "main"
Name 4 "main"
Name 8 "i"
Name 8 "i"
Name 19 "A"
Name 19 "A"
...
...
Test/baseResults/spv.for-simple.vert.out
View file @
f6eae2a5
spv.for-simple.vert
spv.for-simple.vert
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked vertex stage:
Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 25 26
EntryPoint Vertex 4 "main" 25 26
Source ESSL 3
0
0
Source ESSL 3
1
0
Name 4 "main"
Name 4 "main"
Name 8 "i"
Name 8 "i"
Name 19 "j"
Name 19 "j"
...
...
Test/baseResults/spv.forLoop.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 11 37 105
EntryPoint Fragment 4 "main" 11 37 105
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "color"
Name 9 "color"
Name 11 "BaseColor"
Name 11 "BaseColor"
...
...
Test/baseResults/spv.forwardFun.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 20 30
EntryPoint Fragment 4 "main" 20 30
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source
ESSL 10
0
Source
GLSL 14
0
Name 4 "main"
Name 4 "main"
Name 6 "bar("
Name 6 "bar("
Name 10 "unreachableReturn("
Name 10 "unreachableReturn("
...
@@ -25,12 +25,6 @@ Linked fragment stage:
...
@@ -25,12 +25,6 @@ Linked fragment stage:
Name 30 "gl_FragColor"
Name 30 "gl_FragColor"
Name 36 "d"
Name 36 "d"
Name 60 "bigColor"
Name 60 "bigColor"
Decorate 18(color) RelaxedPrecision
Decorate 20(BaseColor) RelaxedPrecision
Decorate 27(f) RelaxedPrecision
Decorate 30(gl_FragColor) RelaxedPrecision
Decorate 36(d) RelaxedPrecision
Decorate 60(bigColor) RelaxedPrecision
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
8: TypeFloat 32
8: TypeFloat 32
...
...
Test/baseResults/spv.functionCall.frag.out
View file @
f6eae2a5
spv.functionCall.frag
spv.functionCall.frag
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 58 69
EntryPoint Fragment 4 "main" 58 69
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 11 "foo(vf4;"
Name 11 "foo(vf4;"
Name 10 "bar"
Name 10 "bar"
...
...
Test/baseResults/spv.length.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 14 26
EntryPoint Fragment 4 "main" 14 26
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
2
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "t"
Name 9 "t"
Name 14 "v"
Name 14 "v"
...
...
Test/baseResults/spv.localAggregates.frag.out
View file @
f6eae2a5
spv.localAggregates.frag
spv.localAggregates.frag
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
WARNING: 0:5: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
@@ -15,7 +12,7 @@ Linked fragment stage:
...
@@ -15,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 40 98 108
EntryPoint Fragment 4 "main" 40 98 108
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 8 "s1"
Name 8 "s1"
MemberName 8(s1) 0 "i"
MemberName 8(s1) 0 "i"
...
...
Test/baseResults/spv.loops.frag.out
View file @
f6eae2a5
spv.loops.frag
spv.loops.frag
WARNING: 0:14: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 11 616
EntryPoint Fragment 4 "main" 11 616
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "color"
Name 9 "color"
Name 11 "BaseColor"
Name 11 "BaseColor"
...
...
Test/baseResults/spv.loopsArtificial.frag.out
View file @
f6eae2a5
spv.loopsArtificial.frag
spv.loopsArtificial.frag
WARNING: 0:14: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 11 141
EntryPoint Fragment 4 "main" 11 141
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "color"
Name 9 "color"
Name 11 "BaseColor"
Name 11 "BaseColor"
...
...
Test/baseResults/spv.matFun.vert.out
View file @
f6eae2a5
...
@@ -5,13 +5,13 @@ Linked vertex stage:
...
@@ -5,13 +5,13 @@ Linked vertex stage:
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by 9
6
// Id's are bound by 9
7
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 72 76 95
EntryPoint Vertex 4 "main" 72 76 95
96
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 14 "xf(mf33;vf3;"
Name 14 "xf(mf33;vf3;"
Name 12 "m"
Name 12 "m"
...
@@ -31,8 +31,10 @@ Linked vertex stage:
...
@@ -31,8 +31,10 @@ Linked vertex stage:
Name 84 "param"
Name 84 "param"
Name 86 "param"
Name 86 "param"
Name 95 "gl_VertexID"
Name 95 "gl_VertexID"
Name 96 "gl_InstanceID"
Decorate 72(gl_Position) BuiltIn Position
Decorate 72(gl_Position) BuiltIn Position
Decorate 95(gl_VertexID) BuiltIn VertexId
Decorate 95(gl_VertexID) BuiltIn VertexId
Decorate 96(gl_InstanceID) BuiltIn InstanceId
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeFloat 32
6: TypeFloat 32
...
@@ -63,6 +65,7 @@ Linked vertex stage:
...
@@ -63,6 +65,7 @@ Linked vertex stage:
83(m3): 82(ptr) Variable UniformConstant
83(m3): 82(ptr) Variable UniformConstant
94: TypePointer Input 33(int)
94: TypePointer Input 33(int)
95(gl_VertexID): 94(ptr) Variable Input
95(gl_VertexID): 94(ptr) Variable Input
96(gl_InstanceID): 94(ptr) Variable Input
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
77(param): 18(ptr) Variable Function
77(param): 18(ptr) Variable Function
...
...
Test/baseResults/spv.matrix.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 12 14 28 140 148 166
EntryPoint Fragment 4 "main" 12 14 28 140 148 166
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 10 "sum34"
Name 10 "sum34"
Name 12 "m1"
Name 12 "m1"
...
...
Test/baseResults/spv.nonSquare.vert.out
View file @
f6eae2a5
spv.nonSquare.vert
spv.nonSquare.vert
WARNING: 0:3: attribute deprecated in version 130; may be removed in future release
WARNING: 0:4: attribute deprecated in version 130; may be removed in future release
Linked vertex stage:
Linked vertex stage:
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by 9
0
// Id's are bound by 9
4
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 12 28 55
EntryPoint Vertex 4 "main" 12 28 55
92 93
Source GLSL 1
2
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "a"
Name 9 "a"
Name 12 "v3"
Name 12 "v3"
...
@@ -20,7 +23,11 @@ Linked vertex stage:
...
@@ -20,7 +23,11 @@ Linked vertex stage:
Name 22 "m32"
Name 22 "m32"
Name 28 "gl_Position"
Name 28 "gl_Position"
Name 55 "v4"
Name 55 "v4"
Name 92 "gl_VertexID"
Name 93 "gl_InstanceID"
Decorate 28(gl_Position) BuiltIn Position
Decorate 28(gl_Position) BuiltIn Position
Decorate 92(gl_VertexID) BuiltIn VertexId
Decorate 93(gl_InstanceID) BuiltIn InstanceId
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeFloat 32
6: TypeFloat 32
...
@@ -83,6 +90,10 @@ Linked vertex stage:
...
@@ -83,6 +90,10 @@ Linked vertex stage:
87: 6(float) Constant 1090519040
87: 6(float) Constant 1090519040
88: 7(fvec2) ConstantComposite 86 87
88: 7(fvec2) ConstantComposite 86 87
89: 79 ConstantComposite 82 84 85 88
89: 79 ConstantComposite 82 84 85 88
90: TypeInt 32 1
91: TypePointer Input 90(int)
92(gl_VertexID): 91(ptr) Variable Input
93(gl_InstanceID): 91(ptr) Variable Input
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
9(a): 8(ptr) Variable Function
9(a): 8(ptr) Variable Function
...
...
Test/baseResults/spv.precision.frag.out
View file @
f6eae2a5
spv.precision.frag
spv.precision.frag
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked fragment stage:
Linked fragment stage:
...
@@ -12,7 +14,7 @@ Linked fragment stage:
...
@@ -12,7 +14,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 23 59 61 73
EntryPoint Fragment 4 "main" 23 59 61 73
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source ESSL 3
0
0
Source ESSL 3
1
0
Name 4 "main"
Name 4 "main"
Name 12 "foo(vf3;"
Name 12 "foo(vf3;"
Name 11 "mv3"
Name 11 "mv3"
...
...
Test/baseResults/spv.simpleFunctionCall.frag.out
View file @
f6eae2a5
spv.simpleFunctionCall.frag
spv.simpleFunctionCall.frag
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
...
Test/baseResults/spv.structAssignment.frag.out
View file @
f6eae2a5
spv.structAssignment.frag
spv.structAssignment.frag
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 31 44
EntryPoint Fragment 4 "main" 31 44
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 8 "lunarStruct1"
Name 8 "lunarStruct1"
MemberName 8(lunarStruct1) 0 "i"
MemberName 8(lunarStruct1) 0 "i"
...
...
Test/baseResults/spv.structDeref.frag.out
View file @
f6eae2a5
spv.structDeref.frag
spv.structDeref.frag
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 61 99
EntryPoint Fragment 4 "main" 61 99
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 8 "s0"
Name 8 "s0"
MemberName 8(s0) 0 "i"
MemberName 8(s0) 0 "i"
...
...
Test/baseResults/spv.structure.frag.out
View file @
f6eae2a5
spv.structure.frag
spv.structure.frag
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 45 54
EntryPoint Fragment 4 "main" 45 54
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 8 "scale"
Name 8 "scale"
Name 18 "lunarStruct1"
Name 18 "lunarStruct1"
...
...
Test/baseResults/spv.swizzle.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 30 69
EntryPoint Fragment 4 "main" 30 69
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
1
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 8 "blendscale"
Name 8 "blendscale"
Name 12 "w"
Name 12 "w"
...
...
Test/baseResults/spv.test.vert.out
View file @
f6eae2a5
...
@@ -7,13 +7,13 @@ Linked vertex stage:
...
@@ -7,13 +7,13 @@ Linked vertex stage:
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by 2
7
// Id's are bound by 2
8
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 9 11 15 21 26
EntryPoint Vertex 4 "main" 9 11 15 21 26
27
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "uv"
Name 9 "uv"
Name 11 "uv_in"
Name 11 "uv_in"
...
@@ -21,8 +21,10 @@ Linked vertex stage:
...
@@ -21,8 +21,10 @@ Linked vertex stage:
Name 18 "transform"
Name 18 "transform"
Name 21 "position"
Name 21 "position"
Name 26 "gl_VertexID"
Name 26 "gl_VertexID"
Name 27 "gl_InstanceID"
Decorate 15(gl_Position) BuiltIn Position
Decorate 15(gl_Position) BuiltIn Position
Decorate 26(gl_VertexID) BuiltIn VertexId
Decorate 26(gl_VertexID) BuiltIn VertexId
Decorate 27(gl_InstanceID) BuiltIn InstanceId
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeFloat 32
6: TypeFloat 32
...
@@ -42,6 +44,7 @@ Linked vertex stage:
...
@@ -42,6 +44,7 @@ Linked vertex stage:
24: TypeInt 32 1
24: TypeInt 32 1
25: TypePointer Input 24(int)
25: TypePointer Input 24(int)
26(gl_VertexID): 25(ptr) Variable Input
26(gl_VertexID): 25(ptr) Variable Input
27(gl_InstanceID): 25(ptr) Variable Input
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
12: 7(fvec2) Load 11(uv_in)
12: 7(fvec2) Load 11(uv_in)
...
...
Test/baseResults/spv.texture.frag.out
View file @
f6eae2a5
spv.texture.frag
spv.texture.frag
WARNING: 0:14: varying deprecated in version 130; may be removed in future release
WARNING: 0:15: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
@@ -15,7 +12,7 @@ Linked fragment stage:
...
@@ -15,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 47 276 290
EntryPoint Fragment 4 "main" 47 276 290
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 8 "blendscale"
Name 8 "blendscale"
Name 10 "bias"
Name 10 "bias"
...
...
Test/baseResults/spv.texture.vert.out
View file @
f6eae2a5
...
@@ -5,13 +5,13 @@ Linked vertex stage:
...
@@ -5,13 +5,13 @@ Linked vertex stage:
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by 14
5
// Id's are bound by 14
6
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 39 140 144
EntryPoint Vertex 4 "main" 39 140 144
145
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 8 "lod"
Name 8 "lod"
Name 10 "coords1D"
Name 10 "coords1D"
...
@@ -27,8 +27,10 @@ Linked vertex stage:
...
@@ -27,8 +27,10 @@ Linked vertex stage:
Name 114 "shadowSampler2D"
Name 114 "shadowSampler2D"
Name 140 "gl_Position"
Name 140 "gl_Position"
Name 144 "gl_VertexID"
Name 144 "gl_VertexID"
Name 145 "gl_InstanceID"
Decorate 140(gl_Position) BuiltIn Position
Decorate 140(gl_Position) BuiltIn Position
Decorate 144(gl_VertexID) BuiltIn VertexId
Decorate 144(gl_VertexID) BuiltIn VertexId
Decorate 145(gl_InstanceID) BuiltIn InstanceId
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeFloat 32
6: TypeFloat 32
...
@@ -78,6 +80,7 @@ Linked vertex stage:
...
@@ -78,6 +80,7 @@ Linked vertex stage:
142: TypeInt 32 1
142: TypeInt 32 1
143: TypePointer Input 142(int)
143: TypePointer Input 142(int)
144(gl_VertexID): 143(ptr) Variable Input
144(gl_VertexID): 143(ptr) Variable Input
145(gl_InstanceID): 143(ptr) Variable Input
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
8(lod): 7(ptr) Variable Function
8(lod): 7(ptr) Variable Function
...
...
Test/baseResults/spv.types.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 94 104 114 124 134 144 154 164 168
EntryPoint Fragment 4 "main" 94 104 114 124 134 144 154 164 168
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 8 "b"
Name 8 "b"
Name 10 "u_b"
Name 10 "u_b"
...
...
Test/baseResults/spv.uint.frag.out
View file @
f6eae2a5
spv.uint.frag
spv.uint.frag
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked fragment stage:
Linked fragment stage:
...
@@ -12,7 +14,7 @@ Linked fragment stage:
...
@@ -12,7 +14,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 15 68 77 200
EntryPoint Fragment 4 "main" 15 68 77 200
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source ESSL 3
0
0
Source ESSL 3
1
0
Name 4 "main"
Name 4 "main"
Name 8 "count"
Name 8 "count"
Name 12 "u"
Name 12 "u"
...
...
Test/baseResults/spv.uniformArray.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 47
EntryPoint Fragment 4 "main" 47
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "texColor"
Name 9 "texColor"
Name 14 "color"
Name 14 "color"
...
...
Test/baseResults/spv.variableArrayIndex.frag.out
View file @
f6eae2a5
spv.variableArrayIndex.frag
spv.variableArrayIndex.frag
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
...
@@ -14,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 54 63
EntryPoint Fragment 4 "main" 54 63
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 8 "iLocal"
Name 8 "iLocal"
Name 10 "Count"
Name 10 "Count"
...
...
Test/baseResults/spv.varyingArray.frag.out
View file @
f6eae2a5
spv.varyingArray.frag
spv.varyingArray.frag
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
WARNING: 0:6: varying deprecated in version 130; may be removed in future release
WARNING: 0:8: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
@@ -17,11 +12,11 @@ Linked fragment stage:
...
@@ -17,11 +12,11 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 19 34 39 45 48
EntryPoint Fragment 4 "main" 19 34 39 45 48
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "texColor"
Name 9 "texColor"
Name 13 "texSampler2D"
Name 13 "texSampler2D"
Name 19 "
gl_
TexCoord"
Name 19 "TexCoord"
Name 34 "color"
Name 34 "color"
Name 39 "alpha"
Name 39 "alpha"
Name 45 "gl_FragColor"
Name 45 "gl_FragColor"
...
@@ -39,7 +34,7 @@ Linked fragment stage:
...
@@ -39,7 +34,7 @@ Linked fragment stage:
16: 15(int) Constant 6
16: 15(int) Constant 6
17: TypeArray 7(fvec4) 16
17: TypeArray 7(fvec4) 16
18: TypePointer Input 17
18: TypePointer Input 17
19(gl_
TexCoord): 18(ptr) Variable Input
19(
TexCoord): 18(ptr) Variable Input
20: TypeInt 32 1
20: TypeInt 32 1
21: 20(int) Constant 4
21: 20(int) Constant 4
22: TypePointer Input 7(fvec4)
22: TypePointer Input 7(fvec4)
...
@@ -61,9 +56,9 @@ Linked fragment stage:
...
@@ -61,9 +56,9 @@ Linked fragment stage:
5: Label
5: Label
9(texColor): 8(ptr) Variable Function
9(texColor): 8(ptr) Variable Function
14: 11 Load 13(texSampler2D)
14: 11 Load 13(texSampler2D)
23: 22(ptr) AccessChain 19(
gl_
TexCoord) 21
23: 22(ptr) AccessChain 19(TexCoord) 21
24: 7(fvec4) Load 23
24: 7(fvec4) Load 23
26: 22(ptr) AccessChain 19(
gl_
TexCoord) 25
26: 22(ptr) AccessChain 19(TexCoord) 25
27: 7(fvec4) Load 26
27: 7(fvec4) Load 26
28: 7(fvec4) FAdd 24 27
28: 7(fvec4) FAdd 24 27
30: 6(float) CompositeExtract 28 0
30: 6(float) CompositeExtract 28 0
...
@@ -80,10 +75,10 @@ Linked fragment stage:
...
@@ -80,10 +75,10 @@ Linked fragment stage:
Store 43 40
Store 43 40
50: 22(ptr) AccessChain 48(foo) 49
50: 22(ptr) AccessChain 48(foo) 49
51: 7(fvec4) Load 50
51: 7(fvec4) Load 50
53: 22(ptr) AccessChain 19(
gl_
TexCoord) 52
53: 22(ptr) AccessChain 19(TexCoord) 52
54: 7(fvec4) Load 53
54: 7(fvec4) Load 53
55: 7(fvec4) FAdd 51 54
55: 7(fvec4) FAdd 51 54
56: 22(ptr) AccessChain 19(
gl_
TexCoord) 21
56: 22(ptr) AccessChain 19(TexCoord) 21
57: 7(fvec4) Load 56
57: 7(fvec4) Load 56
58: 7(fvec4) FAdd 55 57
58: 7(fvec4) FAdd 55 57
59: 7(fvec4) Load 9(texColor)
59: 7(fvec4) Load 9(texColor)
...
...
Test/baseResults/spv.varyingArrayIndirect.frag.out
View file @
f6eae2a5
spv.varyingArrayIndirect.frag
spv.varyingArrayIndirect.frag
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
WARNING: 0:6: varying deprecated in version 130; may be removed in future release
WARNING: 0:8: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
Linked fragment stage:
...
@@ -17,13 +12,13 @@ Linked fragment stage:
...
@@ -17,13 +12,13 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 19 30 45 50 56
EntryPoint Fragment 4 "main" 19 30 45 50 56
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
3
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "texColor"
Name 9 "texColor"
Name 13 "texSampler2D"
Name 13 "texSampler2D"
Name 19 "userIn"
Name 19 "userIn"
Name 22 "b"
Name 22 "b"
Name 30 "
gl_
TexCoord"
Name 30 "TexCoord"
Name 31 "a"
Name 31 "a"
Name 45 "color"
Name 45 "color"
Name 50 "alpha"
Name 50 "alpha"
...
@@ -49,7 +44,7 @@ Linked fragment stage:
...
@@ -49,7 +44,7 @@ Linked fragment stage:
27: 15(int) Constant 6
27: 15(int) Constant 6
28: TypeArray 7(fvec4) 27
28: TypeArray 7(fvec4) 27
29: TypePointer Input 28
29: TypePointer Input 28
30(gl_
TexCoord): 29(ptr) Variable Input
30(
TexCoord): 29(ptr) Variable Input
31(a): 21(ptr) Variable UniformConstant
31(a): 21(ptr) Variable UniformConstant
36: 20(int) Constant 5
36: 20(int) Constant 5
40: TypeVector 6(float) 2
40: TypeVector 6(float) 2
...
@@ -69,10 +64,10 @@ Linked fragment stage:
...
@@ -69,10 +64,10 @@ Linked fragment stage:
25: 24(ptr) AccessChain 19(userIn) 23
25: 24(ptr) AccessChain 19(userIn) 23
26: 7(fvec4) Load 25
26: 7(fvec4) Load 25
32: 20(int) Load 31(a)
32: 20(int) Load 31(a)
33: 24(ptr) AccessChain 30(
gl_
TexCoord) 32
33: 24(ptr) AccessChain 30(TexCoord) 32
34: 7(fvec4) Load 33
34: 7(fvec4) Load 33
35: 7(fvec4) FAdd 26 34
35: 7(fvec4) FAdd 26 34
37: 24(ptr) AccessChain 30(
gl_
TexCoord) 36
37: 24(ptr) AccessChain 30(TexCoord) 36
38: 7(fvec4) Load 37
38: 7(fvec4) Load 37
39: 7(fvec4) FAdd 35 38
39: 7(fvec4) FAdd 35 38
41: 6(float) CompositeExtract 39 0
41: 6(float) CompositeExtract 39 0
...
@@ -87,10 +82,10 @@ Linked fragment stage:
...
@@ -87,10 +82,10 @@ Linked fragment stage:
51: 6(float) Load 50(alpha)
51: 6(float) Load 50(alpha)
54: 53(ptr) AccessChain 9(texColor) 52
54: 53(ptr) AccessChain 9(texColor) 52
Store 54 51
Store 54 51
58: 24(ptr) AccessChain 30(
gl_
TexCoord) 57
58: 24(ptr) AccessChain 30(TexCoord) 57
59: 7(fvec4) Load 58
59: 7(fvec4) Load 58
60: 20(int) Load 22(b)
60: 20(int) Load 22(b)
61: 24(ptr) AccessChain 30(
gl_
TexCoord) 60
61: 24(ptr) AccessChain 30(TexCoord) 60
62: 7(fvec4) Load 61
62: 7(fvec4) Load 61
63: 7(fvec4) FAdd 59 62
63: 7(fvec4) FAdd 59 62
64: 7(fvec4) Load 9(texColor)
64: 7(fvec4) Load 9(texColor)
...
...
Test/baseResults/spv.voidFunction.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 37 41
EntryPoint Fragment 4 "main" 37 41
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
2
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 6 "foo("
Name 6 "foo("
Name 8 "foo2("
Name 8 "foo2("
...
...
Test/baseResults/spv.while-continue-break.vert.out
View file @
f6eae2a5
spv.while-continue-break.vert
spv.while-continue-break.vert
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked vertex stage:
Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 42 43
EntryPoint Vertex 4 "main" 42 43
Source ESSL 3
0
0
Source ESSL 3
1
0
Name 4 "main"
Name 4 "main"
Name 8 "i"
Name 8 "i"
Name 19 "A"
Name 19 "A"
...
...
Test/baseResults/spv.while-simple.vert.out
View file @
f6eae2a5
spv.while-simple.vert
spv.while-simple.vert
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked vertex stage:
Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
...
@@ -11,7 +13,7 @@ Linked vertex stage:
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 23 24
EntryPoint Vertex 4 "main" 23 24
Source ESSL 3
0
0
Source ESSL 3
1
0
Name 4 "main"
Name 4 "main"
Name 8 "i"
Name 8 "i"
Name 23 "gl_VertexID"
Name 23 "gl_VertexID"
...
...
Test/baseResults/spv.whileLoop.frag.out
View file @
f6eae2a5
...
@@ -12,7 +12,7 @@ Linked fragment stage:
...
@@ -12,7 +12,7 @@ Linked fragment stage:
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 11 34
EntryPoint Fragment 4 "main" 11 34
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 1
1
0
Source GLSL 1
4
0
Name 4 "main"
Name 4 "main"
Name 9 "color"
Name 9 "color"
Name 11 "BaseColor"
Name 11 "BaseColor"
...
...
Test/spv.100ops.frag
View file @
f6eae2a5
#version
100
#version
310 es
lowp
float
foo
();
lowp
float
foo
();
...
@@ -6,6 +6,8 @@ uniform int low, high;
...
@@ -6,6 +6,8 @@ uniform int low, high;
lowp
float
face1
=
11
.
0
;
lowp
float
face1
=
11
.
0
;
out
lowp
vec4
Color
;
void
main
()
void
main
()
{
{
int
z
=
3
;
int
z
=
3
;
...
@@ -13,7 +15,7 @@ void main()
...
@@ -13,7 +15,7 @@ void main()
if
(
2
*
low
+
1
<
high
)
if
(
2
*
low
+
1
<
high
)
++
z
;
++
z
;
gl_Frag
Color
=
face1
*
vec4
(
z
)
+
foo
();
Color
=
face1
*
vec4
(
z
)
+
foo
();
}
}
lowp
float
face2
=
-
2
.
0
;
lowp
float
face2
=
-
2
.
0
;
...
...
Test/spv.130.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_texture_gather : enable
vec3
a
;
vec3
a
;
...
@@ -15,9 +15,6 @@ noperspective in float fnop;
...
@@ -15,9 +15,6 @@ noperspective in float fnop;
uniform
samplerCube
sampC
;
uniform
samplerCube
sampC
;
in
vec4
gl_Color
;
flat
in
vec4
gl_Color
;
#extension GL_ARB_texture_rectangle : enable
#extension GL_ARB_texture_rectangle : enable
uniform
sampler2D
samp2D
;
uniform
sampler2D
samp2D
;
...
...
Test/spv.300BuiltIns.vert
View file @
f6eae2a5
#version 3
0
0 es
#version 3
1
0 es
in
mediump
float
ps
;
in
mediump
float
ps
;
...
...
Test/spv.300layout.frag
View file @
f6eae2a5
#version 3
0
0 es
#version 3
1
0 es
precision
mediump
float
;
precision
mediump
float
;
...
...
Test/spv.300layout.vert
View file @
f6eae2a5
#version 3
0
0 es
#version 3
1
0 es
layout
(
location
=
7
)
in
vec3
c
;
layout
(
location
=
7
)
in
vec3
c
;
layout
(
LocatioN
=
3
)
in
vec4
p
;
layout
(
LocatioN
=
3
)
in
vec4
p
;
...
...
Test/spv.300layoutp.vert
View file @
f6eae2a5
#version 3
0
0 es
#version 3
1
0 es
layout
(
location
=
7
)
in
vec3
c
;
layout
(
location
=
7
)
in
vec3
c
;
layout
(
LocatioN
=
3
)
in
vec4
p
;
layout
(
LocatioN
=
3
)
in
vec4
p
;
...
...
Test/spv.always-discard.frag
View file @
f6eae2a5
#version 1
1
0
#version 1
4
0
varying
vec2
tex_coord
;
in
vec2
tex_coord
;
void
main
(
void
)
void
main
(
void
)
{
{
...
...
Test/spv.always-discard2.frag
View file @
f6eae2a5
#version 1
1
0
#version 1
4
0
varying
vec2
tex_coord
;
in
vec2
tex_coord
;
void
main
(
void
)
void
main
(
void
)
{
{
...
...
Test/spv.branch-return.vert
View file @
f6eae2a5
#version 3
0
0 es
#version 3
1
0 es
void
main
()
{
void
main
()
{
switch
(
gl_InstanceID
)
{
switch
(
gl_InstanceID
)
{
case
0
:
return
;
case
0
:
return
;
...
...
Test/spv.conversion.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
bool
u_b
;
uniform
bool
u_b
;
uniform
bvec2
u_b2
;
uniform
bvec2
u_b2
;
...
...
Test/spv.dataOut.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
varying
vec4
Color
;
in
vec4
Color
;
void
main
()
void
main
()
{
{
...
...
Test/spv.dataOutIndirect.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
varying
vec4
Color
;
in
vec4
Color
;
uniform
int
i
;
uniform
int
i
;
...
...
Test/spv.dataOutIndirect.vert
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
attribute
vec4
color
;
attribute
vec4
color
;
varying
vec4
colorOut
[
6
];
out
vec4
colorOut
[
6
];
void
main
()
void
main
()
{
{
...
...
Test/spv.discard-dce.frag
View file @
f6eae2a5
#version 1
1
0
#version 1
4
0
varying
vec2
tex_coord
;
in
vec2
tex_coord
;
void
main
(
void
)
void
main
(
void
)
{
{
...
...
Test/spv.do-simple.vert
View file @
f6eae2a5
#version 3
0
0 es
#version 3
1
0 es
void
main
()
{
void
main
()
{
int
i
=
0
;
int
i
=
0
;
do
{
do
{
...
...
Test/spv.do-while-continue-break.vert
View file @
f6eae2a5
#version 3
0
0 es
#version 3
1
0 es
void
main
()
{
void
main
()
{
int
i
=
0
;
int
i
=
0
;
int
A
,
B
,
C
,
D
,
E
,
F
,
G
;
int
A
,
B
,
C
,
D
,
E
,
F
,
G
;
...
...
Test/spv.doWhileLoop.frag
View file @
f6eae2a5
#version 1
1
0
#version 1
4
0
uniform
vec4
bigColor
;
uniform
vec4
bigColor
;
varying
vec4
BaseColor
;
in
vec4
BaseColor
;
uniform
float
d
;
uniform
float
d
;
void
main
()
void
main
()
...
...
Test/spv.earlyReturnDiscard.frag
View file @
f6eae2a5
#version 1
1
0
#version 1
4
0
uniform
float
d
;
uniform
float
d
;
uniform
vec4
bigColor
,
smallColor
;
uniform
vec4
bigColor
,
smallColor
;
uniform
vec4
otherColor
;
uniform
vec4
otherColor
;
varying
float
c
;
in
float
c
;
uniform
float
threshhold
;
uniform
float
threshhold
;
uniform
float
threshhold2
;
uniform
float
threshhold2
;
...
@@ -12,7 +12,7 @@ uniform float threshhold3;
...
@@ -12,7 +12,7 @@ uniform float threshhold3;
uniform
float
minimum
;
uniform
float
minimum
;
varying
vec4
BaseColor
;
in
vec4
BaseColor
;
uniform
bool
b
;
uniform
bool
b
;
...
...
Test/spv.flowControl.frag
View file @
f6eae2a5
#version 1
2
0
#version 1
4
0
uniform
float
d
;
uniform
float
d
;
uniform
vec4
bigColor
,
smallColor
;
uniform
vec4
bigColor
,
smallColor
;
uniform
vec4
otherColor
;
uniform
vec4
otherColor
;
varying
float
c
;
in
float
c
;
varying
vec4
BaseColor
;
in
vec4
BaseColor
;
void
main
()
void
main
()
{
{
...
...
Test/spv.for-continue-break.vert
View file @
f6eae2a5
#version 3
0
0 es
#version 3
1
0 es
void
main
()
{
void
main
()
{
int
i
;
int
i
;
int
A
,
B
,
C
,
D
,
E
,
F
,
G
;
int
A
,
B
,
C
,
D
,
E
,
F
,
G
;
...
...
Test/spv.for-simple.vert
View file @
f6eae2a5
#version 3
0
0 es
#version 3
1
0 es
void
main
()
{
void
main
()
{
int
i
;
int
i
;
int
j
;
int
j
;
...
...
Test/spv.forLoop.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
vec4
bigColor
;
uniform
vec4
bigColor
;
in
vec4
BaseColor
;
in
vec4
BaseColor
;
...
...
Test/spv.forwardFun.frag
View file @
f6eae2a5
#version 1
0
0
#version 1
4
0
precision
mediump
float
;
precision
mediump
float
;
uniform
vec4
bigColor
;
uniform
vec4
bigColor
;
varying
vec4
BaseColor
;
in
vec4
BaseColor
;
uniform
float
d
;
uniform
float
d
;
void
bar
();
void
bar
();
...
...
Test/spv.functionCall.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
vec4
bigColor
;
uniform
vec4
bigColor
;
varying
vec4
BaseColor
;
in
vec4
BaseColor
;
uniform
float
d
;
uniform
float
d
;
float
h
=
0
.
0
;
float
h
=
0
.
0
;
...
...
Test/spv.length.frag
View file @
f6eae2a5
#version 1
2
0
#version 1
4
0
uniform
vec4
u
[
3
];
uniform
vec4
u
[
3
];
varying
vec2
v
[
2
];
in
vec2
v
[
2
];
void
main
()
void
main
()
{
{
...
...
Test/spv.localAggregates.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
sampler2D
samp2D
;
uniform
sampler2D
samp2D
;
varying
vec2
coord
;
in
vec2
coord
;
varying
vec4
color
;
in
vec4
color
;
struct
s1
{
struct
s1
{
int
i
;
int
i
;
...
...
Test/spv.loops.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
vec4
bigColor
;
uniform
vec4
bigColor
;
uniform
vec4
bigColor1_1
;
uniform
vec4
bigColor1_1
;
uniform
vec4
bigColor1_2
;
uniform
vec4
bigColor1_2
;
...
@@ -11,7 +11,7 @@ uniform vec4 bigColor6;
...
@@ -11,7 +11,7 @@ uniform vec4 bigColor6;
uniform
vec4
bigColor7
;
uniform
vec4
bigColor7
;
uniform
vec4
bigColor8
;
uniform
vec4
bigColor8
;
varying
vec4
BaseColor
;
in
vec4
BaseColor
;
uniform
float
d
;
uniform
float
d
;
uniform
float
d2
;
uniform
float
d2
;
...
...
Test/spv.loopsArtificial.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
vec4
bigColor
;
uniform
vec4
bigColor
;
uniform
vec4
bigColor1_1
;
uniform
vec4
bigColor1_1
;
uniform
vec4
bigColor1_2
;
uniform
vec4
bigColor1_2
;
...
@@ -11,7 +11,7 @@ uniform vec4 bigColor6;
...
@@ -11,7 +11,7 @@ uniform vec4 bigColor6;
uniform
vec4
bigColor7
;
uniform
vec4
bigColor7
;
uniform
vec4
bigColor8
;
uniform
vec4
bigColor8
;
varying
vec4
BaseColor
;
in
vec4
BaseColor
;
uniform
float
d
;
uniform
float
d
;
uniform
float
d2
;
uniform
float
d2
;
...
...
Test/spv.matFun.vert
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
mat4
m4
;
uniform
mat4
m4
;
uniform
mat3
m3
;
uniform
mat3
m3
;
...
...
Test/spv.matrix.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
in
mat3x4
m1
;
in
mat3x4
m1
;
in
mat3x4
m2
;
in
mat3x4
m2
;
...
...
Test/spv.nonSquare.vert
View file @
f6eae2a5
#version 1
2
0
#version 1
4
0
attribute
vec3
v3
;
attribute
vec3
v3
;
attribute
vec4
v4
;
attribute
vec4
v4
;
...
...
Test/spv.precision.frag
View file @
f6eae2a5
#version 3
0
0 es
#version 3
1
0 es
precision
mediump
float
;
precision
mediump
float
;
in
lowp
float
lowfin
;
in
lowp
float
lowfin
;
in
mediump
float
mediumfin
;
in
mediump
float
mediumfin
;
...
...
Test/spv.simpleFunctionCall.frag
View file @
f6eae2a5
#version 150
#version 150
uniform
vec4
bigColor
;
uniform
vec4
bigColor
;
varying
vec4
BaseColor
;
in
vec4
BaseColor
;
uniform
float
d
;
uniform
float
d
;
vec4
foo
()
vec4
foo
()
...
...
Test/spv.structAssignment.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
sampler2D
samp2D
;
uniform
sampler2D
samp2D
;
varying
mediump
vec2
coord
;
in
mediump
vec2
coord
;
struct
lunarStruct1
{
struct
lunarStruct1
{
int
i
;
int
i
;
...
...
Test/spv.structDeref.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
sampler2D
samp2D
;
uniform
sampler2D
samp2D
;
varying
vec2
coord
;
in
vec2
coord
;
struct
s0
{
struct
s0
{
int
i
;
int
i
;
...
...
Test/spv.structure.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
sampler2D
samp2D
;
uniform
sampler2D
samp2D
;
varying
vec2
coord
;
in
vec2
coord
;
struct
lunarStruct1
{
struct
lunarStruct1
{
int
i
;
int
i
;
...
...
Test/spv.swizzle.frag
View file @
f6eae2a5
#version 1
1
0
#version 1
4
0
uniform
float
blend
;
uniform
float
blend
;
uniform
vec4
u
;
uniform
vec4
u
;
uniform
bool
p
;
uniform
bool
p
;
varying
vec2
t
;
in
vec2
t
;
void
main
()
void
main
()
{
{
...
...
Test/spv.test.vert
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
mat4
transform
;
uniform
mat4
transform
;
...
...
Test/spv.texture.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
sampler1D
texSampler1D
;
uniform
sampler1D
texSampler1D
;
uniform
sampler2D
texSampler2D
;
uniform
sampler2D
texSampler2D
;
...
@@ -11,8 +11,8 @@ uniform float blend;
...
@@ -11,8 +11,8 @@ uniform float blend;
uniform
vec2
scale
;
uniform
vec2
scale
;
uniform
vec4
u
;
uniform
vec4
u
;
varying
vec2
t
;
in
vec2
t
;
varying
vec2
coords2D
;
in
vec2
coords2D
;
void
main
()
void
main
()
{
{
...
...
Test/spv.texture.vert
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
sampler1D
texSampler1D
;
uniform
sampler1D
texSampler1D
;
uniform
sampler2D
texSampler2D
;
uniform
sampler2D
texSampler2D
;
...
...
Test/spv.types.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
bool
u_b
;
uniform
bool
u_b
;
uniform
bvec2
u_b2
;
uniform
bvec2
u_b2
;
...
...
Test/spv.uint.frag
View file @
f6eae2a5
#version 3
0
0 es
#version 3
1
0 es
precision
mediump
float
;
precision
mediump
float
;
flat
in
uvec2
t
;
flat
in
uvec2
t
;
in
float
f
;
in
float
f
;
...
...
Test/spv.uniformArray.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
sampler2D
texSampler2D
;
uniform
sampler2D
texSampler2D
;
uniform
vec3
inColor
;
uniform
vec3
inColor
;
uniform
vec4
color
[
6
];
uniform
vec4
color
[
6
];
...
...
Test/spv.variableArrayIndex.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
sampler2D
samp2D
;
uniform
sampler2D
samp2D
;
varying
vec2
coord
;
in
vec2
coord
;
struct
lunarStruct1
{
struct
lunarStruct1
{
int
i
;
int
i
;
...
...
Test/spv.varyingArray.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
sampler2D
texSampler2D
;
uniform
sampler2D
texSampler2D
;
varying
vec4
color
;
in
vec4
color
;
varying
float
alpha
;
in
float
alpha
;
varying
vec4
gl_
TexCoord
[
6
];
in
vec4
TexCoord
[
6
];
varying
vec4
foo
[
3
];
in
vec4
foo
[
3
];
void
main
()
void
main
()
{
{
vec4
texColor
=
texture
(
texSampler2D
,
vec2
(
gl_TexCoord
[
4
]
+
gl_
TexCoord
[
5
]));
vec4
texColor
=
texture
(
texSampler2D
,
vec2
(
TexCoord
[
4
]
+
TexCoord
[
5
]));
texColor
+=
color
;
texColor
+=
color
;
texColor
.
a
=
alpha
;
texColor
.
a
=
alpha
;
gl_FragColor
=
foo
[
1
]
+
gl_TexCoord
[
0
]
+
gl_
TexCoord
[
4
]
+
texColor
;
gl_FragColor
=
foo
[
1
]
+
TexCoord
[
0
]
+
TexCoord
[
4
]
+
texColor
;
}
}
Test/spv.varyingArrayIndirect.frag
View file @
f6eae2a5
#version 1
3
0
#version 1
4
0
uniform
sampler2D
texSampler2D
;
uniform
sampler2D
texSampler2D
;
varying
vec4
color
;
in
vec4
color
;
varying
float
alpha
;
in
float
alpha
;
varying
vec4
gl_
TexCoord
[
6
];
in
vec4
TexCoord
[
6
];
varying
vec4
userIn
[
2
];
in
vec4
userIn
[
2
];
uniform
int
a
,
b
;
uniform
int
a
,
b
;
void
main
()
void
main
()
{
{
vec4
texColor
=
texture
(
texSampler2D
,
vec2
(
userIn
[
b
]
+
gl_TexCoord
[
a
]
+
gl_
TexCoord
[
5
]));
vec4
texColor
=
texture
(
texSampler2D
,
vec2
(
userIn
[
b
]
+
TexCoord
[
a
]
+
TexCoord
[
5
]));
texColor
+=
color
;
texColor
+=
color
;
texColor
.
a
=
alpha
;
texColor
.
a
=
alpha
;
gl_FragColor
=
gl_TexCoord
[
0
]
+
gl_
TexCoord
[
b
]
+
texColor
+
userIn
[
a
];
gl_FragColor
=
TexCoord
[
0
]
+
TexCoord
[
b
]
+
texColor
+
userIn
[
a
];
}
}
Test/spv.voidFunction.frag
View file @
f6eae2a5
#version 1
2
0
#version 1
4
0
uniform
vec4
bigColor
;
uniform
vec4
bigColor
;
varying
vec4
BaseColor
;
in
vec4
BaseColor
;
uniform
float
d
;
uniform
float
d
;
float
bar
=
2
.
0
;
float
bar
=
2
.
0
;
...
...
Test/spv.while-continue-break.vert
View file @
f6eae2a5
#version 3
0
0 es
#version 3
1
0 es
void
main
()
{
void
main
()
{
int
i
=
0
;
int
i
=
0
;
int
A
,
B
,
C
,
D
;
int
A
,
B
,
C
,
D
;
...
...
Test/spv.while-simple.vert
View file @
f6eae2a5
#version 3
0
0 es
#version 3
1
0 es
void
main
()
{
void
main
()
{
int
i
=
0
;
int
i
=
0
;
while
(
i
<
10
)
{
while
(
i
<
10
)
{
...
...
Test/spv.whileLoop.frag
View file @
f6eae2a5
#version 1
1
0
#version 1
4
0
uniform
vec4
bigColor
;
uniform
vec4
bigColor
;
varying
vec4
BaseColor
;
in
vec4
BaseColor
;
uniform
float
d
;
uniform
float
d
;
void
main
()
void
main
()
...
...
glslang/MachineIndependent/ParseHelper.cpp
View file @
f6eae2a5
This diff is collapsed.
Click to expand it.
glslang/MachineIndependent/ShaderLang.cpp
View file @
f6eae2a5
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment