Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced

ContentRenderTargetArtifactProvider.GetShaderArtifact

Section titled “ContentRenderTargetArtifactProvider.GetShaderArtifact”
  • Loads and validates one packaged shader target artifact when it exists.

API: engine
Project: Inno.Rendering.Runtime

public Inno.Rendering.Runtime.RenderTargetArtifactStatus Inno.Rendering.Runtime.ContentRenderTargetArtifactProvider.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 graphics capability snapshot.

Parameter artifact: Receives the decoded artifact when present.

F:Inno.Rendering.Runtime.RenderTargetArtifactStatus.Ready when the deployed artifact exists; otherwise, F:Inno.Rendering.Runtime.RenderTargetArtifactStatus.Unavailable.

Exception T:System.IO.InvalidDataException: Thrown when a deployed artifact exists but is corrupt or mismatched.

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