Skip to content

Commit

Permalink
visionOS: Make sure the multiview caps is enabled
Browse files Browse the repository at this point in the history
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 <laszlo.agocs@qt.io>
(cherry picked from commit 2c2d36f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
  • Loading branch information
cstatic authored and Qt Cherry-pick Bot committed Oct 9, 2024
1 parent a7ad264 commit 6f56cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/rhi/qrhimetal.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 6f56cc7

Please sign in to comment.