Documentation
    Preparing search index...

    Interface GpuCanvasContext

    The canvas's "webgpu" context.

    interface GpuCanvasContext {
        configure(
            configuration: {
                alphaMode?: string;
                device: GpuDevice;
                format: string;
            },
        ): void;
        getCurrentTexture(): GpuTexture;
        unconfigure?(): void;
    }
    Index
    • Configures the swap chain. Must precede the first getCurrentTexture.

      Parameters

      • configuration: { alphaMode?: string; device: GpuDevice; format: string }

      Returns void