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

@@ -16,8 +16,8 @@ Linked fragment stage:
Capability SampledCubeArray
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 345
ExecutionMode 4 OriginLowerLeft
EntryPoint Fragment 4 "main" 33 36 51 95 345
ExecutionMode 4 OriginUpperLeft
Source GLSL 450
SourceExtension "GL_ARB_sparse_texture_clamp"
Name 4 "main"
@@ -45,6 +45,17 @@ Linked fragment stage:
Name 286 "s2DRectShadow"
Name 305 "is2DArray"
Name 345 "outColor"
Decorate 29(s2D) DescriptorSet 0
Decorate 47(s3D) DescriptorSet 0
Decorate 63(isCube) DescriptorSet 0
Decorate 76(s2DShadow) DescriptorSet 0
Decorate 92(sCubeArrayShadow) DescriptorSet 0
Decorate 154(us2DRect) DescriptorSet 0
Decorate 170(s2DArrayShadow) DescriptorSet 0
Decorate 218(sCubeShadow) DescriptorSet 0
Decorate 235(usCubeArray) DescriptorSet 0
Decorate 286(s2DRectShadow) DescriptorSet 0
Decorate 305(is2DArray) DescriptorSet 0
2: TypeVoid
3: TypeFunction 2
6: TypeInt 32 1
@@ -68,18 +79,18 @@ Linked fragment stage:
28: TypePointer UniformConstant 27
29(s2D): 28(ptr) Variable UniformConstant
31: TypeVector 10(float) 2
32: TypePointer UniformConstant 31(fvec2)
33(c2): 32(ptr) Variable UniformConstant
35: TypePointer UniformConstant 10(float)
36(lodClamp): 35(ptr) Variable UniformConstant
32: TypePointer Input 31(fvec2)
33(c2): 32(ptr) Variable Input
35: TypePointer Input 10(float)
36(lodClamp): 35(ptr) Variable Input
38(ResType): TypeStruct 6(int) 11(fvec4)
44: TypeImage 10(float) 3D sampled format:Unknown
45: TypeSampledImage 44
46: TypePointer UniformConstant 45
47(s3D): 46(ptr) Variable UniformConstant
49: TypeVector 10(float) 3
50: TypePointer UniformConstant 49(fvec3)
51(c3): 50(ptr) Variable UniformConstant
50: TypePointer Input 49(fvec3)
51(c3): 50(ptr) Variable Input
54: 10(float) Constant 1073741824
60: TypeImage 6(int) Cube sampled format:Unknown
61: TypeSampledImage 60
@@ -96,8 +107,8 @@ Linked fragment stage:
90: TypeSampledImage 89
91: TypePointer UniformConstant 90
92(sCubeArrayShadow): 91(ptr) Variable UniformConstant
94: TypePointer UniformConstant 11(fvec4)
95(c4): 94(ptr) Variable UniformConstant
94: TypePointer Input 11(fvec4)
95(c4): 94(ptr) Variable Input
97: 10(float) Constant 1065353216
142: TypeVector 6(int) 3
143: 6(int) Constant 2