AllocFromPixelSize(in RenderTextureDescriptor)
Creates a shading rate image. This function performs the conversion from pixel to tile before the allocation.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
AllocFromPixelSize(RenderTextureDescriptor)
public static RenderTexture AllocFromPixelSize(in RenderTextureDescriptor rtDesc)
Parameters
Render texture descriptor where width and height are in pixels.
Returns
Type | Description |
|---|---|
| RenderTexture | The shading rate image for the given size as a render texture. |