update ImGui MSAA setting, which caused it to render on top of the top left corner rather than the whole view, and enable sample shading, MSAA needs some setting to choose the best optimal performance vs quality mode rather than max, for performance
This commit is contained in:
parent
aa53a80fce
commit
a1544ce989
Binary file not shown.
Binary file not shown.
@ -3,6 +3,6 @@ Pos=60,60
|
|||||||
Size=400,400
|
Size=400,400
|
||||||
|
|
||||||
[Window][Agnosia Debug]
|
[Window][Agnosia Debug]
|
||||||
Pos=98,111
|
Pos=410,116
|
||||||
Size=494,375
|
Size=494,375
|
||||||
|
|
||||||
|
@ -258,6 +258,7 @@ void DeviceControl::createLogicalDevice() {
|
|||||||
.dynamicRendering = true,
|
.dynamicRendering = true,
|
||||||
};
|
};
|
||||||
VkPhysicalDeviceFeatures featuresBase{
|
VkPhysicalDeviceFeatures featuresBase{
|
||||||
|
.sampleRateShading = true,
|
||||||
.samplerAnisotropy = true,
|
.samplerAnisotropy = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#include "imgui.h"
|
#include "imgui.h"
|
||||||
#include "imgui_impl_vulkan.h"
|
#include "imgui_impl_vulkan.h"
|
||||||
#include "texture.h"
|
#include "texture.h"
|
||||||
#include <vulkan/vulkan_core.h>
|
|
||||||
|
|
||||||
namespace graphics_pipeline {
|
namespace graphics_pipeline {
|
||||||
|
|
||||||
@ -149,7 +148,7 @@ void Graphics::createGraphicsPipeline() {
|
|||||||
VkPipelineMultisampleStateCreateInfo multisampling{};
|
VkPipelineMultisampleStateCreateInfo multisampling{};
|
||||||
multisampling.sType =
|
multisampling.sType =
|
||||||
VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO;
|
VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO;
|
||||||
multisampling.sampleShadingEnable = VK_FALSE;
|
multisampling.sampleShadingEnable = VK_TRUE;
|
||||||
multisampling.rasterizationSamples = Global::perPixelSampleCount;
|
multisampling.rasterizationSamples = Global::perPixelSampleCount;
|
||||||
// TODO: Document!
|
// TODO: Document!
|
||||||
VkPipelineDepthStencilStateCreateInfo depthStencil{};
|
VkPipelineDepthStencilStateCreateInfo depthStencil{};
|
||||||
|
@ -267,7 +267,7 @@ void Render::init_imgui(VkInstance instance) {
|
|||||||
.DescriptorPool = imGuiDescriptorPool,
|
.DescriptorPool = imGuiDescriptorPool,
|
||||||
.MinImageCount = Global::MAX_FRAMES_IN_FLIGHT,
|
.MinImageCount = Global::MAX_FRAMES_IN_FLIGHT,
|
||||||
.ImageCount = Global::MAX_FRAMES_IN_FLIGHT,
|
.ImageCount = Global::MAX_FRAMES_IN_FLIGHT,
|
||||||
.MSAASamples = VK_SAMPLE_COUNT_1_BIT,
|
.MSAASamples = Global::perPixelSampleCount,
|
||||||
.UseDynamicRendering = true,
|
.UseDynamicRendering = true,
|
||||||
.PipelineRenderingCreateInfo = pipelineRenderingCreateInfo,
|
.PipelineRenderingCreateInfo = pipelineRenderingCreateInfo,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user