Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Freezes an authored graph and its target-expanded function dependencies without publishing an asset.

API: engine
Project: Inno.Rendering.Assets.Authoring

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)

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.

Native immutable authoring artifact bytes usable by import or isolated preview compilation.