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

@ -12,8 +12,8 @@ Linked fragment stage:
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 39 44 78
ExecutionMode 4 OriginLowerLeft
EntryPoint Fragment 4 "main" 39 44 68 70 72 78
ExecutionMode 4 OriginUpperLeft
Source GLSL 430
Name 4 "main"
Name 17 "foo(f1[5][7];"
@ -33,8 +33,14 @@ Linked fragment stage:
Name 94 "uAofA"
MemberName 94(uAofA) 0 "f"
Name 98 "nameAofA"
Decorate 94(uAofA) GLSLShared
Decorate 68(i) Flat
Decorate 70(j) Flat
Decorate 72(k) Flat
Decorate 92 ArrayStride 16
Decorate 93 ArrayStride 64
MemberDecorate 94(uAofA) 0 Offset 0
Decorate 94(uAofA) Block
Decorate 98(nameAofA) DescriptorSet 0
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@ -74,10 +80,10 @@ Linked fragment stage:
64: TypeArray 62 63
65: TypePointer Private 64
66(many): 65(ptr) Variable Private
67: TypePointer UniformConstant 21(int)
68(i): 67(ptr) Variable UniformConstant
70(j): 67(ptr) Variable UniformConstant
72(k): 67(ptr) Variable UniformConstant
67: TypePointer Input 21(int)
68(i): 67(ptr) Variable Input
70(j): 67(ptr) Variable Input
72(k): 67(ptr) Variable Input
77: TypePointer Input 6(float)
78(infloat): 77(ptr) Variable Input
80: TypePointer Private 6(float)