# FrameDataView.GfxResourceInfo

> Provides methods for retrieving graphics resource information.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor.Profiling](/engine/6000.0/script-reference/unityeditor/profiling.md)
* **Assembly:** UnityEditor

```csharp
public struct FrameDataView.GfxResourceInfo
```

## Remarks

```csharp
using UnityEditorInternal;
using UnityEditor.Profiling;

public class Example
{
    public static string GetGfxResourceName(int frame, ulong gfxResourceId)
    {
        using (var frameData = ProfilerDriver.GetRawFrameDataView(frame, 0))
        {
            if (frameData.GetGfxResourceInfo(gfxResourceId, out var info))
            {
                if (frameData.GetUnityObjectInfo(info.relatedInstanceId, out var objectInfo))
                    return objectInfo.name;
            }
            return "N/A";
        }
    }
}
```

Additional Resources: [FrameDataView.GetGfxResourceInfo](/engine/6000.0/script-reference/unityeditor/profiling/framedataview/getgfxresourceinfo.md).

## Properties

| Property                                                                                                                                  | Description                                            |
| ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [relatedAllocationRootId](/engine/6000.0/script-reference/unityeditor/profiling/framedataview/gfxresourceinfo/relatedallocationrootid.md) | Related native allocation id of the graphics resource. |
| [relatedInstanceId](/engine/6000.0/script-reference/unityeditor/profiling/framedataview/gfxresourceinfo/relatedinstanceid.md)             | Related instance ID of Unity Object.                   |
