# GetComponentCount

> Returns the number of components this format has.

## Definition

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

## GetComponentCount(GraphicsFormat)

Returns the number of components this format has.

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

### Parameters

**** (\[GraphicsFormat]\(/engine/6000.7/script-reference/unityengine/experimental/rendering/graphicsformat)): GraphicsFormat to use when retrieving the number of bits.

### Returns

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

## GetComponentCount(TextureFormat)

Returns the number of components this format has.

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

### Parameters

**** (\[TextureFormat]\(/engine/6000.7/script-reference/unityengine/textureformat)): GraphicsFormat to use when retrieving the number of bits.

### Returns

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