diff --git a/.cache/clangd/index/devicelibrary.cpp.A6A50BF3BD186A09.idx b/.cache/clangd/index/devicelibrary.cpp.A6A50BF3BD186A09.idx index 0fc9835..00755c3 100644 Binary files a/.cache/clangd/index/devicelibrary.cpp.A6A50BF3BD186A09.idx and b/.cache/clangd/index/devicelibrary.cpp.A6A50BF3BD186A09.idx differ diff --git a/.cache/clangd/index/global.h.67055BFC9A2F7BD6.idx b/.cache/clangd/index/global.h.67055BFC9A2F7BD6.idx index 5deae08..57efeaf 100644 Binary files a/.cache/clangd/index/global.h.67055BFC9A2F7BD6.idx and b/.cache/clangd/index/global.h.67055BFC9A2F7BD6.idx differ diff --git a/imgui.ini b/imgui.ini index 9c0d03e..d9f9c23 100644 --- a/imgui.ini +++ b/imgui.ini @@ -3,6 +3,6 @@ Pos=60,60 Size=400,400 [Window][Agnosia Debug] -Pos=98,111 +Pos=410,116 Size=494,375 diff --git a/src/devicelibrary.cpp b/src/devicelibrary.cpp index 80478fb..d10a422 100644 --- a/src/devicelibrary.cpp +++ b/src/devicelibrary.cpp @@ -258,6 +258,7 @@ void DeviceControl::createLogicalDevice() { .dynamicRendering = true, }; VkPhysicalDeviceFeatures featuresBase{ + .sampleRateShading = true, .samplerAnisotropy = true, }; diff --git a/src/graphics/graphicspipeline.cpp b/src/graphics/graphicspipeline.cpp index 923b488..e9a15e2 100644 --- a/src/graphics/graphicspipeline.cpp +++ b/src/graphics/graphicspipeline.cpp @@ -2,7 +2,6 @@ #include "imgui.h" #include "imgui_impl_vulkan.h" #include "texture.h" -#include namespace graphics_pipeline { @@ -149,7 +148,7 @@ void Graphics::createGraphicsPipeline() { VkPipelineMultisampleStateCreateInfo multisampling{}; multisampling.sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO; - multisampling.sampleShadingEnable = VK_FALSE; + multisampling.sampleShadingEnable = VK_TRUE; multisampling.rasterizationSamples = Global::perPixelSampleCount; // TODO: Document! VkPipelineDepthStencilStateCreateInfo depthStencil{}; diff --git a/src/graphics/render.cpp b/src/graphics/render.cpp index e95140f..db2e98b 100644 --- a/src/graphics/render.cpp +++ b/src/graphics/render.cpp @@ -267,7 +267,7 @@ void Render::init_imgui(VkInstance instance) { .DescriptorPool = imGuiDescriptorPool, .MinImageCount = Global::MAX_FRAMES_IN_FLIGHT, .ImageCount = Global::MAX_FRAMES_IN_FLIGHT, - .MSAASamples = VK_SAMPLE_COUNT_1_BIT, + .MSAASamples = Global::perPixelSampleCount, .UseDynamicRendering = true, .PipelineRenderingCreateInfo = pipelineRenderingCreateInfo, };