Skip to content

Webgpu multi vol #1919

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

Merged
merged 2 commits into from
May 17, 2021
Merged

Webgpu multi vol #1919

merged 2 commits into from
May 17, 2021

Conversation

martinken
Copy link
Member

No description provided.

Add basic structure for multi volume rendering

Rework a lot of the structure of the WebGPU support.

1) Make BindGroupLayouts more generic where you request
them with a description and the device caches them and
either returns or creates as needed.

2) make bindable things more generic so they can
be lumped into one group and treated the same. This
include UBOs, SSBOs, and TextureViews

3) add a mapper helper that is meant to be a minimal mapper.
The idea is that PolyDataMapper would internally use four of
these simpler mappers, one for each cellArray (verts, lines,
polys, strips). Then other classes could make use of the simpler
mapper helper directly when such complexity isn't needed.

4) Make the renderencoder the more important part of rendering.
Previously some calls were passed the pipleine that now get
passed the render encoder. The renderencoder has a bound
pipeline so while those two things (pipeline and renderencoder)
are a bit independent of each other, during rendering the
renderencoder will have a pipeline and tends to live (be bound)
longer than the pipeine so it is what gets passed.
Create a MapperHelper class that renders one cellarray
and can be used by many mapper. PolyDataMapper creates 4 of
these, one for each cell array it holds.

Make the BindGroupLayout code more general, remove old
hardcoded binggrouplayout names.

Make the shader replacement approach more clear and consistent.

Fix an issue with SSBOs not resizing correctly.
@martinken martinken merged commit a30162a into master May 17, 2021
@martinken martinken deleted the webgpu_multi_vol branch May 17, 2021 17:03
@github-actions
Copy link

🎉 This PR is included in version 18.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the released Automated label label May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Automated label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant