File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
crates/re_renderer/src/allocator Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -55,18 +55,12 @@ pub struct CpuWriteGpuReadBuffer<T: bytemuck::Pod + Send + Sync> {
55
55
_type : std:: marker:: PhantomData < T > ,
56
56
}
57
57
58
- // BufferViewMut is not Send/Sync right now because `BufferMappedRange` trait does not implement Send/Sync.
59
- // However, on native it is always Send/Sync, see https://github.com/gfx-rs/wgpu/issues/3795#issuecomment-1561189339
60
- // and on web we're single threaded.
61
- //
62
- // https://github.com/gfx-rs/wgpu/issues/3795 is resolved, we force Send+Sync here.
63
-
64
58
#[ allow( unsafe_code) ]
65
- // SAFETY: TODO(https://github.com/ gfx-rs/wgpu/pull/ 4818): Upstream wgpu allows `wgpu::BufferViewMut` to be Send.
59
+ // SAFETY: TODO(gfx-rs/wgpu# 4818): Upstream wgpu allows `wgpu::BufferViewMut` to be Send.
66
60
unsafe impl < T > Send for CpuWriteGpuReadBuffer < T > where T : bytemuck:: Pod + Send + Sync { }
67
61
68
62
#[ allow( unsafe_code) ]
69
- // SAFETY: TODO(https://github.com/ gfx-rs/wgpu/pull/ 4818): Upstream wgpu allows `wgpu::BufferViewMut` to be Sync.
63
+ // SAFETY: TODO(gfx-rs/wgpu# 4818): Upstream wgpu allows `wgpu::BufferViewMut` to be Sync.
70
64
unsafe impl < T > Sync for CpuWriteGpuReadBuffer < T > where T : bytemuck:: Pod + Send + Sync { }
71
65
72
66
impl < T > CpuWriteGpuReadBuffer < T >
You can’t perform that action at this time.
0 commit comments