pub struct RasterizationRateLayerArray(/* private fields */);Expand description
An array of rasterization rate layer descriptors.
C++ equivalent: MTL::RasterizationRateLayerArray
Implementations§
Source§impl RasterizationRateLayerArray
impl RasterizationRateLayerArray
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new rasterization rate layer array.
C++ equivalent: static RasterizationRateLayerArray* alloc()->init()
Sourcepub fn object(
&self,
layer_index: UInteger,
) -> Option<RasterizationRateLayerDescriptor>
pub fn object( &self, layer_index: UInteger, ) -> Option<RasterizationRateLayerDescriptor>
Get the layer descriptor at the specified index.
C++ equivalent: RasterizationRateLayerDescriptor* object(NS::UInteger layerIndex)
Sourcepub fn set_object(
&self,
layer: &RasterizationRateLayerDescriptor,
layer_index: UInteger,
)
pub fn set_object( &self, layer: &RasterizationRateLayerDescriptor, layer_index: UInteger, )
Set the layer descriptor at the specified index.
C++ equivalent: void setObject(const MTL::RasterizationRateLayerDescriptor* layer, NS::UInteger layerIndex)
Trait Implementations§
Source§impl Clone for RasterizationRateLayerArray
impl Clone for RasterizationRateLayerArray
Source§impl Debug for RasterizationRateLayerArray
impl Debug for RasterizationRateLayerArray
Source§impl Drop for RasterizationRateLayerArray
impl Drop for RasterizationRateLayerArray
Source§impl Referencing for RasterizationRateLayerArray
impl Referencing for RasterizationRateLayerArray
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 RasterizationRateLayerArray
impl Sync for RasterizationRateLayerArray
Auto Trait Implementations§
impl Freeze for RasterizationRateLayerArray
impl RefUnwindSafe for RasterizationRateLayerArray
impl Unpin for RasterizationRateLayerArray
impl UnwindSafe for RasterizationRateLayerArray
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