VFX-JS
    Preparing search index...

    Type Alias RenderTargetResolver

    type RenderTargetResolver = {
        swap?: () => void;
        resize?: (bufferW: number, bufferH: number) => void;
        dispose?: () => void;
        regenerateMipmaps?: () => void;
        mipmapAutoRegen?: boolean;
        getReadTexture(): Texture;
        getWriteFbo(): Framebuffer;
    }
    Index

    Properties

    swap?: () => void

    Called after a draw that wrote to the RT. persistent: true only.

    resize?: (bufferW: number, bufferH: number) => void

    Called when the host's element size changes (auto-tracking RTs).

    dispose?: () => void
    regenerateMipmaps?: () => void

    Regenerate mips on the current write FB. Present only when the
    RT was created with mipmap: true | "manual". Always safe to
    call; no-op for non-mipmap RTs (handled at the FB layer).

    mipmapAutoRegen?: boolean

    True iff mipmap: true (auto mode). EffectHost calls
    regenerateMipmaps post-draw, pre-swap when set.

    Methods

    • Current read texture (for sampling the RT as a uniform).

      Returns Texture

    • Current write target (for bindFramebuffer).

      Returns Framebuffer