MTLCounterSet

Trait MTLCounterSet 

Source
pub unsafe trait MTLCounterSet:
    NSObjectProtocol
    + Send
    + Sync {
    // Provided methods
    fn name(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    fn counters(&self) -> Retained<NSArray<ProtocolObject<dyn MTLCounter>>>
       where Self: Sized + Message { ... }
}
Available on crate feature MTLCounters only.
Expand description

A collection of MTLCounters that the device can capture in a single pass.

See also Apple’s documentation

Provided Methods§

Source

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

Source

fn counters(&self) -> Retained<NSArray<ProtocolObject<dyn MTLCounter>>>
where Self: Sized + Message,

The counters array contains all the counters that will be written when a counter sample is collected. Counters that do not appear in this array will not be written to the resolved buffer when the samples are resolved, even if they appear in the corresponding resolved counter structure. Instead MTLCounterErrorValue will be written in the resolved buffer.

Trait Implementations§

Source§

impl ProtocolType for dyn MTLCounterSet

Source§

const NAME: &'static str = "MTLCounterSet"

The name of the Objective-C protocol that this type represents. Read more
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 MTLCounterSet
where T: ?Sized + Message + MTLCounterSet,

Implementations on Foreign Types§

Source§

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

Implementors§