mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-08-31 17:55:23 +02:00
22 lines
610 B
C++
22 lines
610 B
C++
#pragma once
|
|
|
|
#include "libretro/LibretroGraphicsContext.h"
|
|
|
|
class LibretroVulkanContext : public LibretroHWRenderContext {
|
|
public:
|
|
LibretroVulkanContext();
|
|
~LibretroVulkanContext() override { ShutdownAPI(); }
|
|
bool InitAPI(void *wnd, std::string *deviceName, std::string *error_message) override;
|
|
void ShutdownAPI() override;
|
|
void SwapBuffers() override;
|
|
|
|
void *GetAPIContext() override;
|
|
void CreateDrawContext() override;
|
|
|
|
void ContextReset() override;
|
|
void ContextDestroy() override;
|
|
|
|
GPUCore GetGPUCore() override { return GPUCORE_VULKAN; }
|
|
const char *Ident() override { return "Vulkan"; }
|
|
};
|