Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced

EditorRenderTargetArtifactProvider.GetShaderArtifact

Section titled “EditorRenderTargetArtifactProvider.GetShaderArtifact”
  • Returns a matching compiled shader when available and schedules a new candidate when source state changed.

API: engine
Project: Inno.Editor.Rendering

public Inno.Rendering.Runtime.RenderTargetArtifactStatus Inno.Editor.Rendering.EditorRenderTargetArtifactProvider.GetShaderArtifact(Inno.Rendering.Assets.ShaderAsset shader, Inno.Rendering.Assets.RenderShaderVariant variant, Inno.Rendering.GraphicsCapabilities capabilities, out Inno.Rendering.Assets.RenderShaderArtifact? artifact)

Parameter shader: The imported backend-neutral shader asset.

Parameter variant: The exact material keyword selection.

Parameter capabilities: The active device capability snapshot used to select the target compiler profile.

Parameter artifact: Receives the current candidate or the last-good artifact while a replacement is compiling.

F:Inno.Rendering.Runtime.RenderTargetArtifactStatus.Ready when a current or last-good artifact is usable; otherwise, the exact pending or failed state of the first candidate.

Exception T:System.ObjectDisposedException: Thrown when this provider has been disposed.

Exception T:System.ArgumentNullException: Thrown when shader or capabilities is null.