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

Change get_preferred_format to get_supported_formats #2783

Merged
merged 10 commits into from
Jun 18, 2022
Prev Previous commit
Update wgpu-core/src/device/mod.rs
Co-authored-by: Connor Fitzgerald <[email protected]>
stevenhuyn and cwfitzgerald authored Jun 18, 2022
commit 517e5fddeb9dac02f27da494d1f6bd7c1375b995
2 changes: 1 addition & 1 deletion wgpu-core/src/device/mod.rs
Original file line number Diff line number Diff line change
@@ -3018,7 +3018,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
surface_id: id::SurfaceId,
adapter_id: id::AdapterId,
) -> Result<Vec<TextureFormat>, instance::GetSurfacePreferredFormatError> {
profiling::scope!("surface_get_supported_formats");
profiling::scope!("Surface::get_supported_formats");
let hub = A::hub(self);
let mut token = Token::root();