summaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview/boxes/scene.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-02-07 16:28:33 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-02-10 10:40:02 +0100
commit71e9c2f0366d5e1b73d7ceb6972f2a57020d1368 (patch)
treeb8472621fa39422e59d119bb2d0b4b163e1ff6e2 /examples/widgets/graphicsview/boxes/scene.h
parent1a541657562e4a13f0a72a41c51029b6e448460a (diff)
rhi: vulkan: Fix descriptor update with more objects involved
Once the number of buffers or images exceeds the QVarLengthArray limit, it moves over to heap-based allocation, and then reallocated to grow as needed. Problem is, if we keep references to the elements, those may get invalidated on every grow. This was not an issue until the element count reached the preallocated (stack) count. So instead, store indices and fill in the pointers in the VkWriteDescriptorSet only before issuing vkUpdateDescriptorSets(). Change-Id: I99f26f5e14cb28107edb1db86a21afa135858589 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'examples/widgets/graphicsview/boxes/scene.h')
0 files changed, 0 insertions, 0 deletions