Fix vulkan multisampling

This commit is contained in:
Jack Andersen 2018-05-26 19:13:50 -10:00
parent fdf37c95e0
commit f00d77415a
1 changed files with 1 additions and 0 deletions

View File

@ -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));