StaticGpuBufferPool

Small fence-aware pool for reusable static mesh buffers.

This follows the same lifetime model as vanilla's StagedVertexBuffer pool: buffers that were used by draw commands are not made available again until a GPU fence confirms that previous work has completed.

See also

StagedVertexBuffer
WorldBorderRenderer
WeatherEffectRenderer

Functions

Link copied to clipboard
open fun cleanup()
Link copied to clipboard
open fun release(@Nullable buffer: @Nullable GpuBuffer)
Link copied to clipboard
open fun upload(label: Supplier<String>, usage: Int, data: ByteBuffer): GpuBufferSlice