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 |
||
---|---|---|
.. | ||
qml | ||
qmltest | ||
quick | ||
quickcontrols2 | ||
CMakeLists.txt | ||
README | ||
examples.pro |
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.