1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use crate::common::*;
use crate::Foundation::*;
use crate::Metal::*;
extern_protocol!(
pub unsafe trait MTLFunctionHandle: NSObjectProtocol {
#[method(functionType)]
fn functionType(&self) -> MTLFunctionType;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other name)]
fn name(&self) -> Id<NSString, Shared>;
#[method_id(@__retain_semantics Other device)]
fn device(&self) -> Id<ProtocolObject<dyn MTLDevice>, Shared>;
}
unsafe impl ProtocolType for dyn MTLFunctionHandle {}
);