Skip to content

Commit

Permalink
Revert "WebGPURenderer: Add backend information to data-engine fiel…
Browse files Browse the repository at this point in the history
…d. (#29670)" (#29675)

This reverts commit ac5804d.
  • Loading branch information
Mugen87 authored Oct 16, 2024
1 parent 4e4f91b commit 1360b24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/renderers/common/Backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Color4 from './Color4.js';
import { Vector2 } from '../../math/Vector2.js';
import { Vector4 } from '../../math/Vector4.js';
import { createCanvasElement } from '../../utils.js';
import { REVISION, WebGPUCoordinateSystem } from '../../constants.js';
import { REVISION } from '../../constants.js';

class Backend {

Expand Down Expand Up @@ -147,10 +147,8 @@ class Backend {

domElement = ( this.parameters.canvas !== undefined ) ? this.parameters.canvas : createCanvasElement();

const backend = ( this.coordinateSystem === WebGPUCoordinateSystem ) ? 'webgpu' : 'webgl';

// OffscreenCanvas does not have setAttribute, see #22811
if ( 'setAttribute' in domElement ) domElement.setAttribute( 'data-engine', `three.js r${REVISION} WebGPURenderer ${backend}` );
if ( 'setAttribute' in domElement ) domElement.setAttribute( 'data-engine', `three.js r${REVISION} webgpu` );

this.domElement = domElement;

Expand Down

0 comments on commit 1360b24

Please sign in to comment.