pub struct NoopBackend { /* private fields */ }Expand description
Noop backend: deterministic, does nothing.
Trait Implementations§
Source§impl Default for NoopBackend
impl Default for NoopBackend
Source§fn default() -> NoopBackend
fn default() -> NoopBackend
Returns the “default value” for a type. Read more
Source§impl GpuBackend for NoopBackend
impl GpuBackend for NoopBackend
fn kind(&self) -> GpuBackendKind
fn as_any(&self) -> &dyn Any
fn adapter_info(&self) -> GpuAdapterInfo
fn capabilities(&self) -> GpuCapabilities
fn select_adapter(&self, _opts: &GpuOptions) -> Result<GpuAdapterInfo, GpuError>
fn create_buffer(&self, req: &GpuRequest) -> Result<GpuBufferHandle, GpuError>
fn create_image( &self, req: &GpuImageRequest, ) -> Result<GpuImageHandle, GpuError>
fn stats(&self) -> TransferStats
fn take_stats(&self) -> TransferStats
fn record_download(&self, bytes: u64)
fn upload_texture( &self, req: &GpuImageRequest, data: &[u8], ) -> Result<GpuImageHandle, GpuError>
fn read_texture(&self, handle: &GpuImageHandle) -> Result<Vec<u8>, GpuError>
Auto Trait Implementations§
impl !Freeze for NoopBackend
impl RefUnwindSafe for NoopBackend
impl Send for NoopBackend
impl Sync for NoopBackend
impl Unpin for NoopBackend
impl UnsafeUnpin for NoopBackend
impl UnwindSafe for NoopBackend
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().