Add initial vulkan instance creation

Headlessly creates a new vulkan instance, with conditional MacOS
support, and enables the `VK_EXT_debug_utils` instance-extension with a
debug-messenger to hook onto validation layer messages.
This commit is contained in:
Wunkolo 2023-07-18 21:44:59 -07:00
parent d2241a25bc
commit 870b6a21bf
6 changed files with 336 additions and 5 deletions

View file

@ -54,10 +54,10 @@ Emulator::Emulator()
#ifdef PANDA3DS_ENABLE_VULKAN
if (config.rendererType == RendererType::Vulkan) {
window = SDL_CreateWindow("Alber", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width, height, SDL_WINDOW_VULKAN);
// window = SDL_CreateWindow("Alber", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width, height, SDL_WINDOW_VULKAN);
if (window == nullptr) {
Helpers::panic("Window creation failed: %s", SDL_GetError());
// Helpers::panic("Window creation failed: %s", SDL_GetError());
}
}
#endif