SPV: Implement Vulkan version of GLSL (KHR_vulkan_glsl).
This commit is contained in:
@@ -1,17 +1,20 @@
|
||||
spv.matFun.vert
|
||||
Warning, version 400 is not yet complete; most version-specific features are present, but some are missing.
|
||||
|
||||
|
||||
Linked vertex stage:
|
||||
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 97
|
||||
// Id's are bound by 103
|
||||
|
||||
Capability Shader
|
||||
Capability ClipDistance
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Vertex 4 "main" 72 76 95 96
|
||||
Source GLSL 140
|
||||
EntryPoint Vertex 4 "main" 76 81
|
||||
Source GLSL 400
|
||||
Name 4 "main"
|
||||
Name 14 "xf(mf33;vf3;"
|
||||
Name 12 "m"
|
||||
@@ -22,19 +25,32 @@ Linked vertex stage:
|
||||
Name 24 "m4"
|
||||
Name 25 "v"
|
||||
Name 65 "param"
|
||||
Name 72 "gl_Position"
|
||||
Name 74 "m4"
|
||||
Name 76 "v3"
|
||||
Name 77 "param"
|
||||
Name 79 "param"
|
||||
Name 83 "m3"
|
||||
Name 84 "param"
|
||||
Name 74 "gl_PerVertex"
|
||||
MemberName 74(gl_PerVertex) 0 "gl_Position"
|
||||
MemberName 74(gl_PerVertex) 1 "gl_PointSize"
|
||||
MemberName 74(gl_PerVertex) 2 "gl_ClipDistance"
|
||||
Name 76 ""
|
||||
Name 77 "bl"
|
||||
MemberName 77(bl) 0 "m4"
|
||||
MemberName 77(bl) 1 "m3"
|
||||
Name 79 "bName"
|
||||
Name 81 "v3"
|
||||
Name 82 "param"
|
||||
Name 86 "param"
|
||||
Name 95 "gl_VertexID"
|
||||
Name 96 "gl_InstanceID"
|
||||
Decorate 72(gl_Position) BuiltIn Position
|
||||
Decorate 95(gl_VertexID) BuiltIn VertexId
|
||||
Decorate 96(gl_InstanceID) BuiltIn InstanceId
|
||||
Name 89 "param"
|
||||
Name 93 "param"
|
||||
MemberDecorate 74(gl_PerVertex) 0 BuiltIn Position
|
||||
MemberDecorate 74(gl_PerVertex) 1 BuiltIn PointSize
|
||||
MemberDecorate 74(gl_PerVertex) 2 BuiltIn ClipDistance
|
||||
Decorate 74(gl_PerVertex) Block
|
||||
MemberDecorate 77(bl) 0 ColMajor
|
||||
MemberDecorate 77(bl) 0 Offset 0
|
||||
MemberDecorate 77(bl) 0 MatrixStride 16
|
||||
MemberDecorate 77(bl) 1 ColMajor
|
||||
MemberDecorate 77(bl) 1 Offset 64
|
||||
MemberDecorate 77(bl) 1 MatrixStride 16
|
||||
Decorate 77(bl) Block
|
||||
Decorate 79(bName) DescriptorSet 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -55,39 +71,45 @@ Linked vertex stage:
|
||||
43: 33(int) Constant 2
|
||||
47: 6(float) Constant 1065353216
|
||||
48: 6(float) Constant 0
|
||||
71: TypePointer Output 16(fvec4)
|
||||
72(gl_Position): 71(ptr) Variable Output
|
||||
73: TypePointer UniformConstant 17
|
||||
74(m4): 73(ptr) Variable UniformConstant
|
||||
75: TypePointer Input 7(fvec3)
|
||||
76(v3): 75(ptr) Variable Input
|
||||
82: TypePointer UniformConstant 8
|
||||
83(m3): 82(ptr) Variable UniformConstant
|
||||
94: TypePointer Input 33(int)
|
||||
95(gl_VertexID): 94(ptr) Variable Input
|
||||
96(gl_InstanceID): 94(ptr) Variable Input
|
||||
71: TypeInt 32 0
|
||||
72: 71(int) Constant 1
|
||||
73: TypeArray 6(float) 72
|
||||
74(gl_PerVertex): TypeStruct 16(fvec4) 6(float) 73
|
||||
75: TypePointer Output 74(gl_PerVertex)
|
||||
76: 75(ptr) Variable Output
|
||||
77(bl): TypeStruct 17 8
|
||||
78: TypePointer Uniform 77(bl)
|
||||
79(bName): 78(ptr) Variable Uniform
|
||||
80: TypePointer Input 7(fvec3)
|
||||
81(v3): 80(ptr) Variable Input
|
||||
83: TypePointer Uniform 17
|
||||
90: TypePointer Uniform 8
|
||||
101: TypePointer Output 16(fvec4)
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
77(param): 18(ptr) Variable Function
|
||||
79(param): 10(ptr) Variable Function
|
||||
84(param): 9(ptr) Variable Function
|
||||
82(param): 18(ptr) Variable Function
|
||||
86(param): 10(ptr) Variable Function
|
||||
78: 17 Load 74(m4)
|
||||
Store 77(param) 78
|
||||
80: 7(fvec3) Load 76(v3)
|
||||
Store 79(param) 80
|
||||
81: 7(fvec3) FunctionCall 26(mxv(mf44;vf3;) 77(param) 79(param)
|
||||
85: 8 Load 83(m3)
|
||||
Store 84(param) 85
|
||||
87: 7(fvec3) Load 76(v3)
|
||||
89(param): 9(ptr) Variable Function
|
||||
93(param): 10(ptr) Variable Function
|
||||
84: 83(ptr) AccessChain 79(bName) 34
|
||||
85: 17 Load 84
|
||||
Store 82(param) 85
|
||||
87: 7(fvec3) Load 81(v3)
|
||||
Store 86(param) 87
|
||||
88: 7(fvec3) FunctionCall 14(xf(mf33;vf3;) 84(param) 86(param)
|
||||
89: 7(fvec3) FAdd 81 88
|
||||
90: 6(float) CompositeExtract 89 0
|
||||
91: 6(float) CompositeExtract 89 1
|
||||
92: 6(float) CompositeExtract 89 2
|
||||
93: 16(fvec4) CompositeConstruct 90 91 92 47
|
||||
Store 72(gl_Position) 93
|
||||
88: 7(fvec3) FunctionCall 26(mxv(mf44;vf3;) 82(param) 86(param)
|
||||
91: 90(ptr) AccessChain 79(bName) 39
|
||||
92: 8 Load 91
|
||||
Store 89(param) 92
|
||||
94: 7(fvec3) Load 81(v3)
|
||||
Store 93(param) 94
|
||||
95: 7(fvec3) FunctionCall 14(xf(mf33;vf3;) 89(param) 93(param)
|
||||
96: 7(fvec3) FAdd 88 95
|
||||
97: 6(float) CompositeExtract 96 0
|
||||
98: 6(float) CompositeExtract 96 1
|
||||
99: 6(float) CompositeExtract 96 2
|
||||
100: 16(fvec4) CompositeConstruct 97 98 99 47
|
||||
102: 101(ptr) AccessChain 76 34
|
||||
Store 102 100
|
||||
Return
|
||||
FunctionEnd
|
||||
14(xf(mf33;vf3;): 7(fvec3) Function None 11
|
||||
|
||||
Reference in New Issue
Block a user