Version: 1.5
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

The ShadingRateFragmentSize enumeration defines the fragment size configurations that can be used with Variable Rate Shading (VRS).

Each value represents the size of a shading fragment in pixels, determining the shading rate for rendering.

Properties

Size1x1Each fragment corresponds to 1x1 pixels.
Size1x2Each fragment corresponds to 1x2 pixels.
Size2x1Each fragment corresponds to 2x1 pixels.
Size2x2Each fragment corresponds to 2x2 pixels.
Size1x4Each fragment corresponds to 1x4 pixels.
Size4x1Each fragment corresponds to 4x1 pixels.
Size2x4Each fragment corresponds to 2x4 pixels.
Size4x2Each fragment corresponds to 4x2 pixels.
Size4x4Each fragment corresponds to 4x4 pixels.
SizeCountThe count of ShadingRateFragmentSize.