# ShadingRateFragmentSize

> Constants that specify the shading rate. Not all values are supported by all hardware. Avaibility should be queried first. See ShadingRateInfo.availableFragmentSizes for details. Additional Resources: CommandBuffer.SetShadingRateFragmentSize, ShadingRateInfo.supportsPerImageTile, ShadingRateInfo.QueryNativeValue.

## Definition

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

```csharp
public enum ShadingRateFragmentSize
```

## Fields

| Value                                                                                                               | Description                                                                                                |
| ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [FragmentSize1x1](/engine/6000.5/script-reference/unityengine/rendering/shadingratefragmentsize/fragmentsize1x1.md) | Specifies no change to the vertical and horizontal resolution.                                             |
| [FragmentSize1x2](/engine/6000.5/script-reference/unityengine/rendering/shadingratefragmentsize/fragmentsize1x2.md) | Specifies that the shading rate should reduce vertical resolution 2x.                                      |
| [FragmentSize1x4](/engine/6000.5/script-reference/unityengine/rendering/shadingratefragmentsize/fragmentsize1x4.md) | Specifies that the shading rate should reduce vertical resolution 4x.                                      |
| [FragmentSize2x1](/engine/6000.5/script-reference/unityengine/rendering/shadingratefragmentsize/fragmentsize2x1.md) | Specifies that the shading rate should reduce horizontal resolution 2x.                                    |
| [FragmentSize2x2](/engine/6000.5/script-reference/unityengine/rendering/shadingratefragmentsize/fragmentsize2x2.md) | Specifies that the shading rate should reduce the resolution of both axes 2x.                              |
| [FragmentSize2x4](/engine/6000.5/script-reference/unityengine/rendering/shadingratefragmentsize/fragmentsize2x4.md) | Specifies that the shading rate should reduce horizontal resolution 2x, and reduce vertical resolution 4x. |
| [FragmentSize4x1](/engine/6000.5/script-reference/unityengine/rendering/shadingratefragmentsize/fragmentsize4x1.md) | Specifies that the shading rate should reduce horizontal resolution 4x.                                    |
| [FragmentSize4x2](/engine/6000.5/script-reference/unityengine/rendering/shadingratefragmentsize/fragmentsize4x2.md) | Specifies that the shading rate should reduce horizontal resolution 4x, and reduce vertical resolution 2x. |
| [FragmentSize4x4](/engine/6000.5/script-reference/unityengine/rendering/shadingratefragmentsize/fragmentsize4x4.md) | Specifies that the shading rate should reduce the resolution of both axes 4x.                              |
