Skip to main content

BufferMappedRangeInterface

Trait BufferMappedRangeInterface 

Source
pub trait BufferMappedRangeInterface: CommonTraits {
    // Required methods
    unsafe fn read_slice(&self) -> &[u8] ⓘ;
    unsafe fn write_slice(&mut self) -> WriteOnly<'_, [u8]>;
}
Available on custom only.

Required Methods§

Source

unsafe fn read_slice(&self) -> &[u8] ⓘ

§Safety

Must only be used on read, not write, mappings.

Source

unsafe fn write_slice(&mut self) -> WriteOnly<'_, [u8]>

§Safety

Must only be used on write, not read, mappings.

Implementors§

Source§

impl BufferMappedRangeInterface for CoreBufferMappedRange

Available on wgpu_core only.