mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-30 08:50:33 +00:00
27 lines
702 B
C++
27 lines
702 B
C++
#pragma once
|
|
|
|
#include "AndroidGraphicsContext.h"
|
|
|
|
class VulkanContext;
|
|
|
|
class AndroidVulkanContext : public AndroidGraphicsContext {
|
|
public:
|
|
AndroidVulkanContext();
|
|
~AndroidVulkanContext();
|
|
|
|
bool InitAPI();
|
|
|
|
bool InitFromRenderThread(ANativeWindow *wnd, int desiredBackbufferSizeX, int desiredBackbufferSizeY, int backbufferFormat, int androidVersion) override;
|
|
void ShutdownFromRenderThread() override; // Inverses InitFromRenderThread.
|
|
|
|
void Shutdown() override;
|
|
void Resize() override;
|
|
|
|
void *GetAPIContext() override { return g_Vulkan; }
|
|
Draw::DrawContext *GetDrawContext() override { return draw_; }
|
|
|
|
private:
|
|
VulkanContext *g_Vulkan = nullptr;
|
|
Draw::DrawContext *draw_ = nullptr;
|
|
};
|