From d3f1076d0a3b8b0f44250399ea325020bbe9a0fd Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 22 May 2017 10:23:16 +0200 Subject: QVulkanWindow: use QVector, not QSet, for small int set Apart from being more efficient to construct and test, for the expected very small number of entries, the example code itself shows that a sorted vector is much more useful than an unordered set. Change-Id: Ic5e38df0176ac4be08eac6a89c2e1cabab2a9020 Reviewed-by: Shawn Rutledge Reviewed-by: Laszlo Agocs --- examples/vulkan/hellovulkancubes/renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/vulkan/hellovulkancubes/renderer.cpp') diff --git a/examples/vulkan/hellovulkancubes/renderer.cpp b/examples/vulkan/hellovulkancubes/renderer.cpp index 96ae6020a7..3b837d85d4 100644 --- a/examples/vulkan/hellovulkancubes/renderer.cpp +++ b/examples/vulkan/hellovulkancubes/renderer.cpp @@ -97,7 +97,7 @@ Renderer::Renderer(VulkanWindow *w, int initialCount) void Renderer::preInitResources() { - QSet sampleCounts = m_window->supportedSampleCounts(); + const QVector sampleCounts = m_window->supportedSampleCounts(); if (DBG) qDebug() << "Supported sample counts:" << sampleCounts; if (sampleCounts.contains(4)) { -- cgit v1.2.3