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);
vkfw::pollEvents();
mImGuiManager.newFrame();
ImGuiManager::newFrame();
bool needsPipelineRecreation = false;
mImGuiManager.renderControls(
ImGuiManager::renderControls(
mCameraSpeed,
mFieldOfView,
mWireframeMode,
@ -388,12 +388,12 @@ class VulkanApp {
mLightSettings,
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) {
mDevice->waitIdle();
createGraphicsPipeline();
}
mImGuiManager.render();
ImGuiManager::render();
drawFrame();
}