SPV: Implement Vulkan version of GLSL (KHR_vulkan_glsl).
This commit is contained in:
@@ -7,12 +7,12 @@ Linked vertex stage:
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 28
|
||||
// Id's are bound by 24
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Vertex 4 "main" 9 11 15 21 26 27
|
||||
EntryPoint Vertex 4 "main" 9 11 15 18 21
|
||||
Source GLSL 140
|
||||
Name 4 "main"
|
||||
Name 9 "uv"
|
||||
@@ -20,11 +20,7 @@ Linked vertex stage:
|
||||
Name 15 "gl_Position"
|
||||
Name 18 "transform"
|
||||
Name 21 "position"
|
||||
Name 26 "gl_VertexID"
|
||||
Name 27 "gl_InstanceID"
|
||||
Decorate 15(gl_Position) BuiltIn Position
|
||||
Decorate 26(gl_VertexID) BuiltIn VertexId
|
||||
Decorate 27(gl_InstanceID) BuiltIn InstanceId
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -37,14 +33,10 @@ Linked vertex stage:
|
||||
14: TypePointer Output 13(fvec4)
|
||||
15(gl_Position): 14(ptr) Variable Output
|
||||
16: TypeMatrix 13(fvec4) 4
|
||||
17: TypePointer UniformConstant 16
|
||||
18(transform): 17(ptr) Variable UniformConstant
|
||||
17: TypePointer Input 16
|
||||
18(transform): 17(ptr) Variable Input
|
||||
20: TypePointer Input 13(fvec4)
|
||||
21(position): 20(ptr) Variable Input
|
||||
24: TypeInt 32 1
|
||||
25: TypePointer Input 24(int)
|
||||
26(gl_VertexID): 25(ptr) Variable Input
|
||||
27(gl_InstanceID): 25(ptr) Variable Input
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
12: 7(fvec2) Load 11(uv_in)
|
||||
|
||||
Reference in New Issue
Block a user