answerReadback property

ByteData Function(TextureHandle texture, ScreenRect region)? answerReadback
getter/setter pair

What a readback answers, or null for a region of zeros.

A test that wants the renderer to act on a readback — an exposure that climbs, a pick that finds something — sets this to hand back the bytes the pass would have produced.

Implementation

ByteData Function(TextureHandle texture, ScreenRect region)? answerReadback;