mirror of https://github.com/AxioDL/boo.git
Fix vulkan multisampling
This commit is contained in:
parent
fdf37c95e0
commit
f00d77415a
|
@ -862,6 +862,7 @@ void VulkanContext::initSwapChain(VulkanContext::Window& windowCtx, VkSurfaceKHR
|
||||||
|
|
||||||
/* render pass color only */
|
/* render pass color only */
|
||||||
attachments[0].format = m_displayFormat;
|
attachments[0].format = m_displayFormat;
|
||||||
|
attachments[0].samples = VK_SAMPLE_COUNT_1_BIT;
|
||||||
renderPass.attachmentCount = 1;
|
renderPass.attachmentCount = 1;
|
||||||
subpass.pDepthStencilAttachment = nullptr;
|
subpass.pDepthStencilAttachment = nullptr;
|
||||||
ThrowIfFailed(vk::CreateRenderPass(m_dev, &renderPass, nullptr, &m_passColorOnly));
|
ThrowIfFailed(vk::CreateRenderPass(m_dev, &renderPass, nullptr, &m_passColorOnly));
|
||||||
|
|
Loading…
Reference in New Issue