pixi.js
    Preparing search index...

    Interface ViewSystemOptionsAdvanced

    Options passed to the ViewSystem

    interface ViewSystemOptions {
        antialias?: boolean;
        autoDensity?: boolean;
        canvas?: ICanvas;
        depth?: boolean;
        format?: TEXTURE_FORMATS;
        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.

    WebGPU only. The format the canvas is set up with: bgra8unorm, rgba8unorm or rgba16float. WebGL and the canvas renderer ignore it. Defaults to the browser's preferred canvas format (bgra8unorm on most desktops, rgba8unorm on Android), as the other 8-bit format can cost the browser an extra full-screen copy every frame. Pass rgba16float for an HDR canvas; it never costs that copy.

    navigator.gpu.getPreferredCanvasFormat()
    
    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