Synced
ContentRenderTargetArtifactProvider.GetShaderArtifact
Section titled “ContentRenderTargetArtifactProvider.GetShaderArtifact”
- Loads and validates one packaged shader target artifact when it exists.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Runtime
Declaration
Section titled “Declaration”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”F:Inno.Rendering.Runtime.RenderTargetArtifactStatus.Ready when the deployed artifact exists; otherwise, F:Inno.Rendering.Runtime.RenderTargetArtifactStatus.Unavailable.
Exceptions
Section titled “Exceptions”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.