diff --git a/src/lib.rs b/src/lib.rs index 7dabb5ee..21911150 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -699,14 +699,10 @@ pub unsafe extern "C" fn wgpuAdapterGetInfo( Err(err) => handle_error_fatal(err, "wgpuAdapterGetInfo"), }; - info.vendor = CString::new(format!("{:#x}", result.vendor)) - .unwrap() - .into_raw(); - info.architecture = CString::default().into_raw(); - info.device = CString::new(format!("{:#x}", result.device)) - .unwrap() - .into_raw(); - info.description = CString::new(result.name).unwrap().into_raw(); + info.vendor = CString::new(result.driver).unwrap().into_raw(); + info.architecture = CString::default().into_raw(); // TODO(webgpu.h) + info.device = CString::new(result.name).unwrap().into_raw(); + info.description = CString::new(result.driver_info).unwrap().into_raw(); info.backendType = map_backend_type(result.backend); info.adapterType = map_adapter_type(result.device_type); info.vendorID = result.vendor;