pub struct TextureBinding(/* private fields */);Expand description
Texture binding information.
C++ equivalent: MTL::TextureBinding
Implementations§
Source§impl TextureBinding
impl TextureBinding
Sourcepub fn access(&self) -> BindingAccess
pub fn access(&self) -> BindingAccess
Get the access mode.
Sourcepub fn is_argument(&self) -> bool
pub fn is_argument(&self) -> bool
Check if this is an argument.
Sourcepub fn binding_type(&self) -> BindingType
pub fn binding_type(&self) -> BindingType
Get the binding type.
Sourcepub fn array_length(&self) -> UInteger
pub fn array_length(&self) -> UInteger
Get the array length.
C++ equivalent: NS::UInteger arrayLength() 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
Sourcepub fn depth_texture(&self) -> bool
👎Deprecated: Use is_depth_texture instead
pub fn depth_texture(&self) -> bool
Check if this is a depth texture (deprecated).
C++ equivalent: bool depthTexture() const
Trait Implementations§
Source§impl Clone for TextureBinding
impl Clone for TextureBinding
Source§impl Drop for TextureBinding
impl Drop for TextureBinding
Source§impl Referencing for TextureBinding
impl Referencing for TextureBinding
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 TextureBinding
impl Sync for TextureBinding
Auto Trait Implementations§
impl Freeze for TextureBinding
impl RefUnwindSafe for TextureBinding
impl Unpin for TextureBinding
impl UnwindSafe for TextureBinding
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