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

Fix empty buffer size on WebGL2 #36

Merged
merged 2 commits into from
Oct 23, 2024
Merged

Fix empty buffer size on WebGL2 #36

merged 2 commits into from
Oct 23, 2024

Conversation

jgayfer
Copy link
Owner

@jgayfer jgayfer commented Oct 22, 2024

Summary

On WebGL2 we use a uniform binding that is 4096 bytes in size (due to the
way GpuArrayBuffer) works.

In order to not crash on WebGL2, we need to ensure the buffer is big enough
to handle the values we're pretending are there.

Fixes #35

On WebGL2 we use a uniform binding that is 4096 bytes in size (due to the
way GpuArrayBuffer) works.

In order to not crash on WebGL2, we need to ensure the buffer is big enough
to handle the values we're pretending are there.
Copy link
Contributor

@rparrett rparrett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good / makes sense to me. Tested all examples w/ webgl2.

While testing I'm pretty sure I was occasionally seeing #34.

@jgayfer
Copy link
Owner Author

jgayfer commented Oct 22, 2024

Thanks for taking a look!

Yeah #34 is a pretty big one. I want to sort that out soon. My hunch is it has something to do with how we set up the render graph, but I'm not entirely sure.

@jgayfer jgayfer merged commit 635e886 into main Oct 23, 2024
6 checks passed
@jgayfer jgayfer deleted the fix-webgl2 branch October 29, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic with webgl2 builds
2 participants