wgpu::dispatch

Trait BufferInterface

source
pub trait BufferInterface: CommonTraits {
    // Required methods
    fn map_async(
        &self,
        mode: MapMode,
        range: Range<BufferAddress>,
        callback: Box<dyn FnOnce(Result<(), BufferAsyncError>) + Send + 'static>,
    );
    fn get_mapped_range(
        &self,
        sub_range: Range<BufferAddress>,
    ) -> DispatchBufferMappedRange;
    fn unmap(&self);
    fn destroy(&self);
}

Required Methods§

source

fn map_async( &self, mode: MapMode, range: Range<BufferAddress>, callback: Box<dyn FnOnce(Result<(), BufferAsyncError>) + Send + 'static>, )

source

fn get_mapped_range( &self, sub_range: Range<BufferAddress>, ) -> DispatchBufferMappedRange

source

fn unmap(&self)

source

fn destroy(&self)

Implementors§

source§

impl BufferInterface for CoreBuffer

Available on wgpu_core only.