qt5base-lts/tests/manual/rhi
Laszlo Agocs 7000b66f7e Remove QVector in the API of QRhiResource subclasses
Forcing users to go through a QVector, when in practice they almost
always want to source the data from an initializer list, a QVarLengthArray,
or a plain C array, is not ideal. Especially since we can reason about
the maximum number of elements in the vast majority of use cases for all
the affected lists. QRhiResource is also not copyable so we do not need
the usual machinery offered by containers. So switch to a
QVarLengthArray.

Note that a resource is not a container. The only operations we are
interested in is to be able to source data either via an initializer
list or by iterating on something, and to be able to extract the data,
in case a user wishes to set up another resource based on the existing
one.

In some cases a QVector overload is kept for source compatibility with
other modules (Qt Quick). These may be removed in the future.

Also do a similar QVector->QVarLengthArray change in the srb-related
data in the backends.

Change-Id: I6f5b2ebd8e75416ce0cca0817bb529446a4cb664
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
2019-09-30 20:07:43 +02:00
..
compressedtexture_bc1 rhi: Add a --transparent option to manual tests 2019-09-26 17:02:12 +02:00
compressedtexture_bc1_subupload rhi: Add a --transparent option to manual tests 2019-09-26 17:02:12 +02:00
computebuffer rhi: Add a --transparent option to manual tests 2019-09-26 17:02:12 +02:00
computeimage rhi: Add a --transparent option to manual tests 2019-09-26 17:02:12 +02:00
cubemap rhi: Add a --transparent option to manual tests 2019-09-26 17:02:12 +02:00
cubemap_scissor rhi: Add a --transparent option to manual tests 2019-09-26 17:02:12 +02:00
floattexture rhi: Add a --transparent option to manual tests 2019-09-26 17:02:12 +02:00
hellominimalcrossgfxtriangle Ensure drawable size atomicity within a frame 2019-09-29 22:16:55 +02:00
instancing rhi: Add a --transparent option to manual tests 2019-09-26 17:02:12 +02:00
mrt Remove QVector in the API of QRhiResource subclasses 2019-09-30 20:07:43 +02:00
msaarenderbuffer rhi: Add a --transparent option to manual tests 2019-09-26 17:02:12 +02:00
msaatexture Remove QVector in the API of QRhiResource subclasses 2019-09-30 20:07:43 +02:00
multiwindow Ensure drawable size atomicity within a frame 2019-09-29 22:16:55 +02:00
multiwindow_threaded Ensure drawable size atomicity within a frame 2019-09-29 22:16:55 +02:00
offscreen rhi: Fix clear value in offscreen test 2019-07-31 09:04:49 +02:00
qrhiprof Introduce the Qt graphics abstraction as private QtGui helpers 2019-06-13 10:13:45 +02:00
shadowmap rhi: Add a --transparent option to manual tests 2019-09-26 17:02:12 +02:00
shared Ensure drawable size atomicity within a frame 2019-09-29 22:16:55 +02:00
texuploads Remove QVector in the API of QRhiResource subclasses 2019-09-30 20:07:43 +02:00
triquadcube Remove QVector in the API of QRhiResource subclasses 2019-09-30 20:07:43 +02:00
rhi.pro rhi: Unify handling of special cases for scissor and viewport rects 2019-09-26 17:02:05 +02:00