Synced
ShaderCompiler.CompileAsync
Section titled “ShaderCompiler.CompileAsync”
- Compiles every graph-lowered pass through the adapter’s typed stage interface.
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.CompileAsync(Inno.Rendering.Assets.ShaderDefinition definition, Inno.Rendering.Shaders.ShaderGraphProgramResult program, Inno.Rendering.Assets.Authoring.ShaderCompileTarget target, Inno.Rendering.Assets.RenderShaderVariant variant, Inno.Core.Serialization.SerializationRegistry serialization, Inno.Core.Serialization.SerializationContext context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter definition: Source-free material, technique, capability and pass contract.
Parameter program: Complete graph lowering result for this exact variant.
Parameter target: Target compiler policy and capabilities.
Parameter variant: Keyword selection already applied while lowering source functions and graph nodes.
Parameter serialization: Current owner registry used to capture the runtime contract before asynchronous work.
Parameter context: Complete owner reference context; only the encoded stable references cross the asynchronous boundary.
Parameter cancellationToken: Cancellation before candidate publication.
Returns
Section titled “Returns”One complete immutable target artifact, or errors without a partial candidate.