wgpu::custom

Trait BufferInterface

Source
pub trait BufferInterface: CommonTraits {
    // Required methods
    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);
}
Available on custom only.

Required Methods§

Implementors§

Source§

impl BufferInterface for CoreBuffer

Available on wgpu_core only.