Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

ShadingRateFragmentSize

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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: ShadingRateInfo.supportsPerImageTile, ShadingRateInfo.QueryNativeValue

Properties

FragmentSize1x1Specifies no change to the vertical and horizontal resolution.
FragmentSize1x2Specifies that the shading rate should reduce vertical resolution 2x.
FragmentSize2x1Specifies that the shading rate should reduce horizontal resolution 2x.
FragmentSize2x2Specifies that the shading rate should reduce the resolution of both axes 2x.
FragmentSize1x4Specifies that the shading rate should reduce vertical resolution 4x.
FragmentSize4x1Specifies that the shading rate should reduce horizontal resolution 4x.
FragmentSize2x4Specifies that the shading rate should reduce horizontal resolution 2x, and reduce vertical 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.