diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2024-05-24 11:51:33 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2024-05-27 09:36:13 +0200 |
commit | 3d8c86976844bc9507b0ff677188eee64e49b732 (patch) | |
tree | 7e6bb01bae9a7740a1d45b75fc9c35561bd8142e /tests/auto/qml/qqmllanguage/data/scriptString4.qml | |
parent | 0c9d2fe80255422e2375404b9e94b31ad62fec06 (diff) |
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>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/scriptString4.qml')
0 files changed, 0 insertions, 0 deletions