Skip to content

Commit

Permalink
WebGPURenderer: Added webgpu string in data-engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Nov 30, 2023
1 parent 966e9fe commit d4f278c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/jsm/renderers/common/Backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class Backend {
domElement = ( this.parameters.canvas !== undefined ) ? this.parameters.canvas : createCanvasElement();

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

this.domElement = domElement;

Expand Down

0 comments on commit d4f278c

Please sign in to comment.