mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-07 22:43:49 +00:00
Display quad overdraw as disabled when MSAA is enabled on vulkan
* No API supports the quad overdraw with MSAA, but on other APIs it's feasible to downgrade and render the overlay at single sampled. On Vulkan with renderpasses this is not possible.
This commit is contained in:
2 files changed
+20
-1
No files matched your search
@@ -3129,6 +3129,24 @@ void TextureViewer::OnEventChanged(uint32_t eventId)
|
||||
ShaderStage::Pixel, ShaderStage::Task, ShaderStage::Mesh,
|
||||
};
|
||||
|
||||
QFont font = ui->overlay->font();
|
||||
if(m_Ctx.APIProps().pipelineType == GraphicsAPI::Vulkan &&
|
||||
m_Ctx.CurVulkanPipelineState()->multisample.rasterSamples > 1)
|
||||
{
|
||||
font.setItalic(true);
|
||||
ui->overlay->setItemText((int)DebugOverlay::QuadOverdrawDraw, tr("Overdraw (N/A on MSAA)"));
|
||||
ui->overlay->setItemText((int)DebugOverlay::QuadOverdrawPass, tr("Overdraw (N/A on MSAA)"));
|
||||
ui->overlay->setItemData((int)DebugOverlay::QuadOverdrawDraw, font, Qt::FontRole);
|
||||
ui->overlay->setItemData((int)DebugOverlay::QuadOverdrawPass, font, Qt::FontRole);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->overlay->setItemText((int)DebugOverlay::QuadOverdrawDraw, tr("Quad Overdraw (Draw)"));
|
||||
ui->overlay->setItemText((int)DebugOverlay::QuadOverdrawPass, tr("Quad Overdraw (Pass)"));
|
||||
ui->overlay->setItemData((int)DebugOverlay::QuadOverdrawDraw, font, Qt::FontRole);
|
||||
ui->overlay->setItemData((int)DebugOverlay::QuadOverdrawPass, font, Qt::FontRole);
|
||||
}
|
||||
|
||||
int count = 7;
|
||||
|
||||
if(compute)
|
||||
|
||||
Reference in new issue
Block a user