[][src]Struct nannou::wgpu::CreateBufferMapped

pub struct CreateBufferMapped<'a, T> {
    pub data: &'a mut [T],
    // some fields omitted
}

A buffer being created, mapped in host memory.

Fields

data: &'a mut [T]

Methods

impl<'a, T> CreateBufferMapped<'a, T> where
    T: Copy
[src]

pub fn fill_from_slice(self, slice: &[T]) -> Buffer[src]

Copies a slice into the mapped buffer and unmaps it, returning a Buffer.

slice and self.data must have the same length.

Panics

Panics if the slices have different lengths.

pub fn finish(self) -> Buffer[src]

Unmaps the buffer from host memory and returns a Buffer.

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for CreateBufferMapped<'a, T>

impl<'a, T> Send for CreateBufferMapped<'a, T> where
    T: Send

impl<'a, T> Sync for CreateBufferMapped<'a, T> where
    T: Sync

impl<'a, T> Unpin for CreateBufferMapped<'a, T>

impl<'a, T> !UnwindSafe for CreateBufferMapped<'a, T>

Blanket Implementations

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> Any for T where
    T: 'static + ?Sized
[src]

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

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

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

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

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

impl<T> SetParameter for T

impl<T> SetParameter for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,