From 497558f3380ee84fb7d2ba10d083da6395ec4fdc Mon Sep 17 00:00:00 2001 From: baldurk Date: Sun, 24 Aug 2014 12:38:44 +0100 Subject: [PATCH] Display shader output as ints if that's the target format type --- renderdocui/Windows/PixelHistoryView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdocui/Windows/PixelHistoryView.cs b/renderdocui/Windows/PixelHistoryView.cs index b613e7cb7..d24c5b4ea 100644 --- a/renderdocui/Windows/PixelHistoryView.cs +++ b/renderdocui/Windows/PixelHistoryView.cs @@ -244,7 +244,7 @@ namespace renderdocui.Windows string name = String.Format("Primitive {0}\n", mod.primitiveID); - ResourceFormat fmt = new ResourceFormat(FormatComponentType.Float, 4, 4); + ResourceFormat fmt = new ResourceFormat(floatTex ? FormatComponentType.Float : texture.format.compType, 4, 4); string shadOutVal = "Shader Out\n\n" + ModificationValueString(mod.shaderOut, fmt, depth); string postModVal = "Tex After\n\n" + ModificationValueString(mod.postMod, texture.format, depth);