mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
20 lines
612 B
C++
20 lines
612 B
C++
#pragma once
|
|
|
|
#include "Common/Vulkan/VulkanLoader.h"
|
|
#include "libretro/LibretroGraphicsContext.h"
|
|
|
|
class LibretroVulkanContext : public LibretroHWRenderContext {
|
|
public:
|
|
LibretroVulkanContext() : LibretroHWRenderContext(RETRO_HW_CONTEXT_VULKAN, VK_MAKE_VERSION(1, 0, 18)) {}
|
|
~LibretroVulkanContext() override {}
|
|
bool Init() override;
|
|
void Shutdown() override;
|
|
void SwapBuffers() override;
|
|
void ContextDestroy() override;
|
|
|
|
void *GetAPIContext() override;
|
|
void CreateDrawContext() override;
|
|
GPUCore GetGPUCore() override { return GPUCORE_VULKAN; }
|
|
const char *Ident() override { return "Vulkan"; }
|
|
};
|