You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WebGPU Three.js r171 has been released and it’s a major milestone for WebGPU integration with third-party libraries such as React Three Fiber and bundlers like Vite or Next.js. We can now do this with zero configuration:
By accepting a callback like R3F/Svelte, we let users pass their own args to the constructor. That's really handy generally, but in the case of WebGPU in its current state, it's probably the cleanest approach for opening up its functionality.
WebGPU is undocumented and the current implementation accepts some parameters with no matching <TresCanvas /> props, e.g.: device, requiredLimits, trackTimestamp.
Also worth mentioning that if you use a function prop, it should ideally be async so that renderer.init() can be awaited. If not awaited, it will initially wrongly report the WebGPUBackend in browsers that only support WebGL:
Description
WebGPU Three.js r171 has been released and it’s a major milestone for WebGPU integration with third-party libraries such as React Three Fiber and bundlers like Vite or Next.js. We can now do this with zero configuration:
Three.js Vanilla Three.js
R3F
Suggested solution
Enable a
renderer
prop to override the renderer, restricted to canvas-based WebGL/WebGPU renderers.Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: