Synced
EditorRenderTargetArtifactProvider.GetShaderArtifact
Section titled “EditorRenderTargetArtifactProvider.GetShaderArtifact”
- Returns a matching compiled shader when available and schedules a new candidate when source state changed.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Rendering
Declaration
Section titled “Declaration”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”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.
Exceptions
Section titled “Exceptions”Exception T:System.ObjectDisposedException: Thrown when this provider has been disposed.
Exception T:System.ArgumentNullException: Thrown when shader or capabilities is null.