|
Monad Engine da02fba2
> Undercity Codex_
|
Standalone smoke-test for the Vulkan preview scaffold. More...
#include <cmath>#include <cstdio>#include <stdexcept>#include <GLFW/glfw3.h>#include "graphics/vulkan/Context.h"#include "graphics/vulkan/Renderer.h"#include "graphics/vulkan/Swapchain.h"
Include dependency graph for preview_main.cpp:Go to the source code of this file.
Macros | |
| #define | GLFW_INCLUDE_VULKAN |
Functions | |
| int | main () |
Standalone smoke-test for the Vulkan preview scaffold.
Builds when MONAD_VULKAN_PREVIEW=ON. Not linked into the main game; this executable exists so we can iterate on the Vulkan backend without touching the working OpenGL render path.
Run: bin/debug/vulkan_preview Quit: ESC, or close the window.
Definition in file preview_main.cpp.
| #define GLFW_INCLUDE_VULKAN |
Definition at line 17 of file preview_main.cpp.
| int main | ( | ) |
Definition at line 34 of file preview_main.cpp.
References mnd::vk::Renderer::DrawFrame(), mnd::vk::Swapchain::GetExtent(), mnd::vk::Swapchain::ImageCount(), mnd::vk::Swapchain::Recreate(), and mnd::vk::Renderer::WaitIdle().