Adding MSAA

This commit is contained in:
Dynamitos committed 2023-12-04 16:36:02 +01:00
1 parent 34e9304a3c
commit ff8200ab35
9 files changed
+36 -22

No files matched your search

-2
View File
@@ -64,7 +64,6 @@ Window::Window(PGraphics graphics, const WindowCreateInfo &createInfo)
, preferences(createInfo)
, instance(graphics->getInstance())
, swapchain(VK_NULL_HANDLE)
, numSamples(createInfo.numSamples)
{
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
GLFWwindow *handle = glfwCreateWindow(createInfo.width, createInfo.height, createInfo.title, nullptr, nullptr);
@@ -88,7 +87,6 @@ Window::Window(PGraphics graphics, const WindowCreateInfo &createInfo)
chooseSwapExtent();
framebufferWidth = extent.width;
framebufferHeight = extent.height;
sampleFlags = createInfo.numSamples;
createSwapChain();
}