laplaceliu/tycho/pool does not have a README file

    FrameRing

    pub struct FrameRing {
    // private fields
    }

    FrameRing::alloc

    fn FrameRing::alloc(self : FrameRing, bytes : Int) -> Int?

    Reserve bytes (256-byte aligned) in the current slot. Returns the byte offset to pass to bind_storage(..., ...) or upload_*, or None when this slot is exhausted (callers fall back to an overflow allocation).

    FrameRing::begin_frame

    fn FrameRing::begin_frame(self : FrameRing, slot : Int) -> Unit

    Select the frame slot (slot is usually cmd.frame_slot()) and rewind the bump cursor to that slot's base.

    FrameRing::buffer

    FrameRing::destroy

    fn FrameRing::destroy(self : FrameRing) -> Unit

    FrameRing::new

    Create a ring with bytes_per_slot bytes per frame slot. slots should normally match the RHI frame-slot count (2).

    FrameRing::reset

    fn FrameRing::reset(self : FrameRing) -> Unit

    FrameRing::slot_bytes

    fn FrameRing::slot_bytes(self : FrameRing) -> Int

    FrameRing::upload_floats

    fn FrameRing::upload_floats(self : FrameRing, data : FixedArray[Float], count : Int) -> Int? raise
    RhiError

    Allocate and upload count floats; returns the byte offset, or None when the current slot is exhausted.

    FrameRing::used_bytes

    fn FrameRing::used_bytes(self : FrameRing) -> Int

    RenderTargetPool

    pub struct RenderTargetPool {
    // private fields
    }

    RenderTargetPool::acquire_depth

    Acquire only a depth/stencil attachment, for callers that already own the color target.

    RenderTargetPool::bytes_used

    fn RenderTargetPool::bytes_used(self : RenderTargetPool) -> Int

    RenderTargetPool::destroy

    fn RenderTargetPool::destroy(self : RenderTargetPool) -> Unit

    RenderTargetPool::release_all

    fn RenderTargetPool::release_all(self : RenderTargetPool) -> Unit

    RenderTargetPool::release_slot

    fn RenderTargetPool::release_slot(self : RenderTargetPool, slot : Int) -> Unit

    RenderTargetPool::set_max_bytes

    fn RenderTargetPool::set_max_bytes(self : RenderTargetPool, bytes : Int) -> Unit