mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 08:26:50 +00:00
Extract command line #defines to fxc, roll them in when editing shaders
This commit is contained in:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user