From 868866cecd57e671d1b2826b59d3fa1c872b214c Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 28 Sep 2020 13:05:38 +0200 Subject: rhi: Improve layout compatibility test performance Also bump the non-heap buffer size in the binding list to 16, in order to accommodate complex Quick3D materials with many associated texture maps. Change-Id: Id190e5f8304f5941cffc41a2605fce45dfeb72f0 Reviewed-by: Andy Nichols --- src/gui/rhi/qrhi_p.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/rhi/qrhi_p.h') diff --git a/src/gui/rhi/qrhi_p.h b/src/gui/rhi/qrhi_p.h index 1d0b6ebfab..d3e32f2723 100644 --- a/src/gui/rhi/qrhi_p.h +++ b/src/gui/rhi/qrhi_p.h @@ -1012,7 +1012,10 @@ public: protected: QRhiShaderResourceBindings(QRhiImplementation *rhi); - QVarLengthArray m_bindings; + QVarLengthArray m_bindings; + uint m_layoutDescHash = 0; + QVarLengthArray m_layoutDesc; + friend class QRhiImplementation; #ifndef QT_NO_DEBUG_STREAM friend Q_GUI_EXPORT QDebug operator<<(QDebug, const QRhiShaderResourceBindings &); #endif -- cgit v1.2.3