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 regression with vertex buffer promote to float logic #1376

Closed
wants to merge 2 commits into from

Conversation

bghgary
Copy link
Contributor

@bghgary bghgary commented May 3, 2024

No description provided.

@bghgary bghgary requested a review from ryantrem May 3, 2024 00:20
@bghgary bghgary marked this pull request as ready for review May 7, 2024 21:33
@bghgary bghgary marked this pull request as draft May 7, 2024 21:34
@bghgary bghgary removed the request for review from ryantrem May 8, 2024 20:00
@bghgary
Copy link
Contributor Author

bghgary commented May 8, 2024

Current plan is to abandon this PR and wait for @Popov72 to fix it on the JS side. I have added a visual test to the JS side that covers this regression: BabylonJS/Babylon.js#15074. Will add this test to native once we bring the JS changes to native.

@bghgary
Copy link
Contributor Author

bghgary commented May 21, 2024

Superceded by #1382

@bghgary bghgary closed this May 21, 2024
bghgary added a commit that referenced this pull request May 22, 2024
… buffers (#1382)

This is a replacement for #1376. The original thinking was that we will
promote the non-float attributes to float which was a complex and poor
performance solution. The better solution is to change the shader to
take non-float attributes. Fortunately, this shader processing is
already happening for WebGPU on the JS side. @Popov72 [factored out the
shader processor](BabylonJS/Babylon.js#15107) on
the JS side for WebGPU to also work with Babylon Native, which also
includes code that aligns the buffers to 4-byte boundaries. This native
PR ties everything together and removes all the promote to float logic
we had earlier to try to handle non-float attributes.

This change includes updating Babylon.js to 7.7.2. Using an older
version will result in a `console.error ` if non-normalized, non-float
vertex buffers are used.
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.

None yet

1 participant