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/qrhid3d11.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/rhi/qrhid3d11.cpp') diff --git a/src/gui/rhi/qrhid3d11.cpp b/src/gui/rhi/qrhid3d11.cpp index 2dc5763bd9..1c7f3cd17a 100644 --- a/src/gui/rhi/qrhid3d11.cpp +++ b/src/gui/rhi/qrhid3d11.cpp @@ -3456,6 +3456,8 @@ bool QD3D11ShaderResourceBindings::create() if (!rhiD->sanityCheckShaderResourceBindings(this)) return false; + rhiD->updateLayoutDesc(this); + std::copy(m_bindings.cbegin(), m_bindings.cend(), std::back_inserter(sortedBindings)); std::sort(sortedBindings.begin(), sortedBindings.end(), [](const QRhiShaderResourceBinding &a, const QRhiShaderResourceBinding &b) -- cgit v1.2.3