pub struct MTLTextureDescriptor(/* private fields */);Implementations§
Source§impl MTLTextureDescriptor
impl MTLTextureDescriptor
pub unsafe fn new() -> MTLTextureDescriptor
pub unsafe fn set_texture_type(&self, texture_type: MTLTextureType)
pub unsafe fn set_pixel_format(&self, format: MTLPixelFormat)
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_mipmap_level_count(&self, count: NSUInteger)
pub unsafe fn set_sample_count(&self, count: NSUInteger)
pub unsafe fn set_array_length(&self, length: NSUInteger)
pub unsafe fn set_resource_options(&self, options: MTLResourceOptions)
pub unsafe fn set_allow_gpu_optimized_contents(&self, allow: bool)
pub unsafe fn set_usage(&self, usage: BitFlags<MTLTextureUsage>)
Trait Implementations§
Source§impl Drop for MTLTextureDescriptor
impl Drop for MTLTextureDescriptor
Source§impl Object for MTLTextureDescriptor
impl Object for MTLTextureDescriptor
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