Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QRhiMetalInitParams Class Reference

\inmodule QtRhi More...

+ Collaboration diagram for QRhiMetalInitParams:

Detailed Description

\inmodule QtRhi

Since
6.6

Metal specific initialization parameters.

Note
This is a RHI API with limited compatibility guarantees, see \l QRhi for details.

A Metal-based QRhi needs no special parameters for initialization.

\badcode QRhiMetalInitParams params; rhi = QRhi::create(QRhi::Metal, &params);

Note
Metal API validation cannot be enabled programmatically by the QRhi. Instead, either run the debug build of the application in XCode, by generating a {.xcodeproj} file via {cmake -G Xcode}, or set the environment variable {METAL_DEVICE_WRAPPER_TYPE=1}. The variable needs to be set early on in the environment, perferably before starting the process; attempting to set it at QRhi creation time is not functional in practice. (too late probably)
QRhiSwapChain can only target QWindow instances that have their surface type set to QSurface::MetalSurface.

The documentation for this class was generated from the following file: