Add Linux support
- Add linux build system using MakeGen - Fix a swapchain validation error, likelydue to my linux system using a different vulkan version - Make DescriptorPool take in amount of descriptors it needs, instead of allocating a mass amount for every pool, causing loads of RAM/VRAM usage
This commit is contained in:
@@ -22,6 +22,10 @@ namespace Copium
|
||||
{
|
||||
Timer timer;
|
||||
timer.Start();
|
||||
|
||||
glfwSetErrorCallback(glfw_error_callback);
|
||||
CP_ASSERT(glfwInit() == GLFW_TRUE, "Failed to initialize the glfw context");
|
||||
|
||||
instance = std::make_unique<Instance>("Copium Engine");
|
||||
window = std::make_unique<Window>("Copium Engine", 1440, 810, WindowMode::Windowed);
|
||||
device = std::make_unique<Device>();
|
||||
@@ -97,4 +101,9 @@ namespace Copium
|
||||
{
|
||||
return instance && window && device && swapChain;
|
||||
}
|
||||
}
|
||||
|
||||
void Vulkan::glfw_error_callback(int error, const char* description)
|
||||
{
|
||||
CP_ABORT("GLFW Error %d: %s\n", error, description);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user