Fix multisampling example for AMD hardware.
This commit is contained in:
parent
30980623af
commit
fd5996cbc0
1 changed files with 5 additions and 2 deletions
|
|
@ -341,8 +341,11 @@ public:
|
||||||
VK_CHECK_RESULT(vkCreateRenderPass(device, &renderPassInfo, nullptr, &renderPass));
|
VK_CHECK_RESULT(vkCreateRenderPass(device, &renderPassInfo, nullptr, &renderPass));
|
||||||
|
|
||||||
// Create custom overlay render pass
|
// Create custom overlay render pass
|
||||||
attachments[0].loadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
|
colorReference.attachment = 1;
|
||||||
attachments[1].loadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
|
attachments[1].loadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
|
||||||
|
subpass.pResolveAttachments = 0;
|
||||||
|
subpass.pDepthStencilAttachment = 0;
|
||||||
|
|
||||||
VK_CHECK_RESULT(vkCreateRenderPass(device, &renderPassInfo, nullptr, &uiRenderPass));
|
VK_CHECK_RESULT(vkCreateRenderPass(device, &renderPassInfo, nullptr, &uiRenderPass));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -752,7 +755,7 @@ public:
|
||||||
{
|
{
|
||||||
createInfo.renderPass = uiRenderPass;
|
createInfo.renderPass = uiRenderPass;
|
||||||
createInfo.framebuffers = frameBuffers;
|
createInfo.framebuffers = frameBuffers;
|
||||||
createInfo.rasterizationSamples = sampleCount;
|
createInfo.rasterizationSamples = VK_SAMPLE_COUNT_1_BIT;
|
||||||
createInfo.attachmentCount = 1;
|
createInfo.attachmentCount = 1;
|
||||||
createInfo.clearValues = {
|
createInfo.clearValues = {
|
||||||
{ { 1.0f, 1.0f, 1.0f, 1.0f } },
|
{ { 1.0f, 1.0f, 1.0f, 1.0f } },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue