qt5base-lts/tests/auto/gui/rhi/qshader/data
Laszlo Agocs 7e2cef0f15 Move away from CBOR in QShaderDescription serialization
...but keep support for deserializing for all older versions in order to play
nice with existing .qsb files.

The usage of binary JSON and then CBOR is a historical artifact: relying
on the QJsonDocument (which we generate for purposes unrelated to binary
serialization) was a convenient shortcut. However, writing to and
reading from a QDataStream instead (which QShader already does) is trivial.
In order not to be limited by potential CBOR requirements in the future,
take it all into our own hands.

Extend the qshader autotest accordingly.

Task-number: QTBUG-81298
Change-Id: If0047b659bd6601ca47b5bbbce1b719630cde01e
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
2020-01-13 16:21:26 +01:00
..
color_all_v1.vert.qsb rhi: Move to CBOR in QShader and expand the autotest 2019-10-29 15:22:46 +01:00
color_spirv_v1.vert.qsb rhi: Move to CBOR in QShader and expand the autotest 2019-10-29 15:22:46 +01:00
color.vert Introduce the Qt graphics abstraction as private QtGui helpers 2019-06-13 10:13:45 +02:00
README rhi: Move to CBOR in QShader and expand the autotest 2019-10-29 15:22:46 +01:00
texture_all_v2.frag.qsb rhi: Move to CBOR in QShader and expand the autotest 2019-10-29 15:22:46 +01:00
texture_all_v3.frag.qsb rhi: Move to CBOR in QShader and expand the autotest 2019-10-29 15:22:46 +01:00
texture_all_v4.frag.qsb Move away from CBOR in QShaderDescription serialization 2020-01-13 16:21:26 +01:00
texture.frag rhi: Move to CBOR in QShader and expand the autotest 2019-10-29 15:22:46 +01:00

Warning: Do NOT regenerate the .qsb files without proper planning and understanding
the following.

Among other things, we are also testing backwards compatibility for QShader
deserialization.

.qsb files with _v1 in the name were produced with an older qtshadertools
and have a QSB_VERSION of 1.

Files with _v2 are generated with a newer qsb, those have QSB_VERSION 2.
The difference is the support for nativeResourceBindingMap() which is only
present in v2.

Files with _v3 come from an even newer qsb, and have QSB_VERSION 3. The
difference to 2 is the use of CBOR instead of binary JSON for QShaderDescription.