Always report selected adapter in the framework (#8528)

This commit is contained in:
Connor Fitzgerald authored and GitHub committed 2025-11-16 10:40:23 +01:00
1 parent d0cf78c8c8
commit 07d4db5ab9
1 file changed
+3
+3
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,