Trait objc2_metal::MTLSamplerState

source ·
pub unsafe trait MTLSamplerState: NSObjectProtocol + IsRetainable {
    // Provided methods
    fn label(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
       where Self: Sized + Message { ... }
    unsafe fn gpuResourceID(&self) -> MTLResourceID
       where Self: Sized + Message { ... }
}
Available on crate feature MTLSampler only.

Provided Methods§

source

fn label(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

source

fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
where Self: Sized + Message,

Available on crate feature MTLDevice only.
source

unsafe fn gpuResourceID(&self) -> MTLResourceID
where Self: Sized + Message,

Available on crate feature MTLTypes only.

Trait Implementations§

source§

impl ProtocolType for dyn MTLSamplerState

source§

const NAME: &'static str = "MTLSamplerState"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn MTLSamplerState

Implementations on Foreign Types§

source§

impl<T> MTLSamplerState for ProtocolObject<T>
where T: ?Sized + MTLSamplerState,

Implementors§