Table of Contents

Method ReadRenderTexture

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

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.

public static void ReadRenderTexture(RenderTexture source, Texture2D destination, bool uploadToGpu = true)

Parameters

source RenderTexture
destination Texture2D
uploadToGpu bool

Whether to upload the read pixels back to the Texture2D's GPU resource.