2019-12-22 19:55:47 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "win32basevideo.h"
|
|
|
|
#include "c_cvars.h"
|
2020-05-26 21:12:04 +00:00
|
|
|
#include "vulkan/system/vk_framebuffer.h"
|
2019-12-22 19:55:47 +00:00
|
|
|
|
|
|
|
|
2020-04-23 20:58:02 +00:00
|
|
|
EXTERN_CVAR(Bool, vid_fullscreen)
|
2019-12-22 19:55:47 +00:00
|
|
|
|
|
|
|
//==========================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//==========================================================================
|
|
|
|
|
|
|
|
class Win32VulkanVideo : public Win32BaseVideo
|
|
|
|
{
|
|
|
|
VulkanDevice *device = nullptr;
|
|
|
|
public:
|
|
|
|
Win32VulkanVideo()
|
|
|
|
{
|
|
|
|
device = new VulkanDevice();
|
|
|
|
}
|
2021-12-30 09:30:21 +00:00
|
|
|
|
2019-12-22 19:55:47 +00:00
|
|
|
~Win32VulkanVideo()
|
|
|
|
{
|
|
|
|
delete device;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Shutdown() override
|
|
|
|
{
|
|
|
|
delete device;
|
|
|
|
device = nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
DFrameBuffer *CreateFrameBuffer() override
|
|
|
|
{
|
2020-04-23 20:58:02 +00:00
|
|
|
auto fb = new VulkanFrameBuffer(m_hMonitor, vid_fullscreen, device);
|
2019-12-22 19:55:47 +00:00
|
|
|
return fb;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
};
|