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

@@ -5,13 +5,13 @@ Linked fragment stage:
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 109
// Id's are bound by 108
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 30 69
ExecutionMode 4 OriginLowerLeft
EntryPoint Fragment 4 "main" 14 30 69 107
ExecutionMode 4 OriginUpperLeft
Source GLSL 140
Name 4 "main"
Name 8 "blendscale"
@@ -27,7 +27,7 @@ Linked fragment stage:
Name 69 "gl_FragColor"
Name 81 "c"
Name 83 "rep"
Name 108 "blend"
Name 107 "blend"
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@@ -35,8 +35,8 @@ Linked fragment stage:
9: 6(float) Constant 1071971828
10: TypeVector 6(float) 4
11: TypePointer Function 10(fvec4)
13: TypePointer UniformConstant 10(fvec4)
14(u): 13(ptr) Variable UniformConstant
13: TypePointer Input 10(fvec4)
14(u): 13(ptr) Variable Input
25: TypeInt 32 0
26: 25(int) Constant 2
28: TypeVector 6(float) 2
@@ -45,8 +45,8 @@ Linked fragment stage:
35: 25(int) Constant 0
40: 25(int) Constant 1
54: TypeBool
55: TypePointer UniformConstant 54(bool)
56(p): 55(ptr) Variable UniformConstant
55: TypePointer Private 54(bool)
56(p): 55(ptr) Variable Private
60: TypePointer Input 6(float)
68: TypePointer Output 10(fvec4)
69(gl_FragColor): 68(ptr) Variable Output
@@ -56,8 +56,7 @@ Linked fragment stage:
86: 10(fvec4) ConstantComposite 84 84 84 85
92: 6(float) Constant 3212836864
102: 6(float) Constant 1079613850
107: TypePointer UniformConstant 6(float)
108(blend): 107(ptr) Variable UniformConstant
107(blend): 60(ptr) Variable Input
4(main): 2 Function None 3
5: Label
8(blendscale): 7(ptr) Variable Function