# GetAlphaComponentCount

> Returns the number of alpha components of the format.

## Definition

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

## GetAlphaComponentCount(GraphicsFormat)

Returns the number of alpha components of the format.

```csharp
public static uint GetAlphaComponentCount(GraphicsFormat format)
```

### Parameters

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

### Returns

| Type                                                         | Description |
| ------------------------------------------------------------ | ----------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) |             |

## GetAlphaComponentCount(TextureFormat)

Returns the number of alpha components of the format.

```csharp
public static uint GetAlphaComponentCount(TextureFormat format)
```

### Parameters

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

### Returns

| Type                                                         | Description |
| ------------------------------------------------------------ | ----------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) |             |
