mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-19 11:31:56 +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"; }
|
|
};
|