Extract command line #defines to fxc, roll them in when editing shaders

This commit is contained in:
baldurk
2015-03-29 18:29:20 +01:00
parent 37c1cbffd9
commit c0be5552e8
2 changed files with 48 additions and 0 deletions
@@ -1962,6 +1962,9 @@ namespace renderdocui.Windows.PipelineState
offs = compileSource.IndexOf("#include");
}
if (updatedfiles.ContainsKey("@cmdline"))
compileSource = updatedfiles["@cmdline"] + "\n\n" + compileSource;
// invoke off to the ReplayRenderer to replace the log's shader
// with our edited one
m_Core.Renderer.BeginInvoke((ReplayRenderer r) =>