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:3: 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 61
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 60
Source GLSL 130
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main"
EntryPoint Fragment 4 "main" 54
ExecutionMode 4 OriginLowerLeft
Source GLSL 130
Name 4 "main"
Name 8 "scale"
Name 18 "lunarStruct1"
@@ -26,13 +26,10 @@ Linked fragment stage:
MemberName 21(lunarStruct2) 1 "f"
MemberName 21(lunarStruct2) 2 "s1_1"
Name 24 "foo2"
Name 46 "gl_FragColor"
Name 51 "sampler"
Name 55 "coord"
Name 60 "foo"
Decorate 46(gl_FragColor) BuiltIn FragColor
Decorate 55(coord) Smooth
Decorate 60(foo) NoStaticUse
Name 45 "gl_FragColor"
Name 50 "samp2D"
Name 54 "coord"
Name 59 "foo"
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@@ -59,20 +56,20 @@ Linked fragment stage:
28: TypePointer UniformConstant 10(int)
31: TypeBool
35: 10(int) Constant 2
36: TypePointer UniformConstant 16(fvec4)
36: 11(int) Constant 0
37: TypePointer UniformConstant 6(float)
41: 10(int) Constant 1
42: TypePointer UniformConstant 6(float)
45: TypePointer Output 16(fvec4)
46(gl_FragColor): 45(ptr) Variable Output
48: TypeImage 6(float) 2D sampled format:Unknown
49: TypeSampledImage 48
50: TypePointer UniformConstant 49
51(sampler): 50(ptr) Variable UniformConstant
53: TypeVector 6(float) 2
54: TypePointer Input 53(fvec2)
55(coord): 54(ptr) Variable Input
59: TypePointer UniformConstant 18(lunarStruct1)
60(foo): 59(ptr) Variable UniformConstant
44: TypePointer Output 16(fvec4)
45(gl_FragColor): 44(ptr) Variable Output
47: TypeImage 6(float) 2D sampled format:Unknown
48: TypeSampledImage 47
49: TypePointer UniformConstant 48
50(samp2D): 49(ptr) Variable UniformConstant
52: TypeVector 6(float) 2
53: TypePointer Input 52(fvec2)
54(coord): 53(ptr) Variable Input
58: TypePointer UniformConstant 18(lunarStruct1)
59(foo): 58(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
8(scale): 7(ptr) Variable Function
@@ -83,22 +80,21 @@ Linked fragment stage:
SelectionMerge 34 None
BranchConditional 32 33 40
33: Label
37: 36(ptr) AccessChain 24(foo2) 25 35 35 35 25
38: 16(fvec4) Load 37
39: 6(float) CompositeExtract 38 0
38: 37(ptr) AccessChain 24(foo2) 25 35 35 35 25 36
39: 6(float) Load 38
Store 8(scale) 39
Branch 34
40: Label
43: 42(ptr) AccessChain 24(foo2) 25 35 35 41 25
44: 6(float) Load 43
Store 8(scale) 44
42: 37(ptr) AccessChain 24(foo2) 25 35 35 41 25
43: 6(float) Load 42
Store 8(scale) 43
Branch 34
34: Label
47: 6(float) Load 8(scale)
52: 49 Load 51(sampler)
56: 53(fvec2) Load 55(coord)
57: 16(fvec4) ImageSampleImplicitLod 52 56
58: 16(fvec4) VectorTimesScalar 57 47
Store 46(gl_FragColor) 58
46: 6(float) Load 8(scale)
51: 48 Load 50(samp2D)
55: 52(fvec2) Load 54(coord)
56: 16(fvec4) ImageSampleImplicitLod 51 55
57: 16(fvec4) VectorTimesScalar 56 46
Store 45(gl_FragColor) 57
Return
FunctionEnd