getPreviousJointsTexture method
The previous frame's joints texture from the ring, or the current texture on the first frame.
Implementation
gpu.Texture getPreviousJointsTexture() {
final prevSlot =
(_jointsTextureRingCursor - 1 + _jointsTextureRingSize) %
_jointsTextureRingSize;
return _jointsTextureRing[prevSlot] ??
_jointsTextureRing[_jointsTextureRingCursor]!;
}