mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Fix MSAA depth resolve.
This commit is contained in:
parent
c20130036e
commit
0b3e0009d6
1 changed files with 6 additions and 1 deletions
|
|
@ -1368,10 +1368,15 @@ static void StretchRect(GuestDevice* device, uint32_t flags, uint32_t, GuestText
|
||||||
texture->framebuffer = g_device->createFramebuffer(desc);
|
texture->framebuffer = g_device->createFramebuffer(desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (g_framebuffer != texture->framebuffer.get())
|
||||||
|
{
|
||||||
|
commandList->setFramebuffer(texture->framebuffer.get());
|
||||||
|
g_framebuffer = texture->framebuffer.get();
|
||||||
|
}
|
||||||
|
|
||||||
bool oldHalfPixel = SetHalfPixel(false);
|
bool oldHalfPixel = SetHalfPixel(false);
|
||||||
FlushViewport();
|
FlushViewport();
|
||||||
|
|
||||||
commandList->setFramebuffer(texture->framebuffer.get());
|
|
||||||
commandList->setPipeline(g_resolveMsaaDepthPipelines[pipelineIndex].get());
|
commandList->setPipeline(g_resolveMsaaDepthPipelines[pipelineIndex].get());
|
||||||
commandList->setGraphicsPushConstants(0, &g_depthStencil->descriptorIndex, 0, sizeof(uint32_t));
|
commandList->setGraphicsPushConstants(0, &g_depthStencil->descriptorIndex, 0, sizeof(uint32_t));
|
||||||
commandList->drawInstanced(6, 1, 0, 0);
|
commandList->drawInstanced(6, 1, 0, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue