- 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:
parent
32e65ff11d
commit
c6b29846d0
133 changed files with 107089 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue