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 ...

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.