summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/rhi/qshader/data
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-01-12 17:33:31 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-01-13 16:21:26 +0100
commit7e2cef0f15b133c07bd11aa5e5065b0b9959fb0d (patch)
tree50378e10ac4affce1768d40d3fabdf960d9497dc /tests/auto/gui/rhi/qshader/data
parent9a0ab41f28042c7f27208337e419435d16f00006 (diff)
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>
Diffstat (limited to 'tests/auto/gui/rhi/qshader/data')
-rw-r--r--tests/auto/gui/rhi/qshader/data/texture_all_v4.frag.qsbbin0 -> 1272 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/auto/gui/rhi/qshader/data/texture_all_v4.frag.qsb b/tests/auto/gui/rhi/qshader/data/texture_all_v4.frag.qsb
new file mode 100644
index 0000000000..4292d67b7c
--- /dev/null
+++ b/tests/auto/gui/rhi/qshader/data/texture_all_v4.frag.qsb
Binary files differ