2015-12-11 01:01:54 +00:00
|
|
|
spv.100ops.frag
|
2018-02-01 01:35:56 +00:00
|
|
|
// Module Version 10000
|
2018-02-06 15:06:36 +00:00
|
|
|
// Generated by (magic number): 80004
|
2016-02-16 03:58:50 +00:00
|
|
|
// Id's are bound by 49
|
2015-12-11 01:01:54 +00:00
|
|
|
|
|
|
|
Capability Shader
|
|
|
|
1: ExtInstImport "GLSL.std.450"
|
|
|
|
MemoryModel Logical GLSL450
|
2016-02-16 03:58:50 +00:00
|
|
|
EntryPoint Fragment 4 "main" 21 26 37
|
|
|
|
ExecutionMode 4 OriginUpperLeft
|
2016-01-23 00:47:22 +00:00
|
|
|
Source ESSL 310
|
2015-12-11 01:01:54 +00:00
|
|
|
Name 4 "main"
|
|
|
|
Name 8 "foo("
|
|
|
|
Name 11 "face1"
|
|
|
|
Name 13 "face2"
|
|
|
|
Name 17 "z"
|
|
|
|
Name 21 "low"
|
|
|
|
Name 26 "high"
|
2016-02-16 03:58:50 +00:00
|
|
|
Name 37 "Color"
|
2016-02-02 19:37:46 +00:00
|
|
|
Decorate 8(foo() RelaxedPrecision
|
2015-12-11 01:01:54 +00:00
|
|
|
Decorate 11(face1) RelaxedPrecision
|
|
|
|
Decorate 13(face2) RelaxedPrecision
|
|
|
|
Decorate 17(z) RelaxedPrecision
|
|
|
|
Decorate 21(low) RelaxedPrecision
|
2016-02-02 19:37:46 +00:00
|
|
|
Decorate 22 RelaxedPrecision
|
|
|
|
Decorate 23 RelaxedPrecision
|
|
|
|
Decorate 25 RelaxedPrecision
|
2015-12-11 01:01:54 +00:00
|
|
|
Decorate 26(high) RelaxedPrecision
|
2016-02-02 19:37:46 +00:00
|
|
|
Decorate 27 RelaxedPrecision
|
|
|
|
Decorate 32 RelaxedPrecision
|
2016-02-16 03:58:50 +00:00
|
|
|
Decorate 34 RelaxedPrecision
|
|
|
|
Decorate 37(Color) RelaxedPrecision
|
2016-02-02 19:37:46 +00:00
|
|
|
Decorate 38 RelaxedPrecision
|
|
|
|
Decorate 39 RelaxedPrecision
|
|
|
|
Decorate 40 RelaxedPrecision
|
|
|
|
Decorate 41 RelaxedPrecision
|
|
|
|
Decorate 42 RelaxedPrecision
|
|
|
|
Decorate 43 RelaxedPrecision
|
|
|
|
Decorate 44 RelaxedPrecision
|
|
|
|
Decorate 45 RelaxedPrecision
|
2016-02-16 03:58:50 +00:00
|
|
|
Decorate 46 RelaxedPrecision
|
2015-12-11 01:01:54 +00:00
|
|
|
2: TypeVoid
|
|
|
|
3: TypeFunction 2
|
|
|
|
6: TypeFloat 32
|
|
|
|
7: TypeFunction 6(float)
|
|
|
|
10: TypePointer Private 6(float)
|
|
|
|
11(face1): 10(ptr) Variable Private
|
|
|
|
12: 6(float) Constant 1093664768
|
|
|
|
13(face2): 10(ptr) Variable Private
|
|
|
|
14: 6(float) Constant 3221225472
|
|
|
|
15: TypeInt 32 1
|
|
|
|
16: TypePointer Function 15(int)
|
|
|
|
18: 15(int) Constant 3
|
2016-02-16 03:58:50 +00:00
|
|
|
19: 6(float) Constant 1073741824
|
|
|
|
20: TypePointer Input 6(float)
|
|
|
|
21(low): 20(ptr) Variable Input
|
|
|
|
24: 6(float) Constant 1065353216
|
|
|
|
26(high): 20(ptr) Variable Input
|
2015-12-11 01:01:54 +00:00
|
|
|
28: TypeBool
|
2016-02-16 03:58:50 +00:00
|
|
|
33: 15(int) Constant 1
|
|
|
|
35: TypeVector 6(float) 4
|
|
|
|
36: TypePointer Output 35(fvec4)
|
|
|
|
37(Color): 36(ptr) Variable Output
|
2015-12-11 01:01:54 +00:00
|
|
|
4(main): 2 Function None 3
|
|
|
|
5: Label
|
|
|
|
17(z): 16(ptr) Variable Function
|
|
|
|
Store 11(face1) 12
|
|
|
|
Store 13(face2) 14
|
|
|
|
Store 17(z) 18
|
2016-02-16 03:58:50 +00:00
|
|
|
22: 6(float) Load 21(low)
|
|
|
|
23: 6(float) FMul 19 22
|
|
|
|
25: 6(float) FAdd 23 24
|
|
|
|
27: 6(float) Load 26(high)
|
|
|
|
29: 28(bool) FOrdLessThan 25 27
|
2015-12-11 01:01:54 +00:00
|
|
|
SelectionMerge 31 None
|
|
|
|
BranchConditional 29 30 31
|
|
|
|
30: Label
|
|
|
|
32: 15(int) Load 17(z)
|
2016-02-16 03:58:50 +00:00
|
|
|
34: 15(int) IAdd 32 33
|
|
|
|
Store 17(z) 34
|
2015-12-11 01:01:54 +00:00
|
|
|
Branch 31
|
|
|
|
31: Label
|
2016-02-16 03:58:50 +00:00
|
|
|
38: 6(float) Load 11(face1)
|
|
|
|
39: 15(int) Load 17(z)
|
|
|
|
40: 6(float) ConvertSToF 39
|
|
|
|
41: 35(fvec4) CompositeConstruct 40 40 40 40
|
|
|
|
42: 35(fvec4) VectorTimesScalar 41 38
|
|
|
|
43: 6(float) FunctionCall 8(foo()
|
|
|
|
44: 35(fvec4) CompositeConstruct 43 43 43 43
|
|
|
|
45: 35(fvec4) FAdd 42 44
|
|
|
|
Store 37(Color) 45
|
2015-12-11 01:01:54 +00:00
|
|
|
Return
|
|
|
|
FunctionEnd
|
|
|
|
8(foo(): 6(float) Function None 7
|
|
|
|
9: Label
|
2016-02-16 03:58:50 +00:00
|
|
|
46: 6(float) Load 13(face2)
|
|
|
|
ReturnValue 46
|
2015-12-11 01:01:54 +00:00
|
|
|
FunctionEnd
|