Synced
ShaderCompiler.CompileGraphAsync
Section titled “ShaderCompiler.CompileGraphAsync”
- Compiles an immutable import or preview candidate without reading or mutating a canonical Shader 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(System.ReadOnlyMemory<byte> artifact, 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, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter artifact: Frozen target-expanded graph and source bundles.
Parameter target: Target policy and capabilities.
Parameter variant: Exact keyword selection.
Parameter types: Current authoring generation.
Parameter serialization: Owner converter registry.
Parameter context: Complete owner references captured before asynchronous native work.
Parameter cancellationToken: Cancellation of this candidate.
Returns
Section titled “Returns”A complete immutable compilation result, never published by this method.