pub struct MTLTextureDescriptor(/* private fields */);Implementations§
Source§impl MTLTextureDescriptor
impl MTLTextureDescriptor
pub unsafe fn set_pixel_format(&self, format: MTLPixelFormat)
pub unsafe fn set_texture_type(&self, typ: MTLTextureType)
pub unsafe fn set_width(&self, width: NSUInteger)
pub unsafe fn set_height(&self, height: NSUInteger)
pub unsafe fn set_depth(&self, depth: NSUInteger)
pub unsafe fn set_usage(&self, usage: MTLTextureUsage)
pub unsafe fn set_storage_mode(&self, mode: MTLStorageMode)
Trait Implementations§
Source§impl Message for MTLTextureDescriptor
impl Message for MTLTextureDescriptor
Source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A,
) -> Result<R, MessageError>
unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
Sends a message to self with the given selector and arguments. Read more
Source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
Verifies that the argument and return types match the encoding of the
method for the given selector. Read more
Auto Trait Implementations§
impl Freeze for MTLTextureDescriptor
impl RefUnwindSafe for MTLTextureDescriptor
impl Send for MTLTextureDescriptor
impl Sync for MTLTextureDescriptor
impl Unpin for MTLTextureDescriptor
impl UnwindSafe for MTLTextureDescriptor
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