Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | template <typename State> | - |
5 | class QSGSimpleMaterialShader : public QSGMaterialShader | - |
6 | { | - |
7 | public: | - |
8 | void initialize() override { | - |
9 | QSGMaterialShader::initialize(); | - |
10 | | - |
11 | m_id_matrix = program()->uniformLocation(uniformMatrixName()); | - |
12 | if (m_id_matrix < 0TRUE | never evaluated | FALSE | evaluated 64 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) { | 0-64 |
13 | QMessageLogger(__FILE__, 56, __PRETTY_FUNCTION__).fatal("QSGSimpleMaterialShader does not implement 'uniform highp mat4 %s;' in its vertex shader", | - |
14 | uniformMatrixName()); | - |
15 | } never executed: end of block | 0 |
16 | | - |
17 | const char *opacity = uniformOpacityName(); | - |
18 | if (opacityTRUE | evaluated 64 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | never evaluated |
) { | 0-64 |
19 | m_id_opacity = program()->uniformLocation(uniformOpacityName()); | - |
20 | if (m_id_opacity < 0TRUE | never evaluated | FALSE | evaluated 64 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) { | 0-64 |
21 | QMessageLogger(__FILE__, 64, __PRETTY_FUNCTION__).fatal("QSGSimpleMaterialShader does not implement 'uniform lowp float %s' in its fragment shader", | - |
22 | uniformOpacityName()); | - |
23 | } never executed: end of block | 0 |
24 | }executed 64 times by 21 tests: end of block Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
else { | 64 |
25 | m_id_opacity = -1; | - |
26 | } never executed: end of block | 0 |
27 | | - |
28 | resolveUniforms(); | - |
29 | }executed 64 times by 21 tests: end of block Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 64 |
30 | | - |
31 | | - |
32 | const char *uniformMatrixName() const { returnexecuted 64 times by 21 tests: return "qt_Matrix"; Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
"qt_Matrix";executed 64 times by 21 tests: return "qt_Matrix"; Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
} | 64 |
33 | const char *uniformOpacityName() const { returnexecuted 128 times by 21 tests: return "qt_Opacity"; Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
"qt_Opacity";executed 128 times by 21 tests: return "qt_Opacity"; Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
} | 128 |
34 | | - |
35 | void updateState(const RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override; | - |
36 | | - |
37 | virtual void updateState(const State *newState, const State *oldState) = 0; | - |
38 | | - |
39 | virtual void resolveUniforms() {} | - |
40 | | - |
41 | virtual QList<QByteArray> attributes() const = 0; | - |
42 | | - |
43 | char const *const *attributeNames() const override | - |
44 | { | - |
45 | if (m_attribute_pointers.size()TRUE | evaluated 12413 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | evaluated 64 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 64-12413 |
46 | returnexecuted 12413 times by 21 tests: return m_attribute_pointers.constData(); Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
m_attribute_pointers.constData();executed 12413 times by 21 tests: return m_attribute_pointers.constData(); Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 12413 |
47 | | - |
48 | QList<QByteArray> names = attributes(); | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | int total = 0; | - |
54 | for (int i=0; i<names.size()TRUE | evaluated 240 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | evaluated 64 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
; ++i) | 64-240 |
55 | total += names.at(i).size() + 1;executed 240 times by 21 tests: total += names.at(i).size() + 1; Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 240 |
56 | m_attribute_name_data.reserve(total); | - |
57 | | - |
58 | | - |
59 | for (int i=0; i<names.size()TRUE | evaluated 240 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | evaluated 64 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
; ++i) { | 64-240 |
60 | m_attribute_pointers << m_attribute_name_data.constData() + m_attribute_name_data.size(); | - |
61 | m_attribute_name_data.append(names.at(i)); | - |
62 | m_attribute_name_data.append('\0'); | - |
63 | }executed 240 times by 21 tests: end of block Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 240 |
64 | | - |
65 | | - |
66 | m_attribute_pointers << 0; | - |
67 | | - |
68 | returnexecuted 64 times by 21 tests: return m_attribute_pointers.constData(); Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
m_attribute_pointers.constData();executed 64 times by 21 tests: return m_attribute_pointers.constData(); Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 64 |
69 | } | - |
70 | | - |
71 | private: | - |
72 | int m_id_matrix; | - |
73 | int m_id_opacity; | - |
74 | | - |
75 | mutable QByteArray m_attribute_name_data; | - |
76 | mutable QVector<const char *> m_attribute_pointers; | - |
77 | }; | - |
78 | typedef QSGMaterialShader *(*PtrShaderCreateFunc)(); | - |
79 | | - |
80 | | - |
81 | template <typename State> | - |
82 | class QSGSimpleMaterial : public QSGMaterial | - |
83 | { | - |
84 | public: | - |
85 | | - |
86 | QSGSimpleMaterial(const State &aState, PtrShaderCreateFunc func) | - |
87 | : m_state(aState) | - |
88 | , m_func(func) | - |
89 | { | - |
90 | } never executed: end of block | 0 |
91 | | - |
92 | QSGSimpleMaterial(PtrShaderCreateFunc func) | - |
93 | : m_func(func) | - |
94 | { | - |
95 | }executed 99 times by 21 tests: end of block Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 99 |
96 | | - |
97 | QSGMaterialShader *createShader() const override { returnexecuted 64 times by 21 tests: return m_func(); Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
m_func();executed 64 times by 21 tests: return m_func(); Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
} | 64 |
98 | QSGMaterialType *type() const override { returnexecuted 12010 times by 21 tests: return &m_type; Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
&m_type;executed 12010 times by 21 tests: return &m_type; Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
} | 12010 |
99 | | - |
100 | State *state() { returnexecuted 145005 times by 21 tests: return &m_state; Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
&m_state;executed 145005 times by 21 tests: return &m_state; Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
} | 145005 |
101 | const State *state() const { return never executed: return &m_state; &m_state;never executed: return &m_state; } | 0 |
102 | | - |
103 | | - |
104 | private: | - |
105 | static QSGMaterialType m_type; | - |
106 | State m_state; | - |
107 | PtrShaderCreateFunc m_func; | - |
108 | }; | - |
109 | template <typename State> | - |
110 | class QSGSimpleMaterialComparableMaterial : public QSGSimpleMaterial<State> | - |
111 | { | - |
112 | | - |
113 | public: | - |
114 | QSGSimpleMaterialComparableMaterial(const State &state, PtrShaderCreateFunc func) | - |
115 | : QSGSimpleMaterial<State>(state, func) {} never executed: end of block | 0 |
116 | | - |
117 | QSGSimpleMaterialComparableMaterial(PtrShaderCreateFunc func) | - |
118 | : QSGSimpleMaterial<State>(func) {} never executed: end of block | 0 |
119 | | - |
120 | int compare(const QSGMaterial *other) const override { | - |
121 | return never executed: return QSGSimpleMaterialComparableMaterial<State>::state()->compare(static_cast<const QSGSimpleMaterialComparableMaterial<State> *>(other)->state()); QSGSimpleMaterialComparableMaterial<State>::state()->compare(static_cast<const QSGSimpleMaterialComparableMaterial<State> *>(other)->state());never executed: return QSGSimpleMaterialComparableMaterial<State>::state()->compare(static_cast<const QSGSimpleMaterialComparableMaterial<State> *>(other)->state()); | 0 |
122 | } | - |
123 | }; | - |
124 | | - |
125 | | - |
126 | template <typename State> | - |
127 | QSGMaterialType QSGSimpleMaterial<State>::m_type; | - |
128 | | - |
129 | | - |
130 | template <typename State> | - |
131 | inline void QSGSimpleMaterialShader<State>::updateState(const RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) | - |
132 | { | - |
133 | | - |
134 | if (state.isMatrixDirty()TRUE | evaluated 4593 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | never evaluated |
) | 0-4593 |
135 | program()->setUniformValue(m_id_matrix, state.combinedMatrix());executed 4593 times by 21 tests: program()->setUniformValue(m_id_matrix, state.combinedMatrix()); Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 4593 |
136 | if (state.isOpacityDirty()TRUE | evaluated 64 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | evaluated 4529 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
&& m_id_opacity >= 0TRUE | evaluated 64 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | never evaluated |
) | 0-4529 |
137 | program()->setUniformValue(m_id_opacity, state.opacity());executed 64 times by 21 tests: program()->setUniformValue(m_id_opacity, state.opacity()); Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 64 |
138 | | - |
139 | | - |
140 | | - |
141 | State *ns = static_cast<QSGSimpleMaterial<State> *>(newMaterial)->state(); | - |
142 | State *old = nullptr; | - |
143 | if (oldMaterialTRUE | evaluated 683 times by 5 testsEvaluated by:- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquicklineextruder
- tst_qquickrectangleextruder
- tst_qquicktrailemitter
| FALSE | evaluated 3910 times by 21 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 683-3910 |
144 | old = static_cast<QSGSimpleMaterial<State> *>(oldMaterial)->state();executed 683 times by 5 tests: old = static_cast<QSGSimpleMaterial<State> *>(oldMaterial)->state(); Executed by:- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquicklineextruder
- tst_qquickrectangleextruder
- tst_qquicktrailemitter
| 683 |
145 | updateState(ns, old); | - |
146 | }executed 4593 times by 21 tests: end of block Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 4593 |
147 | | - |
148 | | - |
| | |