-
-
Notifications
You must be signed in to change notification settings - Fork 809
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
render: Update wgpu to 23 #18431
base: master
Are you sure you want to change the base?
render: Update wgpu to 23 #18431
Conversation
I'm hoping to see a little improvement to webgl performance with this! |
37b6ab5
to
71bcdc2
Compare
@adrian17 I saw you made some recommendations for this on Discord - unfortunately I am weeks behind reading a lot of the channels there, and don't really want to skip over anything important - so if you could please copy them over here, or even amend the PR if you have the time, I would be grateful! One suggestion was about not naming the shader stages, right? None at all, or just some? @Dinnerbone I assume you mean this, right: gfx-rs/wgpu#6427 (Just for future reference...) |
#[allow(unused_mut)] | ||
let mut backend = None; | ||
#[cfg(not(any(target_os = "macos", target_os = "ios")))] | ||
{ | ||
backend = backend.or(report.vulkan).or(report.gl); | ||
} | ||
#[cfg(windows)] | ||
{ | ||
backend = backend.or(report.dx12); | ||
} | ||
#[cfg(any(target_os = "macos", target_os = "ios"))] | ||
{ | ||
backend = backend.or(report.metal); | ||
} | ||
|
||
if let Some(stats) = backend { | ||
tracy.plot(BIND_GROUPS, stats.bind_groups.num_allocated as f64); | ||
tracy.plot(BUFFERS, stats.buffers.num_allocated as f64); | ||
tracy.plot(TEXTURES, stats.textures.num_allocated as f64); | ||
tracy.plot(TEXTURE_VIEWS, stats.texture_views.num_allocated as f64); | ||
} | ||
tracy.plot(BIND_GROUPS, report.hub.bind_groups.num_allocated as f64); | ||
tracy.plot(BUFFERS, report.hub.buffers.num_allocated as f64); | ||
tracy.plot(TEXTURES, report.hub.textures.num_allocated as f64); | ||
tracy.plot(TEXTURE_VIEWS, report.hub.texture_views.num_allocated as f64); |
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.
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.
This lets us drop a whole bunch of (duplicated) dependencies, just look at Cargo.lock!
Currently using egui master.