pub struct MetalBuffer { /* private fields */ }Expand description
A Metal buffer for vertex/uniform data
Implementations§
Source§impl MetalBuffer
impl MetalBuffer
Sourcepub fn did_modify_range(&self, range: Range<usize>)
pub fn did_modify_range(&self, range: Range<usize>)
Notify that a range of the buffer was modified (for managed storage mode)
The call is skipped when the range cannot be expressed as the Swift
bridge’s signed Int pair — Swift reconstructs start ..< end and
traps on an overflowing or reversed range.
Trait Implementations§
Source§impl Debug for MetalBuffer
impl Debug for MetalBuffer
Source§impl Drop for MetalBuffer
impl Drop for MetalBuffer
impl Send for MetalBuffer
impl Sync for MetalBuffer
Auto Trait Implementations§
impl Freeze for MetalBuffer
impl RefUnwindSafe for MetalBuffer
impl Unpin for MetalBuffer
impl UnsafeUnpin for MetalBuffer
impl UnwindSafe for MetalBuffer
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