[][src]Struct nannou::vk::StorageImage

pub struct StorageImage<F, A = Arc<StdMemoryPool>> where
    A: MemoryPool
{ /* fields omitted */ }

General-purpose image in device memory. Can be used for any usage, but will be slower than a specialized image.

Methods

impl<F> StorageImage<F, Arc<StdMemoryPool>>[src]

pub fn new<'a, I>(
    device: Arc<Device>,
    dimensions: Dimensions,
    format: F,
    queue_families: I
) -> Result<Arc<StorageImage<F, Arc<StdMemoryPool>>>, ImageCreationError> where
    F: FormatDesc,
    I: IntoIterator<Item = QueueFamily<'a>>, 
[src]

Creates a new image with the given dimensions and format.

pub fn with_usage<'a, I>(
    device: Arc<Device>,
    dimensions: Dimensions,
    format: F,
    usage: ImageUsage,
    queue_families: I
) -> Result<Arc<StorageImage<F, Arc<StdMemoryPool>>>, ImageCreationError> where
    F: FormatDesc,
    I: IntoIterator<Item = QueueFamily<'a>>, 
[src]

Same as new, but allows specifying the usage.

impl<F, A> StorageImage<F, A> where
    A: MemoryPool
[src]

pub fn dimensions(&self) -> Dimensions[src]

Returns the dimensions of the image.

Trait Implementations

impl<P, F, A> ImageContent<P> for StorageImage<F, A> where
    A: MemoryPool,
    F: 'static + Send + Sync
[src]

impl<F, A> ImageViewAccess for StorageImage<F, A> where
    A: MemoryPool,
    F: 'static + Send + Sync
[src]

impl<F, A> ImageClearValue<<F as FormatDesc>::ClearValue> for StorageImage<F, A> where
    A: MemoryPool,
    F: FormatDesc + 'static + Send + Sync
[src]

impl<F, A> Debug for StorageImage<F, A> where
    A: Debug + MemoryPool,
    F: Debug,
    <A as MemoryPool>::Alloc: Debug
[src]

impl<F, A> ImageAccess for StorageImage<F, A> where
    A: MemoryPool,
    F: 'static + Send + Sync
[src]

Auto Trait Implementations

impl<F, A> Sync for StorageImage<F, A> where
    F: Sync,
    <A as MemoryPool>::Alloc: Sync

impl<F, A> Send for StorageImage<F, A> where
    F: Send,
    <A as MemoryPool>::Alloc: Send

impl<F, A> Unpin for StorageImage<F, A> where
    F: Unpin,
    <A as MemoryPool>::Alloc: Unpin

impl<F, A> UnwindSafe for StorageImage<F, A> where
    F: UnwindSafe,
    <A as MemoryPool>::Alloc: UnwindSafe

impl<F, A> RefUnwindSafe for StorageImage<F, A> where
    F: RefUnwindSafe,
    <A as MemoryPool>::Alloc: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ImageAccess for T where
    T: SafeDeref,
    <T as Deref>::Target: ImageAccess
[src]

impl<T> ImageViewAccess for T where
    T: SafeDeref,
    <T as Deref>::Target: ImageViewAccess
[src]

impl<T> Content for T[src]

impl<T> SafeBorrow<T> for T[src]

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T> SetParameter for T

impl<T> SetParameter for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,