Struct MTLTextureDescriptor

Source
pub struct MTLTextureDescriptor(/* private fields */);

Implementations§

Source§

impl MTLTextureDescriptor

Source

pub unsafe fn new() -> MTLTextureDescriptor

Source

pub unsafe fn set_texture_type(&self, texture_type: MTLTextureType)

Source

pub unsafe fn set_pixel_format(&self, format: MTLPixelFormat)

Source

pub unsafe fn set_width(&self, width: NSUInteger)

Source

pub unsafe fn set_height(&self, height: NSUInteger)

Source

pub unsafe fn set_depth(&self, depth: NSUInteger)

Source

pub unsafe fn set_mipmap_level_count(&self, count: NSUInteger)

Source

pub unsafe fn set_sample_count(&self, count: NSUInteger)

Source

pub unsafe fn set_array_length(&self, length: NSUInteger)

Source

pub unsafe fn set_resource_options(&self, options: MTLResourceOptions)

Source

pub unsafe fn set_allow_gpu_optimized_contents(&self, allow: bool)

Source

pub unsafe fn set_usage(&self, usage: BitFlags<MTLTextureUsage>)

Trait Implementations§

Source§

impl Drop for MTLTextureDescriptor

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Object for MTLTextureDescriptor

Source§

unsafe fn from_ptr(ptr: ObjectPointer) -> Self
where Self: Sized,

Constructs an object from the provided pointer. Read more
Source§

fn get_ptr(&self) -> ObjectPointer

Returns the underlying pointer of the object. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.