GetRenderTextureDescriptor(int, int, int, TextureDimension)
Utility function to create a RenderTextureDescriptor compatible with a shading rate image. This function does not perform the conversion from pixel to tile.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public static RenderTextureDescriptor GetRenderTextureDescriptor(int width, int height, int volumeDepth = 1, TextureDimension textureDimension = TextureDimension.Tex2D)
Parameters
Width of shading rate image
Height of shading rate image
The number of slices of the shading rate image. The default value is 1.
Dimensionality of the resulting shading rate image. The default value is 2D
Returns
Type | Description |
|---|---|
| RenderTextureDescriptor | The render texture descriptor compatible for shading rate image. |