rhi: Switch command lists to QVLA

Change-Id: Ic163533eee973f0ee2f3e2efe25390caa57dd659
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
bb10
Laszlo Agocs 2020-09-25 12:58:07 +02:00
parent 63e54fbdfe
commit 7f3b62324e
3 changed files with 3 additions and 3 deletions

View File

@ -457,7 +457,7 @@ struct QD3D11CommandBuffer : public QRhiCommandBuffer
ComputePass
};
QList<Command> commands;
QVarLengthArray<Command, 1024> commands;
PassType recordingPass;
QRhiRenderTarget *currentTarget;
QRhiGraphicsPipeline *currentGraphicsPipeline;

View File

@ -514,7 +514,7 @@ struct QGles2CommandBuffer : public QRhiCommandBuffer
ComputePass
};
QList<Command> commands;
QVarLengthArray<Command, 1024> commands;
QVarLengthArray<QRhiPassResourceTracker, 8> passResTrackers;
int currentPassResTrackerIndex;

View File

@ -533,7 +533,7 @@ struct QVkCommandBuffer : public QRhiCommandBuffer
} executeSecondary;
} args;
};
QList<Command> commands;
QVarLengthArray<Command, 1024> commands;
QVarLengthArray<QRhiPassResourceTracker, 8> passResTrackers;
int currentPassResTrackerIndex;