mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-25 12:55:00 +00:00
Render without rendering (#2152)
* presenter: render the game inside a ImGui window * presenter: render the previous frame to keep the render rendering * swapchain: fix swapchain image view format not being converted to unorm * devtools: fix frame graph timing
This commit is contained in:
parent
440a693fae
commit
56a6c95730
19 changed files with 306 additions and 110 deletions
|
@ -3,6 +3,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#include "video_core/renderer_vulkan/vk_instance.h"
|
||||
#include "vulkan/vulkan_handles.hpp"
|
||||
|
||||
|
@ -24,8 +26,9 @@ void Shutdown(const vk::Device& device);
|
|||
|
||||
bool ProcessEvent(SDL_Event* event);
|
||||
|
||||
void NewFrame();
|
||||
ImGuiID NewFrame(bool is_reusing_frame = false);
|
||||
|
||||
void Render(const vk::CommandBuffer& cmdbuf, Vulkan::Frame* frame);
|
||||
void Render(const vk::CommandBuffer& cmdbuf, const vk::ImageView& image_view,
|
||||
const vk::Extent2D& extent);
|
||||
|
||||
} // namespace ImGui::Core
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue