Version: 2022.1

RenderTextureDescriptor.RenderTextureDescriptorConstructor

切换到手册
public RenderTextureDescriptor (int width, int height);
public RenderTextureDescriptor (int width, int height, RenderTextureFormat colorFormat);
public RenderTextureDescriptor (int width, int height, RenderTextureFormat colorFormat, int depthBufferBits);
public RenderTextureDescriptor (int width, int height, RenderTextureFormat colorFormat, int depthBufferBits, int mipCount);

参数

width RenderTexture 的宽度(以像素为单位)。
height RenderTexture 的高度(以像素为单位)。
colorFormat RenderTexture 的颜色格式。
depthStencilFormat The depth stencil format for the RenderTexture.
depthBufferBits 用于深度缓冲区的位数。
mipCount Amount of mips to allocate for the RenderTexture.

描述

使用默认值或特定宽度、高度和格式创建 RenderTextureDescriptor。