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

Use 8 and 16-bit vertex attributes (eventually) #573

Open
kpreid opened this issue Jan 16, 2025 · 0 comments
Open

Use 8 and 16-bit vertex attributes (eventually) #573

kpreid opened this issue Jan 16, 2025 · 0 comments
Labels
area: graphics kind: performance Ways to increase performance or efficiency without adding functionality status: blocked Waiting for something else to happen

Comments

@kpreid
Copy link
Owner

kpreid commented Jan 16, 2025

wgpu version 24 added 8-bit and 16-bit vertex attribute scalar types. We can use these to eliminate manual packing and unpacking from our block mesh vertex format.

However, Chrome’s WebGPU implementation (as of 132.0.6834.84) does not yet support them, so to use them, we must wait, or (conditionally) drop WebGPU support and rely on the WebGL backend.

@kpreid kpreid added kind: performance Ways to increase performance or efficiency without adding functionality area: graphics status: blocked Waiting for something else to happen labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics kind: performance Ways to increase performance or efficiency without adding functionality status: blocked Waiting for something else to happen
Projects
None yet
Development

No branches or pull requests

1 participant