--- title: WebGPU description: Explore experimental WebGPU rendering capabilities in TresJS. --- ::warning **Experimental Feature**: WebGPU support in TresJS is experimental and requires modern browser support. WebGPU is still being developed and may have breaking changes. :: ## What is WebGPU? [WebGPU](https://developer.mozilla.org/en-US/docs/Web/API/WebGPU_API) is the next-generation graphics API for the web, designed to provide high-performance 3D graphics and general-purpose computing capabilities directly in web browsers. It offers several advantages over WebGL: ### **Key Benefits** - **Better Performance**: More efficient GPU utilization and reduced CPU overhead - **Modern GPU Features**: Access to compute shaders, advanced texturing, and modern GPU capabilities - **Unified API**: Single API for both graphics and compute operations - **Better Debugging**: Improved error handling and debugging capabilities - **Future-Proof**: Designed for modern GPU architectures ### **Browser Support** WebGPU is currently supported in: - **Chrome/Edge**: Stable support (Chrome 113+) - **Firefox**: Behind experimental flag - **Safari**: Experimental support in Safari Technology Preview ::note Check current WebGPU browser support at [Can I Use WebGPU](https://caniuse.com/webgpu) and the official [WebGPU support matrix](https://github.com/gpuweb/gpuweb/wiki/Implementation-Status). :: ## Usage with TresJS TresJS supports WebGPU through Three.js's WebGPU renderer. You can enable WebGPU by providing a custom renderer factory to the `` component. ### Basic Setup ```vue [basic-webgpu.vue] ``` ### Advanced WebGPU Example :::examples-web-gpu ::: ::code-preview{class="[&>div]:*:my-0 [&>div]:*:w-full"} :::code-tree{default-value="app.vue"} ```vue [components/HologramCube.vue] ``` ```vue [app.vue] ```