From cd35c726bc744db5f5279c91e50e60f8582c60eb Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 27 Feb 2015 12:24:47 +0000 Subject: [PATCH] Change GL pipeline state to just name shaders " Shader " * Since there's no better identifier, as all shaders are main() and there are no filenames to pick up. --- renderdocui/Windows/PipelineState/GLPipelineStateViewer.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/renderdocui/Windows/PipelineState/GLPipelineStateViewer.cs b/renderdocui/Windows/PipelineState/GLPipelineStateViewer.cs index 8880faa66..aa3bedf20 100644 --- a/renderdocui/Windows/PipelineState/GLPipelineStateViewer.cs +++ b/renderdocui/Windows/PipelineState/GLPipelineStateViewer.cs @@ -214,11 +214,14 @@ namespace renderdocui.Windows.PipelineState if (stage.Shader == ResourceId.Null) shader.Text = "Unbound"; else - shader.Text = "Shader " + stage.Shader.ToString(); + shader.Text = stage.stage.Str(APIPipelineStateType.OpenGL) + " Shader " + stage.Shader.ToString(); + // disabled since entry function is always main, and filenames have no names, so this is useless. + /* if (shaderDetails != null && shaderDetails.DebugInfo.entryFunc != "" && shaderDetails.DebugInfo.files.Length > 0) shader.Text = shaderDetails.DebugInfo.entryFunc + "()" + " - " + Path.GetFileName(shaderDetails.DebugInfo.files[0].filename); + */ int vs = 0; int vs2 = 0;