Editor now displaying in Vulkan

This commit is contained in:
antopilo
2024-12-04 15:25:08 -05:00
parent 5ba897ed46
commit b2d749244f
18 changed files with 2172 additions and 57 deletions

View File

@@ -24,6 +24,7 @@
#ifdef NK_VK
#include "src/Rendering/Vulkan/VulkanRenderer.h"
#endif
#include <imgui/imgui_impl_vulkan.h>
namespace Nuake
@@ -190,7 +191,13 @@ namespace Nuake
{
ZoneScoped;
VkRenderer::Get().Draw();
ImGui_ImplVulkan_NewFrame();
ImGui_ImplGlfw_NewFrame();
ImGui::NewFrame();
ImGui::ShowDemoWindow();
RenderCommand::Clear();
@@ -208,7 +215,7 @@ namespace Nuake
// Draw scene
Window::Get()->Draw();
glfwPollEvents();
}
void Engine::EndDraw()