readPixels
Read back SwapChain pixels asynchronously.
The buffer's callback is invoked on the main thread when complete (usually after several endFrame() calls). Formats RGBA/RGBA_INTEGER and types UBYTE/UINT/INT/FLOAT are always supported.
Call between beginFrame() and endFrame(), typically after render(). Impacts performance significantly, especially on some mobile platforms.
Parameters
Left offset in pixels.
Bottom offset in pixels.
Width in pixels.
Height in pixels.
Pixel buffer descriptor for the result.
Read back RenderTarget pixels asynchronously.
Similar to readPixels(SwapChain), but reads from a RenderTarget instead.
Parameters
RenderTarget to read from.
Left offset in pixels.
Bottom offset in pixels.
Width in pixels.
Height in pixels.
Pixel buffer descriptor for the result.
Read back SwapChain pixels asynchronously.
The buffer's callback is invoked on the main thread when complete (usually after several endFrame() calls). Formats RGBA/RGBA_INTEGER and types UBYTE/UINT/INT/FLOAT are always supported.
Call between beginFrame() and endFrame(), typically after render(). Impacts performance significantly, especially on some mobile platforms.
Parameters
Left offset in pixels.
Bottom offset in pixels.
Width in pixels.
Height in pixels.
Pixel buffer descriptor for the result.
Read back RenderTarget pixels asynchronously.
Similar to readPixels(SwapChain), but reads from a RenderTarget instead.
Parameters
RenderTarget to read from.
Left offset in pixels.
Bottom offset in pixels.
Width in pixels.
Height in pixels.
Pixel buffer descriptor for the result.
Read back SwapChain pixels asynchronously.
The buffer's callback is invoked on the main thread when complete (usually after several endFrame() calls). Formats RGBA/RGBA_INTEGER and types UBYTE/UINT/INT/FLOAT are always supported.
Call between beginFrame() and endFrame(), typically after render(). Impacts performance significantly, especially on some mobile platforms.
Parameters
Left offset in pixels.
Bottom offset in pixels.
Width in pixels.
Height in pixels.
Pixel buffer descriptor for the result.
Read back RenderTarget pixels asynchronously.
Similar to readPixels(SwapChain), but reads from a RenderTarget instead.
Parameters
RenderTarget to read from.
Left offset in pixels.
Bottom offset in pixels.
Width in pixels.
Height in pixels.
Pixel buffer descriptor for the result.
Read back SwapChain pixels asynchronously.
The buffer's callback is invoked on the main thread when complete (usually after several endFrame() calls). Formats RGBA/RGBA_INTEGER and types UBYTE/UINT/INT/FLOAT are always supported.
Call between beginFrame() and endFrame(), typically after render(). Impacts performance significantly, especially on some mobile platforms.
Parameters
Left offset in pixels.
Bottom offset in pixels.
Width in pixels.
Height in pixels.
Pixel buffer descriptor for the result.
Read back RenderTarget pixels asynchronously.
Similar to readPixels(SwapChain), but reads from a RenderTarget instead.
Parameters
RenderTarget to read from.
Left offset in pixels.
Bottom offset in pixels.
Width in pixels.
Height in pixels.
Pixel buffer descriptor for the result.
Read back SwapChain pixels asynchronously.
The buffer's callback is invoked on the main thread when complete (usually after several endFrame() calls). Formats RGBA/RGBA_INTEGER and types UBYTE/UINT/INT/FLOAT are always supported.
Call between beginFrame() and endFrame(), typically after render(). Impacts performance significantly, especially on some mobile platforms.
Parameters
Left offset in pixels.
Bottom offset in pixels.
Width in pixels.
Height in pixels.
Pixel buffer descriptor for the result.
Read back RenderTarget pixels asynchronously.
Similar to readPixels(SwapChain), but reads from a RenderTarget instead.
Parameters
RenderTarget to read from.
Left offset in pixels.
Bottom offset in pixels.
Width in pixels.
Height in pixels.
Pixel buffer descriptor for the result.