|
|
|
@ -19,10 +19,14 @@ namespace UnityEngine.Rendering.HighDefinition.AMD |
|
|
|
private static UpscalerPlugin _activePlugin = AvailablePlugins[0]; |
|
|
|
public static UpscalerPlugin ActivePlugin => _activePlugin; |
|
|
|
|
|
|
|
static AMDUnityPlugin() |
|
|
|
{ |
|
|
|
_ = Load(); |
|
|
|
} |
|
|
|
|
|
|
|
public static bool Load() => ActivePlugin.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 IsLoaded() => ActivePlugin.IsLoaded(); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get the list of available upscaler plugins, as a read-only list.
|
|
|
|
|