Class GraphicsUtils
Provides low-level clearing helpers for render textures and compute buffers.
public static class GraphicsUtils
- Inheritance
-
GraphicsUtils
- Inherited Members
Methods
- ClearWithZeros(ComputeBuffer)
Clears a compute buffer to zero using the buffer-clear compute shader.
- ClearWithZeros(RenderTexture)
Clears a render texture to zero.
- CloneToRenderTexture(Texture, RenderTextureFormat)
Creates a standalone render texture with a copy of the source texture content.
- CreateBlankRT(int, RenderTextureFormat)
Creates a standalone square render texture, enables random write, and clears it to zero.
- CreateBlankRTCollection(int, int, RenderTextureFormat)
Creates a collection of standalone square render textures, each enabled for random write and cleared to zero.
- CreateSampleBuffer<T>(int)
Creates a float-packed compute buffer for Vista sample data.
- GetBlankTempRT(int, RenderTextureFormat)
Gets a temporary square render texture, enables random write, and clears it to zero.
- ReadRenderTexture(RenderTexture, Texture2D, bool)
Reads the full render texture into an existing Texture2D while preserving the previous active render texture. Assumes source and destination have the same dimensions and compatible formats.
- ReleaseTempRT(RenderTexture)
Releases a temporary render texture obtained from GetBlankTempRT(int, RenderTextureFormat).