blob: afcd6e0c92a42995aca3f6ab5a65f16e621a9ea4 [file] [log] [blame]
spv.140.frag
Linked fragment stage:
// Module Version 99
// Generated by (magic number): 51a00bb
// Id's are bound by 90
Source GLSL 140
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4
Name 4 "main"
Name 9 "foo("
Name 12 "i1"
Name 17 "gl_FrontFacing"
Name 25 "i2"
Name 29 "o"
Name 34 "gl_ClipDistance"
Name 43 "k"
Name 54 "sampR"
Name 60 "sampB"
Name 83 "samp2Da"
Name 87 "bn"
MemberName 87(bn) 0 "matra"
MemberName 87(bn) 1 "matca"
MemberName 87(bn) 2 "matr"
MemberName 87(bn) 3 "matc"
MemberName 87(bn) 4 "matrdef"
Name 89 ""
Decorate 17(gl_FrontFacing) BuiltIn FrontFacing
Decorate 34(gl_ClipDistance) Smooth
Decorate 34(gl_ClipDistance) BuiltIn ClipDistance
Decorate 43(k) Smooth
Decorate 83(samp2Da) NoStaticUse
MemberDecorate 87(bn) 0 RowMajor
MemberDecorate 87(bn) 1 ColMajor
MemberDecorate 87(bn) 2 RowMajor
MemberDecorate 87(bn) 3 ColMajor
MemberDecorate 87(bn) 4 RowMajor
Decorate 87(bn) GLSLStd140
Decorate 87(bn) Block
Decorate 89 NoStaticUse
2: TypeVoid
3: TypeFunction 2
7: TypeFloat 32
8: TypeFunction 7(float)
11: TypePointer PrivateGlobal 7(float)
12(i1): 11(ptr) Variable PrivateGlobal
13: TypePointer Function 7(float)
15: TypeBool
16: TypePointer Input 15(bool)
17(gl_FrontFacing): 16(ptr) Variable Input
21: 7(float) Constant 3221225472
23: 7(float) Constant 1073741824
25(i2): 11(ptr) Variable PrivateGlobal
26: 7(float) Constant 1120665600
27: TypeVector 7(float) 4
28: TypePointer Output 27(fvec4)
29(o): 28(ptr) Variable Output
30: TypeInt 32 0
31: 30(int) Constant 5
32: TypeArray 7(float) 31
33: TypePointer Input 32
34(gl_ClipDistance): 33(ptr) Variable Input
35: TypeInt 32 1
36: 35(int) Constant 2
37: TypePointer Input 7(float)
42: TypePointer Input 27(fvec4)
43(k): 42(ptr) Variable Input
45: TypeVector 35(int) 4
52: TypeSampler7(float) Rect filter+texture
53: TypePointer UniformConstant 52
54(sampR): 53(ptr) Variable UniformConstant
56: TypeVector 35(int) 2
58: TypeSampler35(int) Buffer filter+texture
59: TypePointer UniformConstant 58
60(sampB): 59(ptr) Variable UniformConstant
65: TypeVector 7(float) 2
68: 7(float) Constant 1120403456
79: TypeSampler7(float) 2D filter+texture
80: 30(int) Constant 3
81: TypeArray 79 80
82: TypePointer UniformConstant 81
83(samp2Da): 82(ptr) Variable UniformConstant
84: TypeMatrix 27(fvec4) 4
85: 30(int) Constant 4
86: TypeArray 84 85
87(bn): TypeStruct 86 86 84 84 84
88: TypePointer Uniform 87(bn)
89: 88(ptr) Variable Uniform
4(main): 2 Function None 3
5: Label
14: 13(ptr) Variable Function
18: 15(bool) Load 17(gl_FrontFacing)
SelectionMerge 20 None
BranchConditional 18 19 22
19: Label
Store 14 21
Branch 20
22: Label
Store 14 23
Branch 20
20: Label
24: 7(float) Load 14
Store 12(i1) 24
Store 25(i2) 26
38: 37(ptr) AccessChain 34(gl_ClipDistance) 36
39: 7(float) Load 38
40: 27(fvec4) Load 29(o)
41: 27(fvec4) CompositeInsert 39 40 1
Store 29(o) 41
44: 27(fvec4) Load 43(k)
46: 45(ivec4) ConvertFToS 44
47: 35(int) CompositeExtract 46 0
48: 37(ptr) AccessChain 34(gl_ClipDistance) 47
49: 7(float) Load 48
50: 27(fvec4) Load 29(o)
51: 27(fvec4) CompositeInsert 49 50 2
Store 29(o) 51
55: 52 Load 54(sampR)
57: 56(ivec2) TextureQuerySize 55
61: 58 Load 60(sampB)
62: 35(int) TextureQuerySize 61
63: 56(ivec2) CompositeConstruct 62 62
64: 56(ivec2) IAdd 57 63
66: 65(fvec2) ConvertSToF 64
67: 7(float) CompositeExtract 66 0
69: 7(float) FDiv 67 68
70: 27(fvec4) Load 29(o)
71: 27(fvec4) CompositeInsert 69 70 3
Store 29(o) 71
72: 7(float) FunctionCall 9(foo()
73: 27(fvec4) Load 29(o)
74: 27(fvec4) CompositeInsert 72 73 2
Store 29(o) 74
Branch 6
6: Label
Return
FunctionEnd
9(foo(): 7(float) Function None 8
10: Label
75: 7(float) Load 12(i1)
76: 7(float) Load 25(i2)
77: 7(float) FAdd 75 76
ReturnValue 77
FunctionEnd