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,38 +5,47 @@ Linked fragment stage:
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 22
// Id's are bound by 26
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 12 18
ExecutionMode 4 OriginLowerLeft
EntryPoint Fragment 4 "main" 12 22
ExecutionMode 4 OriginUpperLeft
Source GLSL 140
Name 4 "main"
Name 12 "gl_FragData"
Name 15 "i"
Name 18 "Color"
Name 12 "fcolor"
Name 14 "b"
MemberName 14(b) 0 "i"
Name 16 "bName"
Name 22 "Color"
MemberDecorate 14(b) 0 Offset 0
Decorate 14(b) Block
Decorate 16(bName) DescriptorSet 0
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
7: TypeVector 6(float) 4
8: TypeInt 32 0
9: 8(int) Constant 32
9: 8(int) Constant 4
10: TypeArray 7(fvec4) 9
11: TypePointer Output 10
12(gl_FragData): 11(ptr) Variable Output
12(fcolor): 11(ptr) Variable Output
13: TypeInt 32 1
14: TypePointer UniformConstant 13(int)
15(i): 14(ptr) Variable UniformConstant
17: TypePointer Input 7(fvec4)
18(Color): 17(ptr) Variable Input
20: TypePointer Output 7(fvec4)
14(b): TypeStruct 13(int)
15: TypePointer Uniform 14(b)
16(bName): 15(ptr) Variable Uniform
17: 13(int) Constant 0
18: TypePointer Uniform 13(int)
21: TypePointer Input 7(fvec4)
22(Color): 21(ptr) Variable Input
24: TypePointer Output 7(fvec4)
4(main): 2 Function None 3
5: Label
16: 13(int) Load 15(i)
19: 7(fvec4) Load 18(Color)
21: 20(ptr) AccessChain 12(gl_FragData) 16
Store 21 19
19: 18(ptr) AccessChain 16(bName) 17
20: 13(int) Load 19
23: 7(fvec4) Load 22(Color)
25: 24(ptr) AccessChain 12(fcolor) 20
Store 25 23
Return
FunctionEnd