pub struct Predicate { /* private fields */ }Expand description
Wraps MPSPredicate.
Implementations§
Source§impl Predicate
impl Predicate
Sourcepub fn new_with_buffer(buffer: &MetalBuffer, offset: usize) -> Option<Self>
pub fn new_with_buffer(buffer: &MetalBuffer, offset: usize) -> Option<Self>
Wraps a constructor on MPSPredicate.
Sourcepub fn new_with_device(device: &MetalDevice) -> Option<Self>
pub fn new_with_device(device: &MetalDevice) -> Option<Self>
Wraps a constructor on MPSPredicate.
Sourcepub fn predicate_offset(&self) -> usize
pub fn predicate_offset(&self) -> usize
Wraps the corresponding MPSPredicate method.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Unpin for Predicate
impl UnsafeUnpin for Predicate
impl UnwindSafe for Predicate
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