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§
fn name(&self) -> Retained<NSString>
Sourcefn counters(&self) -> Retained<NSArray<ProtocolObject<dyn MTLCounter>>>
fn counters(&self) -> Retained<NSArray<ProtocolObject<dyn MTLCounter>>>
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.