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

@ -1,19 +1,16 @@
spv.nonSquare.vert
WARNING: 0:3: attribute deprecated in version 130; may be removed in future release
WARNING: 0:4: attribute deprecated in version 130; may be removed in future release
Linked vertex stage:
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 94
// Id's are bound by 90
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 12 28 55 92 93
EntryPoint Vertex 4 "main" 12 22 28 55
Source GLSL 140
Name 4 "main"
Name 9 "a"
@ -23,11 +20,7 @@ Linked vertex stage:
Name 22 "m32"
Name 28 "gl_Position"
Name 55 "v4"
Name 92 "gl_VertexID"
Name 93 "gl_InstanceID"
Decorate 28(gl_Position) BuiltIn Position
Decorate 92(gl_VertexID) BuiltIn VertexId
Decorate 93(gl_InstanceID) BuiltIn InstanceId
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@ -39,8 +32,8 @@ Linked vertex stage:
14: TypeMatrix 10(fvec3) 2
15: TypePointer Function 14
20: TypeMatrix 7(fvec2) 3
21: TypePointer UniformConstant 20
22(m32): 21(ptr) Variable UniformConstant
21: TypePointer Output 20
22(m32): 21(ptr) Variable Output
26: TypeVector 6(float) 4
27: TypePointer Output 26(fvec4)
28(gl_Position): 27(ptr) Variable Output
@ -90,10 +83,6 @@ Linked vertex stage:
87: 6(float) Constant 1090519040
88: 7(fvec2) ConstantComposite 86 87
89: 79 ConstantComposite 82 84 85 88
90: TypeInt 32 1
91: TypePointer Input 90(int)
92(gl_VertexID): 91(ptr) Variable Input
93(gl_InstanceID): 91(ptr) Variable Input
4(main): 2 Function None 3
5: Label
9(a): 8(ptr) Variable Function