pub struct GpuSlice<'a, T> { /* private fields */ }Implementations§
Source§impl<'a, T> GpuSlice<'a, T>
impl<'a, T> GpuSlice<'a, T>
pub unsafe fn from_raw_parts( buffer: &'a Buffer, offset: GpuBufferAddress, size: GpuBufferAddress, ) -> Self
pub unsafe fn from_untyped_slice_unchecked(slice: GpuUntypedSlice<'a>) -> Self
Trait Implementations§
Source§impl<'a, T> From<GpuSlice<'a, T>> for GpuUntypedSlice<'a>
impl<'a, T> From<GpuSlice<'a, T>> for GpuUntypedSlice<'a>
Source§impl<'a, T> GpuBufferAsWgpuSlice for GpuSlice<'a, T>
impl<'a, T> GpuBufferAsWgpuSlice for GpuSlice<'a, T>
fn as_wgpu_slice(&self) -> BufferSlice<'a>
impl<'a, T: Copy> Copy for GpuSlice<'a, T>
impl<'a, T> StructuralPartialEq for GpuSlice<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for GpuSlice<'a, T>
impl<'a, T> !RefUnwindSafe for GpuSlice<'a, T>
impl<'a, T> Send for GpuSlice<'a, T>where
T: Send,
impl<'a, T> Sync for GpuSlice<'a, T>where
T: Sync,
impl<'a, T> Unpin for GpuSlice<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for GpuSlice<'a, T>
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<S, T> CastRangeInto<T> for Swhere
T: CastRangeFrom<S>,
impl<S, T> CastRangeInto<T> for Swhere
T: CastRangeFrom<S>,
fn cast_range_into(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more