Trait objc2_metal::MTLCounterSampleBuffer

source ·
pub unsafe trait MTLCounterSampleBuffer: NSObjectProtocol + IsRetainable {
    // Provided methods
    unsafe fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
       where Self: Sized + Message { ... }
    unsafe fn label(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    unsafe fn sampleCount(&self) -> NSUInteger
       where Self: Sized + Message { ... }
    unsafe fn resolveCounterRange(
        &self,
        range: NSRange
    ) -> Option<Retained<NSData>>
       where Self: Sized + Message { ... }
}
Available on crate feature MTLCounters only.

Provided Methods§

source

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

Available on crate feature MTLDevice only.
source

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

source

unsafe fn sampleCount(&self) -> NSUInteger
where Self: Sized + Message,

source

unsafe fn resolveCounterRange(&self, range: NSRange) -> Option<Retained<NSData>>
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn MTLCounterSampleBuffer

source§

const NAME: &'static str = "MTLCounterSampleBuffer"

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 MTLCounterSampleBuffer

Implementations on Foreign Types§

source§

impl<T> MTLCounterSampleBuffer for ProtocolObject<T>

Implementors§