mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-24 20:35:01 +00:00
38 lines
936 B
C++
38 lines
936 B
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <imgui.h>
|
|
|
|
#include "video_core/renderer_vulkan/vk_instance.h"
|
|
#include "vulkan/vulkan_handles.hpp"
|
|
|
|
union SDL_Event;
|
|
|
|
namespace Vulkan {
|
|
struct Frame;
|
|
}
|
|
|
|
namespace ImGui::Core {
|
|
|
|
void Initialize(const Vulkan::Instance& instance, const Frontend::WindowSDL& window,
|
|
u32 image_count, vk::Format surface_format,
|
|
const vk::AllocationCallbacks* allocator = nullptr);
|
|
|
|
void OnResize();
|
|
|
|
void OnSurfaceFormatChange(vk::Format surface_format);
|
|
|
|
void Shutdown(const vk::Device& device);
|
|
|
|
bool ProcessEvent(SDL_Event* event);
|
|
|
|
ImGuiID NewFrame(bool is_reusing_frame = false);
|
|
|
|
void Render(const vk::CommandBuffer& cmdbuf, const vk::ImageView& image_view,
|
|
const vk::Extent2D& extent);
|
|
|
|
bool MustKeepDrawing(); // Force the emulator redraw
|
|
|
|
} // namespace ImGui::Core
|