qtdeclarative/examples/quick/scenegraph/graph
Laszlo Agocs 3d8c869768 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.

Pick-to: 6.7 6.6 6.5 6.2
Change-Id: I863e98c6d56cc46fad895763b9b5106a40e2952c
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2024-05-27 09:36:13 +02:00
..
doc Doc: Create separate Graphics and Multimedia example categories 2024-01-17 15:36:27 +01:00
shaders graph example: Do not use GLSL functions as uniform names 2024-05-27 09:36:13 +02:00
CMakeLists.txt CMake: Add deployment API to our examples 2024-03-27 18:57:34 +01:00
graph.cpp
graph.h
graph.pro
graph.qrc
gridnode.cpp
gridnode.h
linenode.cpp
linenode.h
main.cpp graph example: Remove old todo 2023-05-16 16:08:11 +02:00
main.qml Small improvements into Graph example 2023-09-15 13:04:19 +03:00
noisynode.cpp Examples: Update custom QSGMaterialShader correctly 2023-01-04 10:04:36 +08:00
noisynode.h