Skip to main content

ContiguousImage

Struct ContiguousImage 

Source
pub struct ContiguousImage<T, L = C1> { /* private fields */ }

Implementations§

Source§

impl<T, L> ContiguousImage<T, L>
where L: ChannelLayout,

Source

pub fn create(size: Size) -> Result<Self>

Source

pub const fn size(&self) -> Size

Source

pub const fn values(&self) -> &DeviceMemory<T>

Source

pub fn into_values(self) -> DeviceMemory<T>

Source

pub fn view(&self) -> Result<ImageView<'_, T, L>>

Source

pub fn view_mut(&mut self) -> Result<ImageViewMut<'_, T, L>>

Trait Implementations§

Source§

impl<T: Debug, L: Debug> Debug for ContiguousImage<T, L>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T, L> Freeze for ContiguousImage<T, L>

§

impl<T, L> RefUnwindSafe for ContiguousImage<T, L>

§

impl<T, L> Send for ContiguousImage<T, L>
where T: Send, L: Send,

§

impl<T, L> Sync for ContiguousImage<T, L>
where T: Sync, L: Sync,

§

impl<T, L> Unpin for ContiguousImage<T, L>
where L: Unpin, T: Unpin,

§

impl<T, L> UnsafeUnpin for ContiguousImage<T, L>

§

impl<T, L> UnwindSafe for ContiguousImage<T, L>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.