文档

Unity Engine

Unity Engine

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.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static RenderTextureDescriptor GetRenderTextureDescriptor(int width, int height, int volumeDepth = 1, TextureDimension textureDimension = TextureDimension.Tex2D)

Parameters

width

Width of shading rate image

height

Height of shading rate image

volumeDepth

The number of slices of the shading rate image. The default value is 1.

textureDimension

Dimensionality of the resulting shading rate image. The default value is 2D

Returns

Type

Description

RenderTextureDescriptorThe render texture descriptor compatible for shading rate image.