# SupportsVertexAttributeFormat(VertexAttributeFormat, int)

> Indicates whether the given combination of a vertex attribute format and dimension is supported on this device.

## Definition

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

```csharp
public static bool SupportsVertexAttributeFormat(VertexAttributeFormat format, int dimension)
```

### Parameters

**** (\[VertexAttributeFormat]\(/engine/6000.7/script-reference/unityengine/rendering/vertexattributeformat)): The [VertexAttributeFormat](/engine/6000.7/script-reference/unityengine/rendering/vertexattributeformat.md) format to look up.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The dimension of vertex data to check for.

### Returns

| Type                                                          | Description                                               |
| ------------------------------------------------------------- | --------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the format with the given dimension is supported. |

### Remarks

Not all [VertexAttributeFormat](/engine/6000.7/script-reference/unityengine/rendering/vertexattributeformat.md) and dimension combinations are supported. The most common restriction is that format and dimension data size must be a multiple of 4 bytes, so for example [VertexAttributeFormat.UNorm8](/engine/6000.7/script-reference/unityengine/rendering/vertexattributeformat/unorm8.md) with dimensions below 4 are not supported. Some platforms or devices might have more limitations, for example [VertexAttributeFormat.Float16](/engine/6000.7/script-reference/unityengine/rendering/vertexattributeformat/float16.md) is not supported by some mobile phones.

Additional Resources: [VertexAttributeFormat](/engine/6000.7/script-reference/unityengine/rendering/vertexattributeformat.md), [VertexAttributeDescriptor](/engine/6000.7/script-reference/unityengine/rendering/vertexattributedescriptor.md).
