fix(core): handle HAL errors from query set creation (#6505)

* fix(core): handle HAL errors from query set creation

* Update CHANGELOG.md

Co-authored-by: Andreas Reich <r_andreas2@web.de>

---------

Co-authored-by: Andreas Reich <r_andreas2@web.de>
This commit is contained in:
Erich GublerandAndreas Reich authored and GitHub committed 2024-11-09 12:21:58 +00:00
1 parent b89a57f8ca
commit 01973a98dc
2 files changed
+6 -1

No files matched your search

+4
View File
@@ -64,6 +64,10 @@ Bottom level categories:
### Bug Fixes
#### General
- Handle query set creation failure as an internal error that loses the `Device`, rather than panicking. By @ErichDonGubler in [#6505](https://github.com/gfx-rs/wgpu/pull/6505).
#### Naga
- Fix crash when a texture argument is missing. By @aedm in [#6486](https://github.com/gfx-rs/wgpu/pull/6486)
+2 -1
View File
@@ -3605,7 +3605,8 @@ impl Device {
let hal_desc = desc.map_label(|label| label.to_hal(self.instance_flags));
let raw = unsafe { self.raw().create_query_set(&hal_desc).unwrap() };
let raw = unsafe { self.raw().create_query_set(&hal_desc) }
.map_err(|e| self.handle_hal_error(e))?;
let query_set = QuerySet {
raw: ManuallyDrop::new(raw),