Scripting API

AsyncGPUReadbackRequest

struct in UnityEngine.Rendering · UnityEngine.CoreModule

11 of 11 of Unity's membersUnity's documentation
In Tassix

A request to read a texture back to the CPU; it's done a frame later, as on the GPU. Texture2Ds read their pixels (RGBA32); other textures (render textures, which aren't drawn into yet) end with an error.

Properties 8

int depth { get; }
bool done { get; }
bool forcePlayerLoopUpdate { get; set; }
bool hasError { get; }
int height { get; }
int layerCount { get; }
int layerDataSize { get; }
int width { get; }

Methods 3

NativeArray<T> GetData<T>(int layer = 0)
void Update()
void WaitForCompletion()