import { ProductionWebGL2Renderer } from '../ProductionWebGL2Renderer.js';
export class WebGL2RendererBackend {
    renderer;
    backend = "webgl2";
    contextType = 'webgl2';
    constructor(renderer) {
        this.renderer = renderer;
    }
    static async create(options) {
        return new WebGL2RendererBackend(await ProductionWebGL2Renderer.create(options));
    }
    renderImportedAsset(input) {
        return this.renderer.renderImportedAsset(input);
    }
    getFeatures() {
        return this.renderer.getFeatures();
    }
    getDiagnostics() {
        return { backend: "webgl2", contextType: this.contextType, realDevice: true };
    }
    dispose() {
        this.renderer.dispose();
    }
}
//# sourceMappingURL=WebGL2RendererBackend.js.map