pub struct ContiguousImage<T, L = C1> { /* private fields */ }Implementations§
Source§impl<T, L> ContiguousImage<T, L>where
L: ChannelLayout,
impl<T, L> ContiguousImage<T, L>where
L: ChannelLayout,
pub fn create(size: Size) -> Result<Self>
pub const fn size(&self) -> Size
pub const fn values(&self) -> &DeviceMemory<T>
pub fn into_values(self) -> DeviceMemory<T>
pub fn view(&self) -> Result<ImageView<'_, T, L>>
pub fn view_mut(&mut self) -> Result<ImageViewMut<'_, T, L>>
Trait Implementations§
Auto Trait Implementations§
impl<T, L> Freeze for ContiguousImage<T, L>
impl<T, L> RefUnwindSafe for ContiguousImage<T, L>where
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, L> Send for ContiguousImage<T, L>
impl<T, L> Sync for ContiguousImage<T, L>
impl<T, L> Unpin for ContiguousImage<T, L>
impl<T, L> UnsafeUnpin for ContiguousImage<T, L>
impl<T, L> UnwindSafe for ContiguousImage<T, L>
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