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.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public enum ShadingRateFragmentSize
Fields
Value | Description |
|---|---|
| FragmentSize1x1 | Specifies no change to the vertical and horizontal resolution. |
| FragmentSize1x2 | Specifies that the shading rate should reduce vertical resolution 2x. |
| FragmentSize1x4 | Specifies that the shading rate should reduce vertical resolution 4x. |
| FragmentSize2x1 | Specifies that the shading rate should reduce horizontal resolution 2x. |
| FragmentSize2x2 | Specifies that the shading rate should reduce the resolution of both axes 2x. |
| FragmentSize2x4 | Specifies that the shading rate should reduce horizontal resolution 2x, and reduce vertical resolution 4x. |
| FragmentSize4x1 | Specifies that the shading rate should reduce horizontal resolution 4x. |
| FragmentSize4x2 | Specifies that the shading rate should reduce horizontal resolution 4x, and reduce vertical resolution 2x. |
| FragmentSize4x4 | Specifies that the shading rate should reduce the resolution of both axes 4x. |