From 6f56cc73cef603c43358fed31ee7bf8acd5131ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Str=C3=B8mme?= Date: Tue, 8 Oct 2024 13:00:04 +0200 Subject: [PATCH] visionOS: Make sure the multiview caps is enabled The caps for visionOS are the same as for macOS, so just set the same for both, including support for multiview. Task-number: QTBUG-126294 Change-Id: Ie3a551f134d8a8a39d63801bc7fd8dcca1e715c9 Reviewed-by: Laszlo Agocs (cherry picked from commit 2c2d36fae186a308f4bf2aa799551b74eb24eacb) Reviewed-by: Qt Cherry-pick Bot --- src/gui/rhi/qrhimetal.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/rhi/qrhimetal.mm b/src/gui/rhi/qrhimetal.mm index 3046b764277..b84cec4ebfc 100644 --- a/src/gui/rhi/qrhimetal.mm +++ b/src/gui/rhi/qrhimetal.mm @@ -600,7 +600,7 @@ inline Int aligned(Int v, Int byteAlign) const QString label = QString::asprintf("Qt capture scope for QRhi %p", this); d->captureScope.label = label.toNSString(); -#if defined(Q_OS_MACOS) +#if defined(Q_OS_MACOS) || defined(Q_OS_VISIONOS) caps.maxTextureSize = 16384; caps.baseVertexAndInstance = true; caps.isAppleGPU = [d->dev supportsFamily:MTLGPUFamilyApple7];