SPV: Implement Vulkan version of GLSL (KHR_vulkan_glsl).
This commit is contained in:
parent
019f08fcd8
commit
6c292d3ba7
200 changed files with 7841 additions and 5577 deletions
|
|
@ -7,26 +7,28 @@ Linked fragment stage:
|
|||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 56
|
||||
// Id's are bound by 55
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 20 38 44
|
||||
ExecutionMode 4 OriginLowerLeft
|
||||
EntryPoint Fragment 4 "main" 20 22 37 43 46 49
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Source GLSL 400
|
||||
Name 4 "main"
|
||||
Name 8 "blendscale"
|
||||
Name 12 "v"
|
||||
Name 16 "texSampler2D"
|
||||
Name 20 "t"
|
||||
Name 23 "scale"
|
||||
Name 30 "w"
|
||||
Name 34 "texSampler3D"
|
||||
Name 38 "coords"
|
||||
Name 44 "gl_FragColor"
|
||||
Name 47 "u"
|
||||
Name 50 "blend"
|
||||
Name 22 "scale"
|
||||
Name 29 "w"
|
||||
Name 33 "texSampler3D"
|
||||
Name 37 "coords"
|
||||
Name 43 "gl_FragColor"
|
||||
Name 46 "u"
|
||||
Name 49 "blend"
|
||||
Decorate 16(texSampler2D) DescriptorSet 0
|
||||
Decorate 33(texSampler3D) DescriptorSet 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
@ -41,49 +43,48 @@ Linked fragment stage:
|
|||
18: TypeVector 6(float) 2
|
||||
19: TypePointer Input 18(fvec2)
|
||||
20(t): 19(ptr) Variable Input
|
||||
22: TypePointer UniformConstant 18(fvec2)
|
||||
23(scale): 22(ptr) Variable UniformConstant
|
||||
31: TypeImage 6(float) 3D sampled format:Unknown
|
||||
32: TypeSampledImage 31
|
||||
33: TypePointer UniformConstant 32
|
||||
34(texSampler3D): 33(ptr) Variable UniformConstant
|
||||
36: TypeVector 6(float) 3
|
||||
37: TypePointer Input 36(fvec3)
|
||||
38(coords): 37(ptr) Variable Input
|
||||
43: TypePointer Output 10(fvec4)
|
||||
44(gl_FragColor): 43(ptr) Variable Output
|
||||
46: TypePointer UniformConstant 10(fvec4)
|
||||
47(u): 46(ptr) Variable UniformConstant
|
||||
49: TypePointer UniformConstant 6(float)
|
||||
50(blend): 49(ptr) Variable UniformConstant
|
||||
22(scale): 19(ptr) Variable Input
|
||||
30: TypeImage 6(float) 3D sampled format:Unknown
|
||||
31: TypeSampledImage 30
|
||||
32: TypePointer UniformConstant 31
|
||||
33(texSampler3D): 32(ptr) Variable UniformConstant
|
||||
35: TypeVector 6(float) 3
|
||||
36: TypePointer Input 35(fvec3)
|
||||
37(coords): 36(ptr) Variable Input
|
||||
42: TypePointer Output 10(fvec4)
|
||||
43(gl_FragColor): 42(ptr) Variable Output
|
||||
45: TypePointer Input 10(fvec4)
|
||||
46(u): 45(ptr) Variable Input
|
||||
48: TypePointer Input 6(float)
|
||||
49(blend): 48(ptr) Variable Input
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
8(blendscale): 7(ptr) Variable Function
|
||||
12(v): 11(ptr) Variable Function
|
||||
30(w): 11(ptr) Variable Function
|
||||
29(w): 11(ptr) Variable Function
|
||||
Store 8(blendscale) 9
|
||||
17: 14 Load 16(texSampler2D)
|
||||
21: 18(fvec2) Load 20(t)
|
||||
24: 18(fvec2) Load 23(scale)
|
||||
25: 18(fvec2) FAdd 21 24
|
||||
26: 18(fvec2) Load 23(scale)
|
||||
27: 18(fvec2) FDiv 25 26
|
||||
28: 10(fvec4) ImageSampleImplicitLod 17 27
|
||||
29: 10(fvec4) VectorShuffle 28 28 3 2 1 0
|
||||
Store 12(v) 29
|
||||
35: 32 Load 34(texSampler3D)
|
||||
39: 36(fvec3) Load 38(coords)
|
||||
40: 10(fvec4) ImageSampleImplicitLod 35 39
|
||||
41: 10(fvec4) Load 12(v)
|
||||
42: 10(fvec4) FAdd 40 41
|
||||
Store 30(w) 42
|
||||
45: 10(fvec4) Load 30(w)
|
||||
48: 10(fvec4) Load 47(u)
|
||||
51: 6(float) Load 50(blend)
|
||||
52: 6(float) Load 8(blendscale)
|
||||
53: 6(float) FMul 51 52
|
||||
54: 10(fvec4) CompositeConstruct 53 53 53 53
|
||||
55: 10(fvec4) ExtInst 1(GLSL.std.450) 46(FMix) 45 48 54
|
||||
Store 44(gl_FragColor) 55
|
||||
23: 18(fvec2) Load 22(scale)
|
||||
24: 18(fvec2) FAdd 21 23
|
||||
25: 18(fvec2) Load 22(scale)
|
||||
26: 18(fvec2) FDiv 24 25
|
||||
27: 10(fvec4) ImageSampleImplicitLod 17 26
|
||||
28: 10(fvec4) VectorShuffle 27 27 3 2 1 0
|
||||
Store 12(v) 28
|
||||
34: 31 Load 33(texSampler3D)
|
||||
38: 35(fvec3) Load 37(coords)
|
||||
39: 10(fvec4) ImageSampleImplicitLod 34 38
|
||||
40: 10(fvec4) Load 12(v)
|
||||
41: 10(fvec4) FAdd 39 40
|
||||
Store 29(w) 41
|
||||
44: 10(fvec4) Load 29(w)
|
||||
47: 10(fvec4) Load 46(u)
|
||||
50: 6(float) Load 49(blend)
|
||||
51: 6(float) Load 8(blendscale)
|
||||
52: 6(float) FMul 50 51
|
||||
53: 10(fvec4) CompositeConstruct 52 52 52 52
|
||||
54: 10(fvec4) ExtInst 1(GLSL.std.450) 46(FMix) 44 47 53
|
||||
Store 43(gl_FragColor) 54
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue