mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
WebGPU: Implement Adapter.get_info (#9016)
This commit is contained in:
1 parent
6be68cbc65
commit
7e7f1ce942
1 file changed
+1
-14
@@ -1733,20 +1733,7 @@ impl dispatch::AdapterInterface for WebAdapter {
|
||||
}
|
||||
|
||||
fn get_info(&self) -> crate::AdapterInfo {
|
||||
// TODO(https://github.com/gfx-rs/wgpu/issues/8818): web-sys has no way of getting information on adapters
|
||||
wgt::AdapterInfo {
|
||||
name: String::new(),
|
||||
vendor: 0,
|
||||
device: 0,
|
||||
device_type: wgt::DeviceType::Other,
|
||||
device_pci_bus_id: String::new(),
|
||||
driver: String::new(),
|
||||
driver_info: String::new(),
|
||||
backend: wgt::Backend::BrowserWebGpu,
|
||||
subgroup_min_size: wgt::MINIMUM_SUBGROUP_MIN_SIZE,
|
||||
subgroup_max_size: wgt::MAXIMUM_SUBGROUP_MAX_SIZE,
|
||||
transient_saves_memory: false,
|
||||
}
|
||||
map_adapter_info(&self.inner.info())
|
||||
}
|
||||
|
||||
fn get_texture_format_features(
|
||||
|
||||
Reference in new issue
Block a user