pixi.js
    Preparing search index...

    Interface ViewSystemOptionsAdvanced

    Options passed to the ViewSystem

    interface ViewSystemOptions {
        antialias?: boolean;
        autoDensity?: boolean;
        canvas?: ICanvas;
        depth?: boolean;
        height?: number;
        resolution?: number;
        transient?: boolean;
        view?: ICanvas;
        width?: number;
    }
    Index
    antialias?: boolean

    Whether to enable anti-aliasing. This may affect performance.

    autoDensity?: boolean

    Resizes renderer view in CSS pixels to allow for resolutions other than 1.

    This is only supported for HTMLCanvasElement and will be ignored if the canvas is an OffscreenCanvas.

    canvas?: ICanvas

    The canvas to use as a view, optional.

    depth?: boolean

    Whether to ensure the main view has can make use of the depth buffer. Always true for WebGL renderer.

    height?: number

    The height of the screen.

    600
    
    resolution?: number

    The resolution / device pixel ratio of the renderer.

    transient?: boolean

    WebGPU only, with antialias. WebGL ignores it. Discards the canvas's multisample buffers at the end of each pass instead of writing them to memory: depth/stencil, and colour on GPUs that aren't tile-based (tile-based GPUs already discard colour). Only for apps that never reopen the canvas pass while still needing its depth or stencil: no filters or masks popping back onto it, no second render with clear: false. See TextureSourceOptions.transient.

    false
    
    view?: ICanvas

    Alias for canvas.

    since 8.0.0

    width?: number

    The width of the screen.

    800