This commit is contained in:
Mars 2024-11-19 19:36:08 -05:00
parent 3bd0b7e88b
commit 7d10d6c480

View file

@ -375,9 +375,9 @@ class VulkanApp {
updateFrameStats(lastFpsUpdate, frameCounter); updateFrameStats(lastFpsUpdate, frameCounter);
vkfw::pollEvents(); vkfw::pollEvents();
mImGuiManager.newFrame(); ImGuiManager::newFrame();
bool needsPipelineRecreation = false; bool needsPipelineRecreation = false;
mImGuiManager.renderControls( ImGuiManager::renderControls(
mCameraSpeed, mCameraSpeed,
mFieldOfView, mFieldOfView,
mWireframeMode, mWireframeMode,
@ -388,12 +388,12 @@ class VulkanApp {
mLightSettings, mLightSettings,
needsPipelineRecreation needsPipelineRecreation
); );
mImGuiManager.renderMemoryUsage(sizeof(Vertex), sizeof(uint32_t), mVertices.size(), mIndices.size()); ImGuiManager::renderMemoryUsage(sizeof(Vertex), sizeof(uint32_t), mVertices.size(), mIndices.size());
if (needsPipelineRecreation) { if (needsPipelineRecreation) {
mDevice->waitIdle(); mDevice->waitIdle();
createGraphicsPipeline(); createGraphicsPipeline();
} }
mImGuiManager.render(); ImGuiManager::render();
drawFrame(); drawFrame();
} }