pub struct DawnBuffer { /* private fields */ }Methods from Deref<Target = Buffer>§
pub fn map_async( &self, mode: MapMode, offset: usize, size: usize, callback: impl FnMut(MapAsyncStatus, String) + Send + 'static, ) -> Future
pub fn get_mapped_range(&self, offset: usize, size: usize) -> *mut c_void
pub fn get_const_mapped_range( &self, offset: usize, size: usize, ) -> *const c_void
pub fn write_mapped_range(&self, offset: usize, data: &[c_void]) -> Status
pub fn read_mapped_range(&self, offset: usize, data: &mut [c_void]) -> Status
pub fn create_texel_view( &self, descriptor: &TexelBufferViewDescriptor, ) -> TexelBufferView
pub fn set_label(&self, label: String)
pub fn get_usage(&self) -> BufferUsage
pub fn get_size(&self) -> u64
pub fn get_map_state(&self) -> BufferMapState
pub fn unmap(&self)
pub fn destroy(&self)
Trait Implementations§
Source§impl BufferInterface for DawnBuffer
impl BufferInterface for DawnBuffer
fn map_async( &self, mode: MapMode, range: Range<BufferAddress>, callback: BufferMapCallback, )
fn get_mapped_range( &self, sub_range: Range<BufferAddress>, ) -> DispatchBufferMappedRange
fn unmap(&self)
fn destroy(&self)
Source§impl Clone for DawnBuffer
impl Clone for DawnBuffer
Source§fn clone(&self) -> DawnBuffer
fn clone(&self) -> DawnBuffer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DawnBuffer
impl Debug for DawnBuffer
Auto Trait Implementations§
impl Freeze for DawnBuffer
impl RefUnwindSafe for DawnBuffer
impl Send for DawnBuffer
impl Sync for DawnBuffer
impl Unpin for DawnBuffer
impl UnsafeUnpin for DawnBuffer
impl UnwindSafe for DawnBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more