pub struct RasterizationRateSampleArray(/* private fields */);Expand description
An array of rasterization rate samples.
C++ equivalent: MTL::RasterizationRateSampleArray
Implementations§
Source§impl RasterizationRateSampleArray
impl RasterizationRateSampleArray
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new rasterization rate sample array.
C++ equivalent: static RasterizationRateSampleArray* alloc()->init()
Sourcepub fn object_raw(&self, index: UInteger) -> *mut c_void
pub fn object_raw(&self, index: UInteger) -> *mut c_void
Get the sample value at the specified index as a raw NS::Number pointer.
C++ equivalent: NS::Number* object(NS::UInteger index)
Sourcepub fn set_object_raw(&self, value: *const c_void, index: UInteger)
pub fn set_object_raw(&self, value: *const c_void, index: UInteger)
Set the sample value at the specified index.
C++ equivalent: void setObject(const NS::Number* value, NS::UInteger index)
Trait Implementations§
Source§impl Clone for RasterizationRateSampleArray
impl Clone for RasterizationRateSampleArray
Source§impl Debug for RasterizationRateSampleArray
impl Debug for RasterizationRateSampleArray
Source§impl Drop for RasterizationRateSampleArray
impl Drop for RasterizationRateSampleArray
Source§impl Referencing for RasterizationRateSampleArray
impl Referencing for RasterizationRateSampleArray
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for RasterizationRateSampleArray
impl Sync for RasterizationRateSampleArray
Auto Trait Implementations§
impl Freeze for RasterizationRateSampleArray
impl RefUnwindSafe for RasterizationRateSampleArray
impl Unpin for RasterizationRateSampleArray
impl UnwindSafe for RasterizationRateSampleArray
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