API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfacePixelReaderOptions
@codexo/exojs / rendering / stable
Options for RenderingContext.createPixelReader.
2
props
0
methods
0
events
Import
import { PixelReaderOptions } from '@codexo/exojs'Options for RenderingContext.createPixelReader.
Properties2
Sub-rectangle to read, in pixels from the texture's top-left corner. Defaults to the whole texture.
slots?: numberStaging slots, each holding one read's pixels until it is released. Defaults to 2: one read in flight while the previous result is still held. Every slot costs width * height * 4 bytes for the reader's lifetime, so size this from how many reads the consumer keeps outstanding, not generously.
Source