Files
fs2open.github.com/code/graphics/vulkan/gr_vulkan.cpp
T
asarium 2f3f061e75 Add Vulkan instance and surface creation code
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.
2020-02-09 17:06:21 +01:00

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