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§
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)
Implementors§
impl BufferInterface for CoreBuffer
Available on
wgpu_core
only.