Always report selected adapter in the framework (#8528)

This commit is contained in:
Connor Fitzgerald 2025-11-16 04:40:23 -05:00 committed by GitHub
parent d0cf78c8c8
commit 07d4db5ab9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -282,6 +282,9 @@ impl ExampleContext {
// Make sure we use the texture resolution limits from the adapter, so we can support images the size of the surface.
let needed_limits = E::required_limits().using_resolution(adapter.limits());
let info = adapter.get_info();
log::info!("Selected adapter: {} ({:?})", info.name, info.backend);
let (device, queue) = adapter
.request_device(&wgpu::DeviceDescriptor {
label: None,