pub struct TileRenderPipelineColorAttachmentDescriptor(/* private fields */);Implementations§
Source§impl TileRenderPipelineColorAttachmentDescriptor
impl TileRenderPipelineColorAttachmentDescriptor
Sourcepub fn alloc() -> Option<Self>
pub fn alloc() -> Option<Self>
Allocate a new tile render pipeline color attachment descriptor.
C++ equivalent: static TileRenderPipelineColorAttachmentDescriptor* alloc()
Sourcepub fn init(&self) -> Option<Self>
pub fn init(&self) -> Option<Self>
Initialize an allocated descriptor.
C++ equivalent: TileRenderPipelineColorAttachmentDescriptor* init()
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create from a raw pointer.
§Safety
The pointer must be a valid Metal tile render pipeline color attachment descriptor.
Sourcepub fn pixel_format(&self) -> PixelFormat
pub fn pixel_format(&self) -> PixelFormat
Get the pixel format.
C++ equivalent: PixelFormat pixelFormat() const
Sourcepub fn set_pixel_format(&self, format: PixelFormat)
pub fn set_pixel_format(&self, format: PixelFormat)
Set the pixel format.
C++ equivalent: void setPixelFormat(PixelFormat)
Trait Implementations§
Source§impl Referencing for TileRenderPipelineColorAttachmentDescriptor
impl Referencing for TileRenderPipelineColorAttachmentDescriptor
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 TileRenderPipelineColorAttachmentDescriptor
impl Sync for TileRenderPipelineColorAttachmentDescriptor
Auto Trait Implementations§
impl Freeze for TileRenderPipelineColorAttachmentDescriptor
impl RefUnwindSafe for TileRenderPipelineColorAttachmentDescriptor
impl Unpin for TileRenderPipelineColorAttachmentDescriptor
impl UnwindSafe for TileRenderPipelineColorAttachmentDescriptor
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