ReleaseTemporaryRT(int)
Add a "release a temporary render texture" command.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public void ReleaseTemporaryRT(int nameID)
Parameters
Shader property name for this texture.
Remarks
Releases a temporary render texture with given name. Presumably you have called ::GetTemporaryRT to create it before.
Any temporary textures that were not explicitly released will be removed after camera is done rendering, or after Graphics.ExecuteCommandBuffer is done.
Additional Resources: CommandBuffer.GetTemporaryRT.