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

@@ -3,46 +3,45 @@ spv.voidFunction.frag
Linked fragment stage:
// Module Version 99
// Generated by (magic number): 51a00bb
// Id's are bound by 42
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 44
Source GLSL 120
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main"
EntryPoint Fragment 4 "main" 41
ExecutionMode 4 OriginLowerLeft
Source GLSL 120
Name 4 "main"
Name 6 "foo("
Name 8 "foo2("
Name 12 "bar"
Name 22 "outColor"
Name 24 "bigColor"
Name 35 "gl_FragColor"
Name 39 "BaseColor"
Name 41 "d"
Decorate 35(gl_FragColor) BuiltIn FragColor
Decorate 39(BaseColor) Smooth
Decorate 39(BaseColor) NoStaticUse
Decorate 41(d) NoStaticUse
Name 37 "gl_FragColor"
Name 41 "BaseColor"
Name 43 "d"
2: TypeVoid
3: TypeFunction 2
10: TypeFloat 32
11: TypePointer PrivateGlobal 10(float)
12(bar): 11(ptr) Variable PrivateGlobal
11: TypePointer Private 10(float)
12(bar): 11(ptr) Variable Private
13: 10(float) Constant 1073741824
15: 10(float) Constant 1065353216
20: TypeVector 10(float) 4
21: TypePointer Function 20(fvec4)
23: TypePointer UniformConstant 20(fvec4)
24(bigColor): 23(ptr) Variable UniformConstant
34: TypePointer Output 20(fvec4)
35(gl_FragColor): 34(ptr) Variable Output
38: TypePointer Input 20(fvec4)
39(BaseColor): 38(ptr) Variable Input
40: TypePointer UniformConstant 10(float)
41(d): 40(ptr) Variable UniformConstant
29: TypeInt 32 0
30: 29(int) Constant 0
31: TypePointer Function 10(float)
36: TypePointer Output 20(fvec4)
37(gl_FragColor): 36(ptr) Variable Output
40: TypePointer Input 20(fvec4)
41(BaseColor): 40(ptr) Variable Input
42: TypePointer UniformConstant 10(float)
43(d): 42(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
22(outColor): 21(ptr) Variable Function
@@ -52,14 +51,13 @@ Linked fragment stage:
26: 2 FunctionCall 6(foo()
27: 2 FunctionCall 8(foo2()
28: 10(float) Load 12(bar)
29: 20(fvec4) Load 22(outColor)
30: 10(float) CompositeExtract 29 0
31: 10(float) FAdd 30 28
32: 20(fvec4) Load 22(outColor)
33: 20(fvec4) CompositeInsert 31 32 0
Store 22(outColor) 33
36: 20(fvec4) Load 22(outColor)
Store 35(gl_FragColor) 36
32: 31(ptr) AccessChain 22(outColor) 30
33: 10(float) Load 32
34: 10(float) FAdd 33 28
35: 31(ptr) AccessChain 22(outColor) 30
Store 35 34
38: 20(fvec4) Load 22(outColor)
Store 37(gl_FragColor) 38
Return
FunctionEnd
6(foo(): 2 Function None 3