Use default Graphics API for all platforms
This commit is contained in:
2 files changed
-8
No files matched your search
@@ -52,7 +52,6 @@ Full target format list:
|
|||||||
### Dependencies
|
### Dependencies
|
||||||
- Qt 6.10+ components: `Core`, `Gui`, `Qml`, `Quick`, `Widgets`, `Concurrent`, `Svg`, `QuickControls2`, `Test`, `Xml`, `Network`, optional `DBus`.
|
- Qt 6.10+ components: `Core`, `Gui`, `Qml`, `Quick`, `Widgets`, `Concurrent`, `Svg`, `QuickControls2`, `Test`, `Xml`, `Network`, optional `DBus`.
|
||||||
- Third-party packages: `minizip`, `libarchive`, `iconv`.
|
- Third-party packages: `minizip`, `libarchive`, `iconv`.
|
||||||
- Graphics API: Vulkan (Windows, Linux), Metal (macOS) configured via `QQuickWindow::setGraphicsApi()`.
|
|
||||||
|
|
||||||
### Windows Build Environment
|
### Windows Build Environment
|
||||||
Qt 6.10.3 at `C:\msys64\opt\qt\6.10.3\mingw_64`. MinGW toolchain at `C:\msys64\mingw64\bin\`:
|
Qt 6.10.3 at `C:\msys64\opt\qt\6.10.3\mingw_64`. MinGW toolchain at `C:\msys64\mingw64\bin\`:
|
||||||
|
|||||||
@@ -72,13 +72,6 @@ int main(int argc, char *argv[])
|
|||||||
qInstallMessageHandler(myMessageHandler);
|
qInstallMessageHandler(myMessageHandler);
|
||||||
QSettings::setDefaultFormat(QSettings::IniFormat);
|
QSettings::setDefaultFormat(QSettings::IniFormat);
|
||||||
|
|
||||||
// Select graphics API per platform
|
|
||||||
#if defined(Q_OS_MACOS)
|
|
||||||
QQuickWindow::setGraphicsApi(QSGRendererInterface::Metal);
|
|
||||||
#else
|
|
||||||
QQuickWindow::setGraphicsApi(QSGRendererInterface::Vulkan);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
QApplication::setApplicationName(QStringLiteral("Asteria"));
|
QApplication::setApplicationName(QStringLiteral("Asteria"));
|
||||||
QApplication::setOrganizationName(QStringLiteral("Asteria"));
|
QApplication::setOrganizationName(QStringLiteral("Asteria"));
|
||||||
|
|||||||
Reference in new issue
Block a user