File tree 2 files changed +5
-1
lines changed 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ Bottom level categories:
54
54
55
55
### Changes
56
56
57
+ #### General
58
+
59
+ - Make ` Surface::as_hal ` take an immutable reference to the surface. By @jerzywilczek in [ #9999 ] ( https://github.com/gfx-rs/wgpu/pull/9999 )
60
+
57
61
#### HAL
58
62
59
63
- Change the ` DropCallback ` API to use ` FnOnce ` instead of ` FnMut ` . By @jerzywilczek in [ #6482 ] ( https://github.com/gfx-rs/wgpu/pull/6482 )
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ impl Surface<'_> {
159
159
/// - The raw handle obtained from the hal Surface must not be manually destroyed
160
160
#[ cfg( wgpu_core) ]
161
161
pub unsafe fn as_hal < A : wgc:: hal_api:: HalApi , F : FnOnce ( Option < & A :: Surface > ) -> R , R > (
162
- & mut self ,
162
+ & self ,
163
163
hal_surface_callback : F ,
164
164
) -> Option < R > {
165
165
self . context
You can’t perform that action at this time.
0 commit comments