# CreateDebugView()

> Allocates and returns a debug view. The view must be updated with UpdateDebugView() and deallocated with DeleteDebugView().

## Definition

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

```csharp
public GraphicsDevice.GraphicsDeviceDebugView CreateDebugView()
```

### Returns

| Type                                                                                                                 | Description |
| -------------------------------------------------------------------------------------------------------------------- | ----------- |
| [GraphicsDeviceDebugView](/engine/6000.7/script-reference/unityengine/amd/graphicsdevice/graphicsdevicedebugview.md) |             |
