![]() |
Kale
|
#include <Core.hpp>
Static Public Attributes | |
static vk::UniqueInstance | instance |
static vk::UniqueSurfaceKHR | surface |
static Device | device |
static SwapChain | swapchain |
static vk::UniqueCommandPool | commandPool |
Static Protected Member Functions | |
static void | setupCore (std::optional< uint32_t > gpuID=std::optional< uint32_t >()) |
static void | cleanupCore () |
Static Private Member Functions | |
static void | createInstance () |
static void | createCommandPool () |
static void | chooseDevice (std::optional< uint32_t > gpuID) |
Friends | |
class | Kale::Application |
This class handles nearly all vulkan related details including setup, instances, validation layers, etc.
|
staticprivate |
Chooses the physical device and sets up the physical device and logical device with the appropriate extensions
gpuID | the ID of the GPU to use for rendering |
Definition at line 168 of file CoreSetup.cpp.
|
staticprotected |
Cleans vulkan objects before the application closes
Definition at line 68 of file CoreSetup.cpp.
|
staticprivate |
Sets up the command pool
Definition at line 181 of file CoreSetup.cpp.
|
staticprivate |
Creates the vulkan instance for this window
Definition at line 88 of file CoreSetup.cpp.
|
staticprotected |
Sets up the main core, any functions called prior to this will result in undefined behavior
gpuID | the ID of the GPU to use for rendering |
Sets up the core, any functions called prior to this will result in undefined behavior
gpuID | the ID of the GPU to use for rendering |
Definition at line 37 of file CoreSetup.cpp.
|
friend |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |