Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Compiles validated Shader IR through one target toolchain.

  • Carries validated inputs and outputs for one shader compilation stage.

  • Carries validated inputs and outputs for one shader compilation stage.

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

public sealed class Inno.Rendering.Assets.Authoring.ShaderCompiler
Kind Element Description
Constructors ShaderCompiler.Constructor Creates a common IR compiler with one backend-owned target toolchain.
Methods ShaderCompiler.CompileAsync(Inno.Rendering.Assets.ShaderDefinition,Inno.Rendering.Shaders.ShaderGraphProgramResult,Inno.Rendering.Assets.Authoring.ShaderCompileTarget,Inno.Rendering.Assets.RenderShaderVariant,Inno.Core.Serialization.SerializationRegistry,Inno.Core.Serialization.SerializationContext,System.Threading.CancellationToken) Compiles every graph-lowered pass through the adapter’s typed stage interface.
Methods ShaderCompiler.CompileAsync(Inno.Rendering.Shaders.ShaderIrStage,Inno.Rendering.Assets.Authoring.ShaderCompileTarget,System.Threading.CancellationToken) Compiles a typed stage through the configured adapter without an intermediate complete-source authoring asset.
Methods ShaderCompiler.CompileGraphAsync(Inno.Rendering.Assets.ShaderAsset,Inno.Rendering.Assets.Authoring.ShaderCompileTarget,Inno.Rendering.Assets.RenderShaderVariant,Inno.Extensibility.Types.TypeCatalog,Inno.Core.Serialization.SerializationRegistry,Inno.Core.Serialization.SerializationContext,Inno.Assets.IAssetArtifactLookup,System.Threading.CancellationToken) Captures an imported graph in the current owner generation, then starts native compilation without retaining its asset.
Methods ShaderCompiler.CompileGraphAsync(System.ReadOnlyMemory{System.Byte},Inno.Rendering.Assets.Authoring.ShaderCompileTarget,Inno.Rendering.Assets.RenderShaderVariant,Inno.Extensibility.Types.TypeCatalog,Inno.Core.Serialization.SerializationRegistry,Inno.Core.Serialization.SerializationContext,System.Threading.CancellationToken) Compiles an immutable import or preview candidate without reading or mutating a canonical Shader asset.
Methods ShaderCompiler.CreateTarget Creates a target supported by the configured backend compiler.