Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public enum ShadingRateFragmentSize

Fields

Value

Description

FragmentSize1x1Specifies no change to the vertical and horizontal resolution.
FragmentSize1x2Specifies that the shading rate should reduce vertical resolution 2x.
FragmentSize1x4Specifies that the shading rate should reduce vertical resolution 4x.
FragmentSize2x1Specifies that the shading rate should reduce horizontal resolution 2x.
FragmentSize2x2Specifies that the shading rate should reduce the resolution of both axes 2x.
FragmentSize2x4Specifies that the shading rate should reduce horizontal resolution 2x, and reduce vertical resolution 4x.
FragmentSize4x1Specifies that the shading rate should reduce horizontal resolution 4x.
FragmentSize4x2Specifies that the shading rate should reduce horizontal resolution 4x, and reduce vertical resolution 2x.
FragmentSize4x4Specifies that the shading rate should reduce the resolution of both axes 4x.