# GetCompatibleFormat

> Obsolete. Use the overload with a GraphicsFormatUsage parameter instead.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Device](/engine/6000.7/script-reference/unityengine/device.md)
* **Assembly:** UnityEngine.CoreModule

## GetCompatibleFormat(GraphicsFormat, FormatUsage)

Obsolete. Use the overload with a [GraphicsFormatUsage](/engine/6000.7/script-reference/unityengine/experimental/rendering/graphicsformatusage.md) parameter instead.

> **Warning:**
>
> **Deprecated.** Use overload with a GraphicsFormatUsage parameter instead

```csharp
public static GraphicsFormat GetCompatibleFormat(GraphicsFormat format, FormatUsage usage)
```

### Parameters

**** (\[GraphicsFormat]\(/engine/6000.7/script-reference/unityengine/experimental/rendering/graphicsformat)): **** (\[FormatUsage]\(/engine/6000.7/script-reference/unityengine/experimental/rendering/formatusage)):&#x20;

### Returns

| Type                                                                                                   | Description |
| ------------------------------------------------------------------------------------------------------ | ----------- |
| [GraphicsFormat](/engine/6000.7/script-reference/unityengine/experimental/rendering/graphicsformat.md) |             |

## GetCompatibleFormat(GraphicsFormat, GraphicsFormatUsage)

This has the same functionality as [SystemInfo.GetCompatibleFormat](/engine/6000.7/script-reference/unityengine/systeminfo/getcompatibleformat.md) and also mimics platform-specific behavior in the Unity Editor.

```csharp
public static GraphicsFormat GetCompatibleFormat(GraphicsFormat format, GraphicsFormatUsage usage)
```

### Parameters

**** (\[GraphicsFormat]\(/engine/6000.7/script-reference/unityengine/experimental/rendering/graphicsformat)): **** (\[GraphicsFormatUsage]\(/engine/6000.7/script-reference/unityengine/experimental/rendering/graphicsformatusage)):&#x20;

### Returns

| Type                                                                                                   | Description |
| ------------------------------------------------------------------------------------------------------ | ----------- |
| [GraphicsFormat](/engine/6000.7/script-reference/unityengine/experimental/rendering/graphicsformat.md) |             |
