diff --git a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/RenderPass/Upscalers/UpscalerPlugin.cs b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/RenderPass/Upscalers/UpscalerPlugin.cs index 9d5f50d7..0f920b76 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/RenderPass/Upscalers/UpscalerPlugin.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/RenderPass/Upscalers/UpscalerPlugin.cs @@ -19,10 +19,14 @@ namespace UnityEngine.Rendering.HighDefinition.AMD private static UpscalerPlugin _activePlugin = AvailablePlugins[0]; public static UpscalerPlugin ActivePlugin => _activePlugin; - public static bool Load() => ActivePlugin.Load(); + static AMDUnityPlugin() + { + _ = Load(); + } - // HDRP never calls Load() on startup, so we reinterpret IsLoaded() here to mean: is loaded, or possible to be loaded lazily. - public static bool IsLoaded() => ActivePlugin.IsLoaded() || ActivePlugin.isSupported; + public static bool Load() => ActivePlugin.Load(); + + public static bool IsLoaded() => ActivePlugin.IsLoaded(); /// /// Get the list of available upscaler plugins, as a read-only list.