objc2_metal/generated/MTL4BinaryFunction.rs
1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4use objc2_foundation::*;
5
6use crate::*;
7
8extern_protocol!(
9 /// Represents a binary function.
10 ///
11 /// A binary function is a shader that you precompile from Metal IR to GPU machine code.
12 ///
13 /// See also [Apple's documentation](https://developer.apple.com/documentation/metal/mtl4binaryfunction?language=objc)
14 pub unsafe trait MTL4BinaryFunction: NSObjectProtocol + Send + Sync {
15 /// Obtains the optional name of this binary function.
16 #[unsafe(method(name))]
17 #[unsafe(method_family = none)]
18 fn name(&self) -> Option<Retained<NSString>>;
19
20 #[cfg(feature = "MTLLibrary")]
21 /// Describes the type of this binary function.
22 #[unsafe(method(functionType))]
23 #[unsafe(method_family = none)]
24 fn functionType(&self) -> MTLFunctionType;
25 }
26);