O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Logs and validation

Qt automatically receives messages from the Vulkan library and puts them into Qt's own logging system. The critical errors will be passed to qWarning(), so they will appear in the application output by default. However, Qt also logs additional information that can be useful when debugging. This information is hidden by default, but you can make it visible by adding the following line to the main() function just after the construction of QGuiApplication:

QLoggingCategory::setFilterRules(QStringLiteral("qt.vulkan=true"));

The Vulkan API does not perform any sanity checks by default. If you pass an invalid parameter to a Vulkan API function, the application may silently crash, or work inconsistently. However, you can enable ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required