releaseGeometry method

  1. @override
void releaseGeometry(
  1. GeometryBuffer geometry
)
override

Releases one geometry buffer, rather than waiting for the whole device to go.

The contract is TextureAllocator.releaseTexture's, which this device is also required to implement — that one is declared beside createTexture because the pool that owns most of the engine's targets holds an allocator rather than a device.

Implementation

@override
void releaseGeometry(GeometryBuffer geometry) =>
    releasedGeometry.add(geometry);