spv.test.frag | |
Linked fragment stage: | |
// Module Version 99 | |
// Generated by (magic number): 51a00bb | |
// Id's are bound by 54 | |
Source GLSL 110 | |
1: ExtInstImport "GLSL.std.450" | |
MemoryModel Logical GLSL450 | |
EntryPoint Fragment 4 | |
Name 4 "main" | |
Name 9 "blendscale" | |
Name 13 "v" | |
Name 16 "texSampler2D" | |
Name 20 "t" | |
Name 23 "scale" | |
Name 30 "w" | |
Name 33 "texSampler3D" | |
Name 37 "coords" | |
Name 43 "gl_FragColor" | |
Name 46 "u" | |
Name 49 "blend" | |
Decorate 20(t) Smooth | |
Decorate 37(coords) Smooth | |
Decorate 43(gl_FragColor) BuiltIn FragColor | |
2: TypeVoid | |
3: TypeFunction 2 | |
7: TypeFloat 32 | |
8: TypePointer Function 7(float) | |
10: 7(float) Constant 1071971828 | |
11: TypeVector 7(float) 4 | |
12: TypePointer Function 11(fvec4) | |
14: TypeSampler7(float) 2D filter+texture | |
15: TypePointer UniformConstant 14 | |
16(texSampler2D): 15(ptr) Variable UniformConstant | |
18: TypeVector 7(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: TypeSampler7(float) 3D filter+texture | |
32: TypePointer UniformConstant 31 | |
33(texSampler3D): 32(ptr) Variable UniformConstant | |
35: TypeVector 7(float) 3 | |
36: TypePointer Input 35(fvec3) | |
37(coords): 36(ptr) Variable Input | |
42: TypePointer Output 11(fvec4) | |
43(gl_FragColor): 42(ptr) Variable Output | |
45: TypePointer UniformConstant 11(fvec4) | |
46(u): 45(ptr) Variable UniformConstant | |
48: TypePointer UniformConstant 7(float) | |
49(blend): 48(ptr) Variable UniformConstant | |
4(main): 2 Function None 3 | |
5: Label | |
9(blendscale): 8(ptr) Variable Function | |
13(v): 12(ptr) Variable Function | |
30(w): 12(ptr) Variable Function | |
Store 9(blendscale) 10 | |
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: 11(fvec4) TextureSample 17 27 | |
29: 11(fvec4) VectorShuffle 28 28 3 2 1 0 | |
Store 13(v) 29 | |
34: 31 Load 33(texSampler3D) | |
38: 35(fvec3) Load 37(coords) | |
39: 11(fvec4) TextureSample 34 38 | |
40: 11(fvec4) Load 13(v) | |
41: 11(fvec4) FAdd 39 40 | |
Store 30(w) 41 | |
44: 11(fvec4) Load 30(w) | |
47: 11(fvec4) Load 46(u) | |
50: 7(float) Load 49(blend) | |
51: 7(float) Load 9(blendscale) | |
52: 7(float) FMul 50 51 | |
53: 11(fvec4) ExtInst 1(GLSL.std.450) 36(mix) 44 47 52 | |
Store 43(gl_FragColor) 53 | |
Branch 6 | |
6: Label | |
Return | |
FunctionEnd |