pub struct WgpuBackend { /* private fields */ }Expand description
wgpu-backed GPU compute backend.
Holds two compute pipelines: one for LZ77 (v1) and one for GDeflate (v2).
Implementations§
Trait Implementations§
Source§impl ComputeBackend for WgpuBackend
impl ComputeBackend for WgpuBackend
Source§fn decompress_tiles(
&self,
tiles: &[CompressedTile],
cancel: &AtomicBool,
) -> Result<Vec<Vec<u8>>>
fn decompress_tiles( &self, tiles: &[CompressedTile], cancel: &AtomicBool, ) -> Result<Vec<Vec<u8>>>
Decompress a batch of compressed tiles on the GPU. Read more
Source§fn decompress_tiles_gdeflate(
&self,
tiles: &[CompressedTile],
cancel: &AtomicBool,
) -> Result<Vec<Vec<u8>>>
fn decompress_tiles_gdeflate( &self, tiles: &[CompressedTile], cancel: &AtomicBool, ) -> Result<Vec<Vec<u8>>>
Decompress a batch of
GDeflate-encoded tiles on the GPU. Read moreAuto Trait Implementations§
impl Freeze for WgpuBackend
impl !RefUnwindSafe for WgpuBackend
impl Send for WgpuBackend
impl Sync for WgpuBackend
impl Unpin for WgpuBackend
impl UnsafeUnpin for WgpuBackend
impl !UnwindSafe for WgpuBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more