Import
WebGPU is an addon, and must be imported explicitly, see Installation#Addons.
import WebGPU from 'three/addons/capabilities/WebGPU.js';
Static Methods
.getErrorMessage() : HTMLDivElement
Returns a div element representing a formatted error message that can be appended in
web sites if WebGPU isn't supported.
- Returns: A
divelement representing a formatted error message that WebGPU isn't supported.
.isAvailable() : boolean
Returns true if WebGPU is available.
- Returns: Whether WebGPU is available or not.