# GetSwizzleR

> Returns FormatSwizzle enum of which channel is mapped to the R channel for a given format.

## Definition

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

## GetSwizzleR(GraphicsFormat)

Returns FormatSwizzle enum of which channel is mapped to the R channel for a given format.

```csharp
public static FormatSwizzle GetSwizzleR(GraphicsFormat format)
```

### Parameters

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

### Returns

| Type                                                                                    | Description |
| --------------------------------------------------------------------------------------- | ----------- |
| [FormatSwizzle](/engine/6000.0/script-reference/unityengine/rendering/formatswizzle.md) |             |

## GetSwizzleR(TextureFormat)

Returns FormatSwizzle enum of which channel is mapped to the R channel for a given format.

```csharp
public static FormatSwizzle GetSwizzleR(TextureFormat format)
```

### Parameters

**** (\[TextureFormat]\(/engine/6000.0/script-reference/unityengine/textureformat)):&#x20;

### Returns

| Type                                                                                    | Description |
| --------------------------------------------------------------------------------------- | ----------- |
| [FormatSwizzle](/engine/6000.0/script-reference/unityengine/rendering/formatswizzle.md) |             |
