Implement custom display shaders for OpenGL logs, no parameters yet

* glsl and hlsl custom display shaders are kept separate, and only shown
  for the appropriate log type.
* The little snippets added in the shader editor aren't updated yet, and
  none of the pre-defined shader constants are filled out.
This commit is contained in:
baldurk
2015-02-09 22:19:13 +00:00
parent 72cfee5c0f
commit 86d0b8a952
9 changed files with 303 additions and 101 deletions
+3 -2
View File
@@ -611,6 +611,7 @@ namespace renderdocui.Windows
private void customEdit_Click(object sender, EventArgs e)
{
var filename = customShader.Text;
var key = filename.ToUpperInvariant();
var files = new Dictionary<string, string>();
files.Add(filename, File.ReadAllText(Path.Combine(Core.ConfigDirectory, filename + m_Core.APIProps.ShaderExtension)));
@@ -629,10 +630,10 @@ namespace renderdocui.Windows
// Close Callback
() =>
{
m_CustomShaderEditor.Remove(filename);
m_CustomShaderEditor.Remove(key);
});
m_CustomShaderEditor[customShader.Text] = s;
m_CustomShaderEditor[key] = s;
s.Show(this.DockPanel);
}