Skip to content

Commit cb7e9a9

Browse files
committed
fix todo lint
1 parent 7a79e3f commit cb7e9a9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

crates/re_renderer/src/allocator/cpu_write_gpu_read_belt.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,12 @@ pub struct CpuWriteGpuReadBuffer<T: bytemuck::Pod + Send + Sync> {
5555
_type: std::marker::PhantomData<T>,
5656
}
5757

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-
6458
#[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.
6660
unsafe impl<T> Send for CpuWriteGpuReadBuffer<T> where T: bytemuck::Pod + Send + Sync {}
6761

6862
#[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.
7064
unsafe impl<T> Sync for CpuWriteGpuReadBuffer<T> where T: bytemuck::Pod + Send + Sync {}
7165

7266
impl<T> CpuWriteGpuReadBuffer<T>

0 commit comments

Comments
 (0)