Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Creates a render runtime without installing any concrete pipeline.

API: engine
Project: Inno.Rendering.Runtime

public Inno.Rendering.Runtime.RenderRuntime.RenderRuntime(Inno.Extensibility.Types.TypeCatalog types, Inno.Rendering.IRenderDevice device, Inno.Core.Diagnostics.IDiagnosticReporter diagnostics, System.Collections.Generic.IEnumerable<Inno.Rendering.IRenderFrameGraphContributor>? contributors = null, Inno.Rendering.Runtime.IRenderTargetArtifactProvider? targetArtifacts = null, System.Func<Inno.References.ContentReadScope>? contentScopeProvider = null, System.Func<Inno.Rendering.RenderPresentationSize, Inno.Rendering.RenderViewport>? primaryPresentationViewportProvider = null, Inno.Rendering.Runtime.RenderResourceLimits? resourceLimits = null, System.Func<Inno.Input.InputSnapshot>? inputSnapshotProvider = null, System.Func<Inno.Rendering.RenderPresentationSize?>? primaryInputSurfaceSizeProvider = null, Inno.Rendering.IRenderLayerCompositionProgramProvider? compositionProgramProvider = null)

Parameter device: Active backend-neutral device.

Parameter types: The type catalog that owns render extension generations.

Parameter diagnostics: Owner-bound structured diagnostic producer.

Parameter contributors: Optional frame-final contributors such as an ImGui backend.

Parameter targetArtifacts: Provider of immutable target artifacts. Editor hosts may provide an asynchronous authoring-backed implementation, while Player hosts provide a source-free deployment implementation.

Parameter contentScopeProvider: Optional host callback that supplies explicit current-frame content without coupling Rendering to Scene or documents.

Parameter primaryPresentationViewportProvider: Optional host callback that selects the content region within the primary presentation surface. The complete surface is used when omitted.

Parameter resourceLimits: Finite native cache and asynchronous readback limits; omitted values use the engine defaults.

Parameter inputSnapshotProvider: Optional host callback that reads the completed session input snapshot when output is collected.

Parameter primaryInputSurfaceSizeProvider: Optional logical input extent used for pointer scaling; returns null while input has no surface.

Parameter compositionProgramProvider: Backend-specific program provider used when the host composites multiple render layers.

Exception T:System.ArgumentException: The contributor sequence contains a null entry or the same contributor more than once. No rendering generation is registered in this case.