brianzinn / react-babylonjs

React for Babylon 3D engine
https://brianzinn.github.io/react-babylonjs/
809 stars 102 forks source link

add: WebGPUEngine and FallbackEngine #315

Closed brianzinn closed 1 month ago

brianzinn commented 3 months ago

Currently failing for me at runtime:

Error in function WebGPUEngine.endFrame in ../../node_modules/@babylonjs/core/Engines/webgpuEngine.js:2116
Cannot read properties of undefined (reading 'endFrame')

../../node_modules/@babylonjs/core/Engines/webgpuEngine.js:2116
Open in Editor
  2114 |     endFrame() {
  2115 |         this._endCurrentRenderPass();
> 2116 |         this._snapshotRendering.endFrame();

This is in draft proposal state - seeing if there will be any community feedback.

edit: actually i am pretty sure i know how to fix above. i need to wait for initAsync to complete before rendering. 🤦 i'll try to get to that in next day or so. That was written rather hastily. thanks.

brianzinn commented 1 month ago

thanks @buuhvprojects - i merged without any docs. i'll make some time to add those and also the fallback component. cheers.