pixi.js
    Preparing search index...

    Interface RenderOptions

    The options for rendering a view.

    interface RenderOptions {
        clear?: CLEAR_OR_BOOL;
        clearColor?: ColorSource;
        container: Container;
        layer?: number;
        mipLevel?: number;
        target?: RenderSurface;
        transform?: Matrix;
    }

    Hierarchy (View Summary)

    Index

    Properties

    The clear mode to use.

    clearColor?: ColorSource

    The color to clear with.

    container: Container

    The container to render.

    layer?: number

    Array layer index to render/clear to when the target is an array-backed texture source (e.g. arrayLayerCount > 1).

    This maps to WebGPU's GPUTextureViewDescriptor.baseArrayLayer when creating render-attachment views.

    0
    @advanced
    mipLevel?: number

    Mip level to render/clear to when the target is a texture-backed render surface.

    0

    Note: When rendering to a Texture target, Pixi renders into the underlying TextureSource (via an internal RenderTarget). The texture's frame is interpreted in mip 0 space and is scaled/clamped to the requested mip level.

    target?: RenderSurface

    The render target to render. if this target is a canvas and you are using the WebGL renderer, please ensure you have set multiView to true on renderer.

    transform?: Matrix

    the transform to apply to the container.