# ConvertToAlphaFormat

> Input a GraphicsFormat to return an equivalent GraphicsFormat that includes an alpha component.

## Definition

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

## ConvertToAlphaFormat(GraphicsFormat)

Input a GraphicsFormat to return an equivalent GraphicsFormat that includes an alpha component.

```csharp
public static GraphicsFormat ConvertToAlphaFormat(GraphicsFormat format)
```

### Parameters

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

### Returns

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

## ConvertToAlphaFormat(TextureFormat)

Input a TextureFormat to return an equivalent TextureFormat that includes an alpha component.

```csharp
public static TextureFormat ConvertToAlphaFormat(TextureFormat format)
```

### Parameters

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

### Returns

| Type                                                                          | Description |
| ----------------------------------------------------------------------------- | ----------- |
| [TextureFormat](/engine/6000.5/script-reference/unityengine/textureformat.md) |             |
