# graphicsDeviceType

> The graphics device API type the collection is intended to be used with.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.Rendering](/engine/6000.7/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public GraphicsDeviceType graphicsDeviceType { get; set; }
```

### Remarks

The same shader variant and graphics state on different graphics APIs can result in different GPU representations. To ensure that the accurate GPU representation is created, it is recommended that a collection is prewarmed on the same graphics API that it was recorded on. When a collection is recorded via [GraphicsStateCollection.BeginTrace](/engine/6000.7/script-reference/unityengine/rendering/graphicsstatecollection/begintrace.md)/[GraphicsStateCollection.EndTrace](/engine/6000.7/script-reference/unityengine/rendering/graphicsstatecollection/endtrace.md), this value is set to [SystemInfo.graphicsDeviceType](/engine/6000.7/script-reference/unityengine/systeminfo/graphicsdevicetype.md).

Additional Resources: [GraphicsDeviceType](/engine/6000.7/script-reference/unityengine/rendering/graphicsdevicetype.md).
