- add 3rd party vulkan dependencies

- add stubs for a vulkan hw renderer backend
- add RAII wrappers for vulkan object types
- add builder classes to isolate vulkan boilerplate code
- add a swap chain class
This commit is contained in:
Magnus Norddahl 2019-02-20 21:21:57 +01:00
commit c6b29846d0
133 changed files with 107089 additions and 2 deletions

View file

@ -44,6 +44,7 @@
#include "m_argv.h"
#include "version.h"
#include "win32glvideo.h"
#include "win32vulkanvideo.h"
#include "doomerrors.h"
#include "i_system.h"
#include "swrenderer/r_swrenderer.h"
@ -126,7 +127,22 @@ void I_InitGraphics ()
// are the active app. Huh?
}
Video = new Win32GLVideo();
// if (vid_backend == 0)
{
// first try Vulkan, if that fails OpenGL
try
{
Video = new Win32VulkanVideo();
}
catch (CRecoverableError &)
{
Video = new Win32GLVideo();
}
}
/*else
{
Video = new Win32GLVideo();
}*/
if (Video == NULL)
I_FatalError ("Failed to initialize display");