-
Notifications
You must be signed in to change notification settings - Fork 0
1 Instance and physical device selection
A Vulkan application starts by setting up the Vulkan API through a VkInstance
. An instance is created by describing your application and any API extensions you will be using. After creating the instance, you can query for Vulkan-supported hardware and select one or more VkPhysicalDevice
s to use for operations. You can query for properties like VRAM size and device capabilities to select desired devices, for example to prefer using dedicated graphics cards.
Do we require a Device manager and a Window manager? That will need to be injected in some way.
We will be starting with RAII system https://en.wikipedia.org/wiki/Resource_acquisition_is_initialization #ResourceAcquisitionIsInitialized #RAII
so let's create an ModuleBaseInterface class that will have a Create and destroy and have it happen all at once.
Vcpkg works with everything so i will be using that for now as it makes the most difference