Class GlStreamingBuffer

java.lang.Object
dev.engine.graphics.opengl.GlStreamingBuffer
All Implemented Interfaces:
StreamingBuffer, AutoCloseable

public class GlStreamingBuffer extends Object implements StreamingBuffer
OpenGL implementation of StreamingBuffer using persistent mapped buffers.

Allocates a single large buffer of size frameSize * frameCount and persistently maps it with coherent writes. Each frame writes to a different region, avoiding GPU/CPU contention when combined with fences.