pub struct TextureDescriptor(/* private fields */);Implementations§
Methods from Deref<Target = TextureDescriptorRef>§
pub fn texture_type(&self) -> MTLTextureType
pub fn set_texture_type(&self, texture_type: MTLTextureType)
pub fn pixel_format(&self) -> MTLPixelFormat
pub fn set_pixel_format(&self, pixel_format: MTLPixelFormat)
pub fn width(&self) -> NSUInteger
pub fn set_width(&self, width: NSUInteger)
pub fn height(&self) -> NSUInteger
pub fn set_height(&self, height: NSUInteger)
pub fn depth(&self) -> NSUInteger
pub fn set_depth(&self, depth: NSUInteger)
pub fn mipmap_level_count(&self) -> NSUInteger
pub fn set_mipmap_level_count(&self, count: NSUInteger)
pub fn set_mipmap_level_count_for_size(&self, size: MTLSize)
pub fn sample_count(&self) -> NSUInteger
pub fn set_sample_count(&self, count: NSUInteger)
pub fn array_length(&self) -> NSUInteger
pub fn set_array_length(&self, length: NSUInteger)
pub fn resource_options(&self) -> MTLResourceOptions
pub fn set_resource_options(&self, options: MTLResourceOptions)
pub fn cpu_cache_mode(&self) -> MTLCPUCacheMode
pub fn set_cpu_cache_mode(&self, mode: MTLCPUCacheMode)
pub fn storage_mode(&self) -> MTLStorageMode
pub fn set_storage_mode(&self, mode: MTLStorageMode)
pub fn usage(&self) -> MTLTextureUsage
pub fn set_usage(&self, usage: MTLTextureUsage)
pub fn compression_type(&self) -> MTLTextureCompressionType
pub fn set_compression_type(&self, compression_type: MTLTextureCompressionType)
Trait Implementations§
Source§impl AsMut<TextureDescriptorRef> for TextureDescriptor
impl AsMut<TextureDescriptorRef> for TextureDescriptor
Source§fn as_mut(&mut self) -> &mut TextureDescriptorRef
fn as_mut(&mut self) -> &mut TextureDescriptorRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<TextureDescriptorRef> for TextureDescriptor
impl AsRef<TextureDescriptorRef> for TextureDescriptor
Source§fn as_ref(&self) -> &TextureDescriptorRef
fn as_ref(&self) -> &TextureDescriptorRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<TextureDescriptorRef> for TextureDescriptor
impl Borrow<TextureDescriptorRef> for TextureDescriptor
Source§fn borrow(&self) -> &TextureDescriptorRef
fn borrow(&self) -> &TextureDescriptorRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<TextureDescriptorRef> for TextureDescriptor
impl BorrowMut<TextureDescriptorRef> for TextureDescriptor
Source§fn borrow_mut(&mut self) -> &mut TextureDescriptorRef
fn borrow_mut(&mut self) -> &mut TextureDescriptorRef
Mutably borrows from an owned value. Read more
Source§impl Clone for TextureDescriptor
impl Clone for TextureDescriptor
Source§fn clone(&self) -> TextureDescriptor
fn clone(&self) -> TextureDescriptor
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextureDescriptor
impl Debug for TextureDescriptor
Source§impl Deref for TextureDescriptor
impl Deref for TextureDescriptor
Source§type Target = TextureDescriptorRef
type Target = TextureDescriptorRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &TextureDescriptorRef
fn deref(&self) -> &TextureDescriptorRef
Dereferences the value.
Source§impl DerefMut for TextureDescriptor
impl DerefMut for TextureDescriptor
Source§fn deref_mut(&mut self) -> &mut TextureDescriptorRef
fn deref_mut(&mut self) -> &mut TextureDescriptorRef
Mutably dereferences the value.
Source§impl Drop for TextureDescriptor
impl Drop for TextureDescriptor
Source§impl ForeignType for TextureDescriptor
impl ForeignType for TextureDescriptor
Source§type CType = MTLTextureDescriptor
type CType = MTLTextureDescriptor
The raw C type.
Source§type Ref = TextureDescriptorRef
type Ref = TextureDescriptorRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut MTLTextureDescriptor) -> TextureDescriptor
unsafe fn from_ptr(ptr: *mut MTLTextureDescriptor) -> TextureDescriptor
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLTextureDescriptor
fn as_ptr(&self) -> *mut MTLTextureDescriptor
Returns a raw pointer to the wrapped value.
impl Send for TextureDescriptor
impl Sync for TextureDescriptor
Auto Trait Implementations§
impl Freeze for TextureDescriptor
impl RefUnwindSafe for TextureDescriptor
impl Unpin for TextureDescriptor
impl UnwindSafe for TextureDescriptor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)