[][src]Struct wgpu::Buffer

pub struct Buffer { /* fields omitted */ }

Methods

impl Buffer[src]

pub fn set_sub_data(&self, offset: u32, data: &[u8])[src]

pub fn map_read_async<T, F>(&self, start: u32, size: u32, callback: F) where
    T: 'static + Copy,
    F: FnOnce(BufferMapAsyncResult<&[T]>), 
[src]

pub fn map_write_async<T, F>(&self, start: u32, size: u32, callback: F) where
    T: 'static + Copy,
    F: FnOnce(BufferMapAsyncResult<&mut [T]>), 
[src]

pub fn unmap(&self)[src]

Trait Implementations

impl Drop for Buffer[src]

Auto Trait Implementations

impl Send for Buffer

impl Sync for Buffer

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T> Supports for T

impl<T> Erased for T