pub unsafe trait MTLEvent:
NSObjectProtocol
+ Send
+ Sync {
// Provided methods
fn device(&self) -> Option<Retained<ProtocolObject<dyn MTLDevice>>>
where Self: Sized + Message { ... }
fn label(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
fn setLabel(&self, label: Option<&NSString>)
where Self: Sized + Message { ... }
}Available on crate feature
MTLEvent only.Expand description
Provided Methods§
Sourcefn device(&self) -> Option<Retained<ProtocolObject<dyn MTLDevice>>>
Available on crate feature MTLDevice only.
fn device(&self) -> Option<Retained<ProtocolObject<dyn MTLDevice>>>
MTLDevice only.The device this event can be used with. Will be nil when the event is shared across devices (i.e. MTLSharedEvent).