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

ShadingRateImage

class in UnityEngine.Rendering

/

Implemented in:UnityEngine.CoreModule

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

Encapsulate the informations and capabilities related to variable rate shading images.

To accommodate various graphic APIs, post-process configurations, and XR support, shading rate images necessitate both an image and its vertically flipped counterpart. While some combinations directly utilize the image, others mandate a flipped version. Unity has chosen to combine both to simplify developement. The resolution of shading rate images is in tiles and is platform-dependent. Functions that needs to be aware of this will specify how conversion is handled.

Static Methods

AllocFromPixelSizeCreates a shading rate image. This function performs the conversion from pixel to tile before the allocation.
GetAllocTileSizeReturns the tile size based on the given pixel size.
GetRenderTextureDescriptorUtility function to create a RenderTextureDescriptor compatible with a shading rate image. This function does not perform the conversion from pixel to tile.