pub struct TextureReferenceType(/* private fields */);Expand description
A texture reference type for reflection.
C++ equivalent: MTL::TextureReferenceType
Implementations§
Source§impl TextureReferenceType
impl TextureReferenceType
Sourcepub fn data_type(&self) -> DataType
pub fn data_type(&self) -> DataType
Get the data type.
C++ equivalent: DataType dataType() const
Sourcepub fn access(&self) -> BindingAccess
pub fn access(&self) -> BindingAccess
Get the access mode.
C++ equivalent: BindingAccess access() const
Sourcepub fn is_depth_texture(&self) -> bool
pub fn is_depth_texture(&self) -> bool
Check if this is a depth texture.
C++ equivalent: bool isDepthTexture() const
Sourcepub fn texture_data_type(&self) -> DataType
pub fn texture_data_type(&self) -> DataType
Get the texture data type.
C++ equivalent: DataType textureDataType() const
Sourcepub fn texture_type(&self) -> TextureType
pub fn texture_type(&self) -> TextureType
Get the texture type.
C++ equivalent: TextureType textureType() const
Trait Implementations§
Source§impl Clone for TextureReferenceType
impl Clone for TextureReferenceType
Source§impl Drop for TextureReferenceType
impl Drop for TextureReferenceType
Source§impl Referencing for TextureReferenceType
impl Referencing for TextureReferenceType
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 TextureReferenceType
impl Sync for TextureReferenceType
Auto Trait Implementations§
impl Freeze for TextureReferenceType
impl RefUnwindSafe for TextureReferenceType
impl Unpin for TextureReferenceType
impl UnwindSafe for TextureReferenceType
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