Add WebGPU support#154
Conversation
…E tests for frustum culling, LOD switching, raycasting, and rendering. Update package dependencies and configurations for testing. Add test setup utilities and initial test cases for dynamic capacity and visibility features.
…to improve clarity and performance. Remove unnecessary texture initialization calls and enhance assertions for texture existence and data validation.
…re to include test artifacts
…ing, LOD switching, and rendering. Enhance test clarity by reducing code duplication and improving assertions. Introduce test helpers for scene setup and instance management.
- Add WebGPU and WebGL entry points for instanced rendering, enhancing compatibility and functionality. - Introduce renderer-agnostic exports in `index.common.ts`, and implement WebGL and WebGPU specific extensions in `index.webgl.ts` and `index.webgpu.ts`. Update tests to ensure coverage for both rendering contexts, improving overall test structure and clarity.
e2ad5dd to
98c1b2c
Compare
There was a problem hiding this comment.
ESLint found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
- Update Playwright configuration to prevent HTML reporter from opening automatically. - Modify WebGPU instancing logic to ensure correct matrix and color data handling for LOD children. - Implement indexed access for instance data to improve performance and accuracy during frustum culling. - Refactor shadow LOD handling to ensure compatibility with NodeMaterials. - Add comprehensive tests for index buffer management, LOD position accuracy, and frustum culling integration to validate rendering behavior.
|
|
If someone could help that'd be appreciated 🙂 |
|
Hi, thank you for the PR. I'll check everything this weekend :) |
|
Hi, i'd like to have this merged, is there any way i can help? |
|
It will be merged shortly, as soon as I find some time to look at it, sorry 😅 |
|
If I could have some guidance, I'd be happy to try to continue. However, I imagine it will be slow moving without more feedback and some help. Thank you! |
|
I wasn't talking about this PR, but about the code in general 😄. I'm studying webgpu so that I can push the library to its limits with future versions |




Should merge #153 first.
index-webgpu.htmlDemos
Known bugs to fix
textureLoad()examples/shadowLOD-webgpu.tshas a lowcount