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

@@ -7,7 +7,7 @@ Linked fragment stage:
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 213
// Id's are bound by 205
Capability Shader
Capability ClipDistance
@@ -18,7 +18,7 @@ Linked fragment stage:
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 17 68 79 99 173 184 185 186
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginUpperLeft
Source GLSL 140
SourceExtension "GL_ARB_gpu_shader5"
SourceExtension "GL_ARB_shader_texture_lod"
@@ -61,14 +61,25 @@ Linked fragment stage:
Name 199 "s2DRS"
Name 203 "s1D"
Name 204 "s2DS"
Name 206 "f"
Name 208 "v2"
Name 210 "v3"
Name 212 "v4"
Decorate 21(samp2D) DescriptorSet 0
Decorate 37(samp2DA) DescriptorSet 0
Decorate 47(samp2DR) DescriptorSet 0
Decorate 55(samp2DS) DescriptorSet 0
Decorate 72(Sca) DescriptorSet 0
Decorate 87(Isca) DescriptorSet 0
Decorate 103(Usca) DescriptorSet 0
Decorate 118(Scas) DescriptorSet 0
Decorate 167(sampC) DescriptorSet 0
Decorate 173(gl_ClipDistance) BuiltIn ClipDistance
Decorate 184(fflat) Flat
Decorate 186(fnop) NoPerspective
Decorate 193(bounds) DescriptorSet 0
Decorate 193(bounds) Binding 0
Decorate 194(s2D) DescriptorSet 0
Decorate 195(s2DR) DescriptorSet 0
Decorate 199(s2DRS) DescriptorSet 0
Decorate 203(s1D) DescriptorSet 0
Decorate 204(s2DS) DescriptorSet 0
2: TypeVoid
3: TypeFunction 2
14: TypeFloat 32
@@ -177,14 +188,6 @@ Linked fragment stage:
202: TypePointer UniformConstant 201
203(s1D): 202(ptr) Variable UniformConstant
204(s2DS): 54(ptr) Variable UniformConstant
205: TypePointer UniformConstant 14(float)
206(f): 205(ptr) Variable UniformConstant
207: TypePointer UniformConstant 23(fvec2)
208(v2): 207(ptr) Variable UniformConstant
209: TypePointer UniformConstant 39(fvec3)
210(v3): 209(ptr) Variable UniformConstant
211: TypePointer UniformConstant 15(fvec4)
212(v4): 211(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
168: 165 Load 167(sampC)