# FrameDataView.GfxResourceInfo

> Provides methods for retrieving graphics resource information.

## Definition

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

```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.relatedEntityId, out var objectInfo))
                    return objectInfo.name;
            }
            return "N/A";
        }
    }
}
```

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

## Properties

| Property                                                                                                                                  | Description                                            |
| ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [relatedAllocationRootId](/engine/6000.7/script-reference/unityeditor/profiling/framedataview/gfxresourceinfo/relatedallocationrootid.md) | Related native allocation id of the graphics resource. |
| [relatedEntityId](/engine/6000.7/script-reference/unityeditor/profiling/framedataview/gfxresourceinfo/relatedentityid.md)                 | Related EntityId of Unity Object.                      |
