mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 15:06:32 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user