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,20 +5,20 @@ Linked fragment stage:
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 36
// Id's are bound by 35
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 11 34
ExecutionMode 4 OriginLowerLeft
EntryPoint Fragment 4 "main" 11 24 28 33
ExecutionMode 4 OriginUpperLeft
Source GLSL 140
Name 4 "main"
Name 9 "color"
Name 11 "BaseColor"
Name 24 "d"
Name 29 "bigColor"
Name 34 "gl_FragColor"
Name 28 "bigColor"
Name 33 "gl_FragColor"
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@@ -29,13 +29,12 @@ Linked fragment stage:
18: TypeInt 32 0
19: 18(int) Constant 0
20: TypePointer Function 6(float)
23: TypePointer UniformConstant 6(float)
24(d): 23(ptr) Variable UniformConstant
23: TypePointer Input 6(float)
24(d): 23(ptr) Variable Input
26: TypeBool
28: TypePointer UniformConstant 7(fvec4)
29(bigColor): 28(ptr) Variable UniformConstant
33: TypePointer Output 7(fvec4)
34(gl_FragColor): 33(ptr) Variable Output
28(bigColor): 10(ptr) Variable Input
32: TypePointer Output 7(fvec4)
33(gl_FragColor): 32(ptr) Variable Output
4(main): 2 Function None 3
5: Label
9(color): 8(ptr) Variable Function
@@ -52,15 +51,15 @@ Linked fragment stage:
27: 26(bool) FOrdLessThan 22 25
BranchConditional 27 14 15
14: Label
30: 7(fvec4) Load 29(bigColor)
31: 7(fvec4) Load 9(color)
32: 7(fvec4) FAdd 31 30
Store 9(color) 32
29: 7(fvec4) Load 28(bigColor)
30: 7(fvec4) Load 9(color)
31: 7(fvec4) FAdd 30 29
Store 9(color) 31
Branch 16
16: Label
Branch 13
15: Label
35: 7(fvec4) Load 9(color)
Store 34(gl_FragColor) 35
34: 7(fvec4) Load 9(color)
Store 33(gl_FragColor) 34
Return
FunctionEnd