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

Vulkan instance, window, and renderer

Before we start creating our first minimal Vulkan application, let's get familiar with the Qt classes we'll need for the task.

Unlike OpenGL, Vulkan doesn't have a global state. Interaction with Vulkan starts with the instance object represented by the VkInstance type. An application usually creates a single VkInstance object that contains the application-wide state. All other Vulkan objects can only be created from the instance object. In Qt, the corresponding class is QVulkanInstance. This class provides a convenient way to configure Vulkan and then initialize it with the given configuration. You can also use its supportedExtensions() and supportedLayers() functions to query supported features before ...

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