qtdeclarative/examples
Laszlo Agocs 19de42c045 graph example: Do not use GLSL functions as uniform names
Using textureSize in the uniform block leads to renaming it
to _textureSize when transpiling to GLSL. This is not
reflected in the reflection metadata for some reason.
For OpenGL this matters because the QRhi backend won't
be correctly able to set up the uniforms when the
names do not match. To overcome this, use a name
in the shader that does not conflict with a built-in
GLSL function. Strictly speaking the name (textureSize)
is somewhat incorrect anyway. Use texCoordScale to
express its meaning better.

Change-Id: I863e98c6d56cc46fad895763b9b5106a40e2952c
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
(cherry picked from commit 3d8c869768)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 1946138275)
(cherry picked from commit 92368609f4851152515c213dc3e417f602f8b04a)
2024-06-05 21:46:49 +00:00
..
qml QmlExamples: Add missing dependencies of QtQuick in CMakeLists 2022-11-09 19:14:39 +00:00
qmltest Remove .prev_CMakeLists.txt 2021-08-31 11:51:13 +00:00
quick graph example: Do not use GLSL functions as uniform names 2024-06-05 21:46:49 +00:00
quickcontrols2 Chat tutorial: Fix deprecation warning 2023-09-09 21:18:49 +01:00
CMakeLists.txt Merge qtquickcontrols2 into qtdeclarative 2021-08-06 16:23:00 +02:00
README
examples.pro Merge qtquickcontrols2 into qtdeclarative 2021-08-06 16:23:00 +02:00

README

The Qt Quick module provides the basic elements to specify and implement your
user interface declaratively, using the Qt Meta-Object Language (QML). The
Qt QML module provides the engine and language infrastructure for QML itself.
This language is very expressive and human readable, and can be used by
designers to actually implement their UI vision. QML UIs can integrate
with C++ code in many ways, including being loaded as a part of a C++ UI
and loading data models from C++ and interacting with them.

Mostof these examples can be viewed directly with the
QML viewer utility, without requiring compilation.

Documentation for these examples can be found via the Examples
link in the main Qt documentation.