Ignore typecast for pixel context view, on custom shaders. Closes #2459

* When we've applied a custom shader we're now displaying from our internal
  custom shader output texture which means we need to ignore some display
  properties. These are already ignored in RenderTexture where the custom shader
  is applied, but we also need to ignore it in the context display.
This commit is contained in:
baldurk
2022-01-28 13:09:31 +00:00
parent 387d12db42
commit 9d0511bf44
+6
View File
@@ -542,8 +542,14 @@ void ReplayOutput::DisplayContext()
disp.customShaderId = ResourceId();
if(m_RenderData.texDisplay.customShaderId != ResourceId())
{
disp.resourceId = m_CustomShaderResourceId;
disp.typeCast = CompType::Typeless;
disp.customShaderId = ResourceId();
disp.subresource.slice = 0;
}
if((m_RenderData.texDisplay.overlay == DebugOverlay::QuadOverdrawDraw ||
m_RenderData.texDisplay.overlay == DebugOverlay::QuadOverdrawPass ||
m_RenderData.texDisplay.overlay == DebugOverlay::TriangleSizeDraw ||