---
title: IsLoaded()
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/amd/amdunityplugin/isloaded
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/amd/amdunityplugin/isloaded.md
last_updated: 2026-10-07
generated_at: 2026-11-11T13:31:05.808Z
locale: en-us
---

# IsLoaded()

> Checks whether the AMDUnityPlugin in the AMD native module has been loaded or not.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.AMD](/engine/7000.0/script-reference/unityengine/amd.md)
* **Assembly:** UnityEngine.AMDModule

```csharp
public static bool IsLoaded()
```

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the plugin has been loaded. Otherwise, returns false. |

### Examples

```csharp
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.HighDefinition;
using UnityEngine.AMD;

 // Example HDRP custom pass 
public class CustomFSRPass : CustomPass
{
    public static bool EnsureAMDPluginLoaded()
    {
        if (!AMDUnityPlugin.IsLoaded())
        {
            Debug.Log("AMDUnityPlugin is not loaded!");
            if (!AMDUnityPlugin.Load())
            {
                Debug.LogError("Unable to load AMDUnityPlugin");
                return false;
            }
        }

        Debug.Log("AMDUnityPlugin is successfully loaded!");
        return true;
    }

    void InitializeAMDDevice()
    {
        if (!EnsureAMDPluginLoaded())
            return;

        // device initialization code
    }

    protected override void Setup(ScriptableRenderContext renderContext, CommandBuffer cmd)
    {
        if (amdDevice == null)
        {
            InitializeAMDDevice();
        }

        // other pass setup code
    }

    protected override void Execute(CustomPassContext ctx)
    {
        // pass execution code
    }

    protected override void Cleanup()
    {
        // pass cleanup code
    }

    private GraphicsDevice amdDevice = null;
    // other member variables
}
```
