sampledTexture property

  1. @override
Texture? get sampledTexture
override

The frame to sample this draw, kicking off the next capture when one is due. Capture is driven from here rather than from a ticker, so a source nothing samples costs nothing.

Implementation

@override
gpu.Texture? get sampledTexture {
  if (shouldCapture(DateTime.now())) unawaited(_capture());
  return _texture;
}