Synced
ShaderCompiler.CompileGraphAsync
Section titled “ShaderCompiler.CompileGraphAsync”
- Captures an imported graph in the current owner generation, then starts native compilation without retaining its asset.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Assets.Authoring
Declaration
Section titled “Declaration”public System.Threading.Tasks.ValueTask<Inno.Rendering.Assets.Authoring.ShaderCompilationResult> Inno.Rendering.Assets.Authoring.ShaderCompiler.CompileGraphAsync(Inno.Rendering.Assets.ShaderAsset shader, Inno.Rendering.Assets.Authoring.ShaderCompileTarget target, Inno.Rendering.Assets.RenderShaderVariant variant, Inno.Extensibility.Types.TypeCatalog types, Inno.Core.Serialization.SerializationRegistry serialization, Inno.Core.Serialization.SerializationContext context, Inno.Assets.IAssetArtifactLookup artifacts, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter shader: Committed graph-backed shader asset.
Parameter target: Target policy and device capabilities.
Parameter variant: Exact material keyword selection.
Parameter types: Shared authoring type generation owner.
Parameter serialization: Owner converter registry.
Parameter context: Complete owner asset/reference context.
Parameter artifacts: Authoring artifact owner supplying the graph output, which is absent from runtime packages.
Parameter cancellationToken: Cancellation before candidate publication.
Returns
Section titled “Returns”A native compilation task for the captured graph, or graph diagnostics without any native work.