diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-09-28 13:05:38 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-09-29 21:24:32 +0200 |
commit | 868866cecd57e671d1b2826b59d3fa1c872b214c (patch) | |
tree | 1f94c9a3509b9ffae7e46b22e751aee65fc288a7 /src/gui/rhi/qrhimetal.mm | |
parent | 331c8cd5b40fc6ce4301fdde365c2f7c0b5c6445 (diff) |
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 <andy.nichols@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhimetal.mm')
-rw-r--r-- | src/gui/rhi/qrhimetal.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhimetal.mm b/src/gui/rhi/qrhimetal.mm index 7bcb6864d6..9058a7556a 100644 --- a/src/gui/rhi/qrhimetal.mm +++ b/src/gui/rhi/qrhimetal.mm @@ -3013,6 +3013,8 @@ bool QMetalShaderResourceBindings::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) |