getBufferSubData

open override fun getBufferSubData(target: Int, srcOffset: Int, dst: ByteArray)

Drain bytes from the buffer object bound to target (e.g. GL_PIXEL_PACK_BUFFER) into dst, starting at byte srcOffset within the buffer object. Blocks if the GPU is still writing the source range; the typical pattern is to wait for fenceSync to signal first.