diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-09-25 12:58:07 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-09-25 14:59:14 +0000 |
commit | 7f3b62324e738c7b8a8a90c165ae957a55be0671 (patch) | |
tree | 11f55fc2047fd63cd5f7f2d98ea43531fa5f4db7 /src/gui | |
parent | 63e54fbdfea29d629f5a322c4927da2e5a1b1152 (diff) |
rhi: Switch command lists to QVLA
Change-Id: Ic163533eee973f0ee2f3e2efe25390caa57dd659
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/rhi/qrhid3d11_p_p.h | 2 | ||||
-rw-r--r-- | src/gui/rhi/qrhigles2_p_p.h | 2 | ||||
-rw-r--r-- | src/gui/rhi/qrhivulkan_p_p.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/rhi/qrhid3d11_p_p.h b/src/gui/rhi/qrhid3d11_p_p.h index e033c5b0b7..7c13544276 100644 --- a/src/gui/rhi/qrhid3d11_p_p.h +++ b/src/gui/rhi/qrhid3d11_p_p.h @@ -457,7 +457,7 @@ struct QD3D11CommandBuffer : public QRhiCommandBuffer ComputePass }; - QList<Command> commands; + QVarLengthArray<Command, 1024> commands; PassType recordingPass; QRhiRenderTarget *currentTarget; QRhiGraphicsPipeline *currentGraphicsPipeline; diff --git a/src/gui/rhi/qrhigles2_p_p.h b/src/gui/rhi/qrhigles2_p_p.h index c004b7f171..5940633151 100644 --- a/src/gui/rhi/qrhigles2_p_p.h +++ b/src/gui/rhi/qrhigles2_p_p.h @@ -514,7 +514,7 @@ struct QGles2CommandBuffer : public QRhiCommandBuffer ComputePass }; - QList<Command> commands; + QVarLengthArray<Command, 1024> commands; QVarLengthArray<QRhiPassResourceTracker, 8> passResTrackers; int currentPassResTrackerIndex; diff --git a/src/gui/rhi/qrhivulkan_p_p.h b/src/gui/rhi/qrhivulkan_p_p.h index cb21945301..641ad5a87b 100644 --- a/src/gui/rhi/qrhivulkan_p_p.h +++ b/src/gui/rhi/qrhivulkan_p_p.h @@ -533,7 +533,7 @@ struct QVkCommandBuffer : public QRhiCommandBuffer } executeSecondary; } args; }; - QList<Command> commands; + QVarLengthArray<Command, 1024> commands; QVarLengthArray<QRhiPassResourceTracker, 8> passResTrackers; int currentPassResTrackerIndex; |