mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-11 12:41:47 -10:00
This adds a new graphics type for the Vulkan graphics API. All this does is to create a vulkan instance and a presentation surface with the help of SDL.
25 lines
515 B
C++
25 lines
515 B
C++
|
|
#include "gr_vulkan.h"
|
|
|
|
#include "VulkanRenderer.h"
|
|
|
|
#include "mod_table/mod_table.h"
|
|
|
|
namespace graphics {
|
|
namespace vulkan {
|
|
|
|
bool initialize(std::unique_ptr<os::GraphicsOperations>&& graphicsOps)
|
|
{
|
|
VulkanRenderer renderer(std::move(graphicsOps));
|
|
if (!renderer.initialize()) {
|
|
return false;
|
|
}
|
|
|
|
// Nothing else is finished so always fail here
|
|
mprintf(("Vulkan support is not finished yet so graphics initialization will always fail...\n"));
|
|
return false;
|
|
}
|
|
|
|
} // namespace vulkan
|
|
} // namespace graphics
|