2018-03-24 11:44:53 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "libretro/LibretroGraphicsContext.h"
|
|
|
|
|
|
|
|
class LibretroVulkanContext : public LibretroHWRenderContext {
|
2018-03-26 16:37:34 +00:00
|
|
|
public:
|
2018-03-26 16:21:11 +00:00
|
|
|
LibretroVulkanContext();
|
2021-09-10 19:38:52 +00:00
|
|
|
~LibretroVulkanContext() override { Shutdown(); }
|
2018-03-24 11:44:53 +00:00
|
|
|
bool Init() override;
|
|
|
|
void Shutdown() override;
|
|
|
|
void SwapBuffers() override;
|
|
|
|
|
|
|
|
void *GetAPIContext() override;
|
|
|
|
void CreateDrawContext() override;
|
2020-08-23 16:52:16 +00:00
|
|
|
|
2024-05-28 05:07:20 +00:00
|
|
|
void ContextReset() override;
|
|
|
|
void ContextDestroy() override;
|
2020-08-23 16:52:16 +00:00
|
|
|
|
2018-03-24 11:44:53 +00:00
|
|
|
GPUCore GetGPUCore() override { return GPUCORE_VULKAN; }
|
|
|
|
const char *Ident() override { return "Vulkan"; }
|
|
|
|
};
|