Debug flag.
The reference to the pixel buffer.
The WebGL2 renderer.
The reference to a WebGL2 sync object.
The texture format on which the Texture Extractor must work.
The texture type on which the Texture Extractor must work.
The texture format on which the Texture Extractor should read.
The reference to the GPU buffer.
To know if we need to create a GPU buffer.
The caller name associated with this instance of texture extractor (optional, used for debug)
Generated RenderTexture for textures.
The compressor worker wrapper
Handling of the concurrency for the extraction (by default a queue of 1)
List of compression that could be applied with extraction
Extract a rectangular block of pixels from the texture (without un-pre-multiplying).
Options which configure extraction behavior
Free all the bound objects.
Called by the renderer contextChange runner.
Extract a rectangular block of pixels from the texture (without un-pre-multiplying).
Options which configure extraction behavior
Compress the buffer and returns a base64 image.
Compress the buffer into a worker and returns a base64 image
Buffer to convert into a compressed base64 image.
Width of the image.
Height of the image.
Format of the image.
Quality of the compression.
Compress the buffer locally (but expand the buffer into a worker) and returns a base64 image. The image format is forced to jpeg.
Buffer to convert into a compressed base64 image.
Width of the image.
Height of the image.
Quality of the compression.
Prepare data for the asynchronous readPixel.
Retrieve the content of the GPU buffer and put it pixels. Returns an object with the pixel buffer and dimensions.
The pixel buffer.
The width of the texture.
The height of the texture.
The size of the buffer.
Retrieve a pixel buffer of the given length. A cache is provided for the last length passed only (to avoid too much memory consumption)
Length of the required buffer.
The cached or newly created buffer.
Wait for the synchronization object to resolve.
Clear some key properties.
Convenience method to display the debug messages with the extractor.
The debug message to display.
Convenience method to display the error messages with the extractor.
The error message to display.
Returns the read buffer width/height multiplier.
A class or interface that provide support for WebGL async read pixel/texture data extraction.