SPV: Implement Vulkan version of GLSL (KHR_vulkan_glsl).

This commit is contained in:
John Kessenich 2016-02-15 20:58:50 -07:00
parent 019f08fcd8
commit 6c292d3ba7
200 changed files with 7841 additions and 5577 deletions

View file

@ -11,7 +11,7 @@ Linked fragment stage:
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 61 99
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginUpperLeft
Source GLSL 140
Name 4 "main"
Name 8 "s0"
@ -44,6 +44,7 @@ Linked fragment stage:
Name 99 "gl_FragColor"
Name 116 "samp2D"
Name 122 "foo2"
Decorate 116(samp2D) DescriptorSet 0
2: TypeVoid
3: TypeFunction 2
6: TypeInt 32 1
@ -55,11 +56,11 @@ Linked fragment stage:
12: 11(int) Constant 12
13: TypeArray 10(s2) 12
14(s3): TypeStruct 13 6(int) 7(float) 9(s1)
15: TypePointer UniformConstant 14(s3)
16(foo3): 15(ptr) Variable UniformConstant
15: TypePointer Private 14(s3)
16(foo3): 15(ptr) Variable Private
17: 6(int) Constant 0
18: 6(int) Constant 9
19: TypePointer UniformConstant 6(int)
19: TypePointer Private 6(int)
22: TypeBool
26: TypePointer Function 10(s2)
28: 6(int) Constant 1
@ -78,8 +79,8 @@ Linked fragment stage:
44: TypeArray 9(s1) 43
45: TypePointer Function 44
47: 6(int) Constant 6
48: TypePointer UniformConstant 9(s1)
49(foo1): 48(ptr) Variable UniformConstant
48: TypePointer Private 9(s1)
49(foo1): 48(ptr) Variable Private
52: TypePointer Function 8(s0)
54(s00): TypeStruct 8(s0)
55: TypePointer Function 54(s00)
@ -90,15 +91,15 @@ Linked fragment stage:
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
70: TypePointer Private 8(s0)
71(foo0): 70(ptr) Variable Private
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
85: TypePointer Private 54(s00)
86(foo00): 85(ptr) Variable Private
88: TypePointer Function 6(int)
91: 6(int) Constant 5
97: TypeVector 7(float) 4
@ -109,8 +110,8 @@ Linked fragment stage:
114: TypeSampledImage 113
115: TypePointer UniformConstant 114
116(samp2D): 115(ptr) Variable UniformConstant
121: TypePointer UniformConstant 10(s2)
122(foo2): 121(ptr) Variable UniformConstant
121: TypePointer Private 10(s2)
122(foo2): 121(ptr) Variable Private
4(main): 2 Function None 3
5: Label
27(locals2): 26(ptr) Variable Function