[frameworks/kdeclarative] src/qmlcontrols/graphicaleffects: graphicaleffects: Make shader uniform "buf" identical
Kai Uwe Broulik <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit ddab527ef52489cf03867414736d797406324c35 by Kai Uwe Broulik.
Committed on 28/07/2026 at 05:54.
Pushed by broulik into branch 'master'.
graphicaleffects: Make shader uniform "buf" identical
Add a variable for every property in the ShaderEffect in both
fragment and vertex shader.
M +1 -0 src/qmlcontrols/graphicaleffects/lanczos2sharp.frag
M +5 -0 src/qmlcontrols/graphicaleffects/preserveaspect.vert
https://invent.kde.org/frameworks/kdeclarative/-/commit/ddab527ef52489cf03867414736d797406324c35
diff --git a/src/qmlcontrols/graphicaleffects/lanczos2sharp.frag b/src/qmlcontrols/graphicaleffects/lanczos2sharp.frag
index 986b6f23..b6477e24 100644
--- a/src/qmlcontrols/graphicaleffects/lanczos2sharp.frag
+++ b/src/qmlcontrols/graphicaleffects/lanczos2sharp.frag
@@ -34,6 +34,7 @@ layout(std140, binding = 0) uniform buf {
mat4 qt_Matrix;
float qt_Opacity;
+ vec2 sourceSize;
vec2 targetSize;
float windowSinc;
float sinc;
diff --git a/src/qmlcontrols/graphicaleffects/preserveaspect.vert b/src/qmlcontrols/graphicaleffects/preserveaspect.vert
index f867fd50..9d959fcc 100644
--- a/src/qmlcontrols/graphicaleffects/preserveaspect.vert
+++ b/src/qmlcontrols/graphicaleffects/preserveaspect.vert
@@ -22,6 +22,11 @@ layout(std140, binding = 0) uniform buf {
vec2 sourceSize;
vec2 targetSize;
+
+ float windowSinc;
+ float sinc;
+ float antiRingingStrength;
+ float resolution;
} ubuf;
void main() {