-
Notifications
You must be signed in to change notification settings - Fork 373
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
Introduce wgpu based re_renderer (experimental!) #175
Conversation
crates/re_renderer/src/context.rs
Outdated
output_format_color: wgpu::TextureFormat, | ||
/// The depth format used by the eframe output buffer. | ||
/// TODO(andreas): Should we maintain depth buffers per view and ask for no depth from eframe? | ||
output_format_depth: Option<wgpu::TextureFormat>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output_format_color: wgpu::TextureFormat, | |
/// The depth format used by the eframe output buffer. | |
/// TODO(andreas): Should we maintain depth buffers per view and ask for no depth from eframe? | |
output_format_depth: Option<wgpu::TextureFormat>, | |
color_output_format: wgpu::TextureFormat, | |
/// The depth format used by the eframe output buffer. | |
/// TODO(andreas): Should we maintain depth buffers per view and ask for no depth from eframe? | |
depth_output_format: Option<wgpu::TextureFormat>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
starting with output_format
is more autocompletion friendly though ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
…but I left some nits :]
Co-authored-by: Emil Ernerfeldt <[email protected]>
Co-authored-by: Emil Ernerfeldt <[email protected]>
Co-authored-by: Emil Ernerfeldt <[email protected]>
web glitch fixed in gfx-rs/wgpu#3093 |
First stab at a wgpu based re_renderer crate and integration into re_viewer
Renders test triangle successfully on native and browser.
can be tested locally using
cargo run -p rerun --features=wgpu --no-default-features -- ../car.rrd
(for web, it's easiest to hack the default feature on re_viewer, no point in streamlining this right now)
There's glitch in the browser right now:
The moment we stop rendering continously, the viewport resizes. Likely an eframe issue, need to investigate. (suspecting that something in the order of callbacks vs primitives causes issue with a viewport not being reset)