mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
Always report selected adapter in the framework (#8528)
This commit is contained in:
1 parent
d0cf78c8c8
commit
07d4db5ab9
1 file changed
+3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user