|
Monad Engine da02fba2
> Undercity Codex_
|
Owns the Vulkan instance, surface (tied to a GLFW window), physical + logical device, and graphics/present queues. More...
#include <Context.h>
Public Member Functions | |
| Context (GLFWwindow *window, bool enableValidation) | |
| ~Context () | |
| Context (const Context &)=delete | |
| Context & | operator= (const Context &)=delete |
| VkInstance | GetInstance () const |
| VkSurfaceKHR | GetSurface () const |
| VkPhysicalDevice | GetPhysicalDevice () const |
| VkDevice | GetDevice () const |
| VkQueue | GetGraphicsQueue () const |
| VkQueue | GetPresentQueue () const |
| QueueFamilies | GetQueueFamilies () const |
Owns the Vulkan instance, surface (tied to a GLFW window), physical + logical device, and graphics/present queues.
Construction order matches typical Vulkan boot:
| mnd::vk::Context::Context | ( | GLFWwindow * | window, |
| bool | enableValidation | ||
| ) |
| window | Required — used to create a VkSurfaceKHR via GLFW. |
| enableValidation | Toggle VK_LAYER_KHRONOS_validation + debug messenger. |
Definition at line 123 of file Context.cpp.
| mnd::vk::Context::~Context | ( | ) |
Definition at line 136 of file Context.cpp.
|
delete |
|
inline |
Definition at line 57 of file Context.h.
Referenced by mnd::vk::Renderer::~Renderer(), mnd::vk::Renderer::DrawFrame(), mnd::vk::Swapchain::Recreate(), and mnd::vk::Renderer::WaitIdle().
|
inline |
Definition at line 59 of file Context.h.
Referenced by mnd::vk::Renderer::DrawFrame().
|
inline |
|
inline |
Definition at line 61 of file Context.h.
Referenced by mnd::vk::Renderer::DrawFrame().
|
inline |