Synced
ShaderGraphSourceStore.Save
Section titled “ShaderGraphSourceStore.Save”
- Saves serializable graph records independently of import or native compilation success.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Assets.Authoring
Declaration
Section titled “Declaration”public string Inno.Rendering.Assets.Authoring.ShaderGraphSourceStore.Save(Inno.Assets.AssetPath path, Inno.Core.Graphs.GraphDocument graph, string? expectedHash)Parameters
Section titled “Parameters”Parameter path: Exact destination within a writable active mount.
Parameter graph: Complete graph, including missing nodes and unresolved ports.
Parameter expectedHash: Fingerprint from the last read/save; null requires a new, nonexistent file.
Returns
Section titled “Returns”The saved fingerprint. Import runs separately through the normal asset watcher.
Exceptions
Section titled “Exceptions”Exception T:System.IO.IOException: The source changed externally, disappeared, or could not be written.
Exception T:System.InvalidOperationException: The mount is unavailable or read-only.