76 lines
3.3 KiB
Plaintext
Executable File
76 lines
3.3 KiB
Plaintext
Executable File
spv.flowControl.frag
|
|
|
|
Linked fragment stage:
|
|
|
|
|
|
// Module Version 10000
|
|
// Generated by (magic number): 80001
|
|
// Id's are bound by 41
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Fragment 4 "main" 11 18 37
|
|
ExecutionMode 4 OriginLowerLeft
|
|
Source GLSL 140
|
|
Name 4 "main"
|
|
Name 9 "color"
|
|
Name 11 "BaseColor"
|
|
Name 13 "color2"
|
|
Name 15 "otherColor"
|
|
Name 18 "c"
|
|
Name 21 "d"
|
|
Name 27 "bigColor"
|
|
Name 32 "smallColor"
|
|
Name 37 "gl_FragColor"
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeFloat 32
|
|
7: TypeVector 6(float) 4
|
|
8: TypePointer Function 7(fvec4)
|
|
10: TypePointer Input 7(fvec4)
|
|
11(BaseColor): 10(ptr) Variable Input
|
|
14: TypePointer UniformConstant 7(fvec4)
|
|
15(otherColor): 14(ptr) Variable UniformConstant
|
|
17: TypePointer Input 6(float)
|
|
18(c): 17(ptr) Variable Input
|
|
20: TypePointer UniformConstant 6(float)
|
|
21(d): 20(ptr) Variable UniformConstant
|
|
23: TypeBool
|
|
27(bigColor): 14(ptr) Variable UniformConstant
|
|
32(smallColor): 14(ptr) Variable UniformConstant
|
|
36: TypePointer Output 7(fvec4)
|
|
37(gl_FragColor): 36(ptr) Variable Output
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
9(color): 8(ptr) Variable Function
|
|
13(color2): 8(ptr) Variable Function
|
|
12: 7(fvec4) Load 11(BaseColor)
|
|
Store 9(color) 12
|
|
16: 7(fvec4) Load 15(otherColor)
|
|
Store 13(color2) 16
|
|
19: 6(float) Load 18(c)
|
|
22: 6(float) Load 21(d)
|
|
24: 23(bool) FOrdGreaterThan 19 22
|
|
SelectionMerge 26 None
|
|
BranchConditional 24 25 31
|
|
25: Label
|
|
28: 7(fvec4) Load 27(bigColor)
|
|
29: 7(fvec4) Load 9(color)
|
|
30: 7(fvec4) FAdd 29 28
|
|
Store 9(color) 30
|
|
Branch 26
|
|
31: Label
|
|
33: 7(fvec4) Load 32(smallColor)
|
|
34: 7(fvec4) Load 9(color)
|
|
35: 7(fvec4) FAdd 34 33
|
|
Store 9(color) 35
|
|
Branch 26
|
|
26: Label
|
|
38: 7(fvec4) Load 9(color)
|
|
39: 7(fvec4) Load 13(color2)
|
|
40: 7(fvec4) FMul 38 39
|
|
Store 37(gl_FragColor) 40
|
|
Return
|
|
FunctionEnd
|