# GetGraphicsFormat

> Translates RenderTextureFormat or TextureFormat into GraphicsFormat.

## Definition

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

## GetGraphicsFormat(TextureFormat, bool)

Translates RenderTextureFormat or TextureFormat into GraphicsFormat.

```csharp
public static GraphicsFormat GetGraphicsFormat(TextureFormat format, bool isSRGB)
```

### Parameters

**** (\[TextureFormat]\(/engine/6000.7/script-reference/unityengine/textureformat)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Returns

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

### Remarks

In Gamma project color space, Unity returns a linear GraphicsFormat regardless of `isSRGB` and `readWrite`.

## GetGraphicsFormat(RenderTextureFormat, bool)

Translates RenderTextureFormat or TextureFormat into GraphicsFormat.

```csharp
public static GraphicsFormat GetGraphicsFormat(RenderTextureFormat format, bool isSRGB)
```

### Parameters

**** (\[RenderTextureFormat]\(/engine/6000.7/script-reference/unityengine/rendertextureformat)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Returns

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

### Remarks

In Gamma project color space, Unity returns a linear GraphicsFormat regardless of `isSRGB` and `readWrite`.

## GetGraphicsFormat(RenderTextureFormat, RenderTextureReadWrite)

Translates RenderTextureFormat or TextureFormat into GraphicsFormat.

```csharp
public static GraphicsFormat GetGraphicsFormat(RenderTextureFormat format, RenderTextureReadWrite readWrite)
```

### Parameters

**** (\[RenderTextureFormat]\(/engine/6000.7/script-reference/unityengine/rendertextureformat)): **** (\[RenderTextureReadWrite]\(/engine/6000.7/script-reference/unityengine/rendertexturereadwrite)):&#x20;

### Returns

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

### Remarks

In Gamma project color space, Unity returns a linear GraphicsFormat regardless of `isSRGB` and `readWrite`.
