import { createProductionWebGPUReport } from '../ProductionWebGPURenderer.js';
export class WebGPURendererBackend {
    report;
    backend = 'webgpu';
    contextType = 'webgpu';
    constructor(report) {
        this.report = report;
    }
    static async create(options = {}) {
        return new WebGPURendererBackend(await createProductionWebGPUReport(options.navigatorGpu ?? null));
    }
    getReport() {
        return this.report;
    }
    getDiagnostics() {
        return { backend: this.backend, contextType: this.contextType, realDevice: this.report.status === 'available', fallback: this.report.warnings[0] };
    }
}
//# sourceMappingURL=WebGPURendererBackend.js.map