Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGPURenderer: Fix BatchedMesh with indexed geometry #29174

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

RenaudRohlinger
Copy link
Collaborator

Related issue: #29140

Description

The recent change in #29140 broke the BatchedMesh in the WebGPUBackend (example included). The issue is that attribute.bytesPerElement, for example index.bytesPerElement doesn't exist in the WebGPUBackend and the way drawIndexed was called wasn't actually correct. This PR fixes these issues.

This contribution is funded by Utsubo

@RenaudRohlinger RenaudRohlinger added this to the r168 milestone Aug 19, 2024
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
685.4 kB (169.7 kB) 685.4 kB (169.7 kB) +0 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize dev Filesize PR Diff
462 kB (111.4 kB) 462 kB (111.4 kB) +0 B

@Mugen87 Mugen87 merged commit 01a9311 into mrdoob:dev Aug 19, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants