Version: 2022.3

CustomRenderTexture.EnsureDoubleBufferConsistency

切换到手册
public void EnsureDoubleBufferConsistency ();

描述

Updates the internal Render Texture that a Custom Render Texture uses for double buffering, so that it matches the size and format of the Custom Render Texture.

Use this if you are implementing your own Custom Render Texture update loop for a Custom Render Texture that is double buffered. Unity does this automatically as part of the built-in Custom Render Texture update loop. See Also: Rendering.GraphicsSettings.disableBuiltinCustomRenderTextures, CustomRenderTexture.doubleBuffered.