Synced
ShaderGraphArtifact.Capture
Section titled “ShaderGraphArtifact.Capture”
- Freezes an authored graph and its target-expanded function dependencies without publishing an asset.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Assets.Authoring
Declaration
Section titled “Declaration”public static byte[] Inno.Rendering.Assets.Authoring.ShaderGraphArtifact.Capture(Inno.Core.Graphs.GraphDocument graph, Inno.Extensibility.Types.TypeCatalog types, Inno.Core.Serialization.SerializationRegistry serialization, Inno.Core.Serialization.SerializationContext context, System.Func<System.Guid, string, byte[]> readSource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), System.Func<System.Guid, string, Inno.Core.Graphs.GraphDocument>? readGraph = null)Parameters
Section titled “Parameters”Parameter graph: Detached authoring document, including incomplete source records.
Parameter types: Current leased authoring generation.
Parameter serialization: Owner converters.
Parameter context: Complete owner reference and dependency context.
Parameter readSource: Reads an immutable function bundle by stable identity and diagnostic last-known path.
Parameter cancellationToken: Cancellation before node expansion, target expansion and dependency reads.
Parameter readGraph: Reads an authored Shader graph used as a reusable node, when the graph contains one.
Returns
Section titled “Returns”Native immutable authoring artifact bytes usable by import or isolated preview compilation.