objc2_metal/generated/
MTLLinkedFunctions.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 pub struct MTLLinkedFunctions;
19);
20
21extern_conformance!(
22 unsafe impl NSCopying for MTLLinkedFunctions {}
23);
24
25unsafe impl CopyingHelper for MTLLinkedFunctions {
26 type Result = Self;
27}
28
29extern_conformance!(
30 unsafe impl NSObjectProtocol for MTLLinkedFunctions {}
31);
32
33impl MTLLinkedFunctions {
34 extern_methods!(
35 #[unsafe(method(linkedFunctions))]
37 #[unsafe(method_family = none)]
38 pub fn linkedFunctions() -> Retained<MTLLinkedFunctions>;
39
40 #[cfg(feature = "MTLLibrary")]
41 #[unsafe(method(functions))]
43 #[unsafe(method_family = none)]
44 pub fn functions(&self) -> Option<Retained<NSArray<ProtocolObject<dyn MTLFunction>>>>;
45
46 #[cfg(feature = "MTLLibrary")]
47 #[unsafe(method(setFunctions:))]
51 #[unsafe(method_family = none)]
52 pub fn setFunctions(&self, functions: Option<&NSArray<ProtocolObject<dyn MTLFunction>>>);
53
54 #[cfg(feature = "MTLLibrary")]
55 #[unsafe(method(binaryFunctions))]
57 #[unsafe(method_family = none)]
58 pub fn binaryFunctions(&self)
59 -> Option<Retained<NSArray<ProtocolObject<dyn MTLFunction>>>>;
60
61 #[cfg(feature = "MTLLibrary")]
62 #[unsafe(method(setBinaryFunctions:))]
66 #[unsafe(method_family = none)]
67 pub fn setBinaryFunctions(
68 &self,
69 binary_functions: Option<&NSArray<ProtocolObject<dyn MTLFunction>>>,
70 );
71
72 #[cfg(feature = "MTLLibrary")]
73 #[unsafe(method(groups))]
75 #[unsafe(method_family = none)]
76 pub fn groups(
77 &self,
78 ) -> Option<Retained<NSDictionary<NSString, NSArray<ProtocolObject<dyn MTLFunction>>>>>;
79
80 #[cfg(feature = "MTLLibrary")]
81 #[unsafe(method(setGroups:))]
85 #[unsafe(method_family = none)]
86 pub fn setGroups(
87 &self,
88 groups: Option<&NSDictionary<NSString, NSArray<ProtocolObject<dyn MTLFunction>>>>,
89 );
90
91 #[cfg(feature = "MTLLibrary")]
92 #[unsafe(method(privateFunctions))]
97 #[unsafe(method_family = none)]
98 pub fn privateFunctions(
99 &self,
100 ) -> Option<Retained<NSArray<ProtocolObject<dyn MTLFunction>>>>;
101
102 #[cfg(feature = "MTLLibrary")]
103 #[unsafe(method(setPrivateFunctions:))]
107 #[unsafe(method_family = none)]
108 pub fn setPrivateFunctions(
109 &self,
110 private_functions: Option<&NSArray<ProtocolObject<dyn MTLFunction>>>,
111 );
112 );
113}
114
115impl MTLLinkedFunctions {
117 extern_methods!(
118 #[unsafe(method(init))]
119 #[unsafe(method_family = init)]
120 pub fn init(this: Allocated<Self>) -> Retained<Self>;
121
122 #[unsafe(method(new))]
123 #[unsafe(method_family = new)]
124 pub fn new() -> Retained<Self>;
125 );
126}
127
128impl DefaultRetained for MTLLinkedFunctions {
129 #[inline]
130 fn default_retained() -> Retained<Self> {
131 Self::new()
132 }
133}