Manages initialization and destruction of Vulkan Instance, physical/logical devices,...
Definition VulkanContext.hpp:10
void pickPhysicalDevice()
Scans and picks the first suitable physical GPU.
Definition VulkanContext.cpp:31
VkQueue graphicsQueue
Queue for command submissions to graphic pipeline.
Definition VulkanContext.hpp:19
void createInstance()
Creates the main Vulkan instance.
Definition VulkanContext.cpp:9
VkSurfaceKHR surface
Presentation surface coupling GLFW window and Vulkan.
Definition VulkanContext.hpp:23
void createLogicalDevice()
Configures queue families and instantiates the logical device interface.
Definition VulkanContext.cpp:47
void init(GLFWwindow *window)
Sets up Vulkan instance, window surface, picks physical GPU and logical device context.
Definition VulkanContext.cpp:108
VkPhysicalDevice physicalDevice
Selected GPU physical device handle.
Definition VulkanContext.hpp:15
VkDevice device
Vulkan logical device context.
Definition VulkanContext.hpp:17
VkInstance instance
Vulkan root instance handle.
Definition VulkanContext.hpp:13
void cleanup()
Releases Vulkan logical device, surface, and instance handles.
Definition VulkanContext.cpp:123
VkQueue presentQueue
Queue for command submissions to system present pipeline.
Definition VulkanContext.hpp:21