EffectComposer: Add extraMargin property for generated effects

Extra margin property is added to effects that can spill outside the
source item. This property specifies the amount of space outside the
item that the effect is allowed to use for rendering.

Fixes: QDS-11607
Change-Id: I36d7392593faa6deb99726eaa02184aa87aa3571
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
Miikka Heikkinen
2024-03-21 15:14:57 +02:00
parent 5f055fed2d
commit e4429401d5
5 changed files with 99 additions and 10 deletions

View File

@@ -52,6 +52,8 @@ public:
int decRefCount();
void setRefCount(int count);
int extraMargin() const { return m_extraMargin; }
signals:
void uniformsModelChanged();
void isEnabledChanged();
@@ -70,6 +72,7 @@ private:
QString m_id;
bool m_isEnabled = true;
int m_refCount = 0;
int m_extraMargin = 0;
QList<Uniform *> m_uniforms;