#unity/日常积累 ## 描述 标识 [CommandBuffer](https://docs.unity.cn/cn/2020.3/ScriptReference/Rendering.CommandBuffer.html) 的 [RenderTexture](https://docs.unity.cn/cn/2020.3/ScriptReference/RenderTexture.html)。 可以通过多种方式标识渲染纹理,例如 [RenderTexture](https://docs.unity.cn/cn/2020.3/ScriptReference/RenderTexture.html) 对象、一个内置渲染纹理 ([BuiltinRenderTextureType](https://docs.unity.cn/cn/2020.3/ScriptReference/Rendering.BuiltinRenderTextureType.html)) 或(使用 [CommandBuffer.GetTemporaryRT](https://docs.unity.cn/cn/2020.3/ScriptReference/Rendering.CommandBuffer.GetTemporaryRT.html) 创建的)具有名称的临时渲染纹理。 此结构用作一种纹理标识方式,使用隐式转换运算符,在大多数情况下都可以减少键入。 另请参阅:[CommandBuffer](https://docs.unity.cn/cn/2020.3/ScriptReference/Rendering.CommandBuffer.html)。 ## 静态变量 [AllDepthSlices](https://docs.unity.cn/cn/2020.3/ScriptReference/Rendering.RenderTargetIdentifier.AllDepthSlices.html) All depth-slices of the render resource are bound for rendering. For textures which are neither array nor 3D, the default slice is bound. ## 构造函数 [RenderTargetIdentifier](https://docs.unity.cn/cn/2020.3/ScriptReference/Rendering.RenderTargetIdentifier-ctor.html) 创建渲染目标标识符。