mirror of
https://github.com/encounter/SDL.git
synced 2025-12-17 17:05:23 +00:00
Fixed bug 5354 - DirectFB: Add Vulkan support
Nicolas Caramelli This patch adds Vulkan support for the DirectFB video driver. A screenshot with SDL tests running on DirectFB is available on the HiGFXback project: https://github.com/caramelli/higfxback/wiki/DirectFB#sdl
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
*/
|
||||
#include "SDL_DirectFB_modes.h"
|
||||
#include "SDL_DirectFB_opengl.h"
|
||||
#include "SDL_DirectFB_vulkan.h"
|
||||
#include "SDL_DirectFB_window.h"
|
||||
#include "SDL_DirectFB_WM.h"
|
||||
|
||||
@@ -136,6 +137,13 @@ DirectFB_CreateDevice(int devindex)
|
||||
device->shape_driver.SetWindowShape = DirectFB_SetWindowShape;
|
||||
device->shape_driver.ResizeWindowShape = DirectFB_ResizeWindowShape;
|
||||
|
||||
#if SDL_VIDEO_VULKAN
|
||||
device->Vulkan_LoadLibrary = DirectFB_Vulkan_LoadLibrary;
|
||||
device->Vulkan_UnloadLibrary = DirectFB_Vulkan_UnloadLibrary;
|
||||
device->Vulkan_GetInstanceExtensions = DirectFB_Vulkan_GetInstanceExtensions;
|
||||
device->Vulkan_CreateSurface = DirectFB_Vulkan_CreateSurface;
|
||||
#endif
|
||||
|
||||
device->free = DirectFB_DeleteDevice;
|
||||
|
||||
return device;
|
||||
|
||||
Reference in New Issue
Block a user