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:
@@ -9,8 +9,8 @@
|
||||
#include "copium/event/MousePressEvent.h"
|
||||
#include "copium/event/MouseReleaseEvent.h"
|
||||
#include "copium/event/MouseScrollEvent.h"
|
||||
#include "copium/event/WindowResizeEvent.h"
|
||||
#include "copium/event/WindowFocusEvent.h"
|
||||
#include "copium/event/WindowResizeEvent.h"
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
@@ -32,7 +32,6 @@ namespace Copium
|
||||
bool Window::ShouldClose() const
|
||||
{
|
||||
return glfwWindowShouldClose(window);
|
||||
|
||||
}
|
||||
|
||||
int Window::GetWidth() const
|
||||
@@ -72,6 +71,8 @@ namespace Copium
|
||||
{
|
||||
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
|
||||
|
||||
CP_ASSERT(glfwVulkanSupported(), "Vulkan is not supported");
|
||||
|
||||
switch (mode)
|
||||
{
|
||||
case WindowMode::Fullscreen:
|
||||
@@ -187,4 +188,4 @@ namespace Copium
|
||||
{
|
||||
EventDispatcher::QueueEvent(MouseScrollEvent{(int)xoffset, (int)yoffset});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user