1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::Foundation::*;
use crate::Metal::*;

extern_protocol!(
    pub unsafe trait MTLFunctionStitchingAttribute: NSObjectProtocol {}

    unsafe impl ProtocolType for dyn MTLFunctionStitchingAttribute {}
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Metal_MTLFunctionStitchingAttributeAlwaysInline")]
    pub struct MTLFunctionStitchingAttributeAlwaysInline;

    #[cfg(feature = "Metal_MTLFunctionStitchingAttributeAlwaysInline")]
    unsafe impl ClassType for MTLFunctionStitchingAttributeAlwaysInline {
        type Super = NSObject;
    }
);

#[cfg(feature = "Metal_MTLFunctionStitchingAttributeAlwaysInline")]
unsafe impl MTLFunctionStitchingAttribute for MTLFunctionStitchingAttributeAlwaysInline {}

#[cfg(feature = "Metal_MTLFunctionStitchingAttributeAlwaysInline")]
unsafe impl NSObjectProtocol for MTLFunctionStitchingAttributeAlwaysInline {}

extern_methods!(
    #[cfg(feature = "Metal_MTLFunctionStitchingAttributeAlwaysInline")]
    unsafe impl MTLFunctionStitchingAttributeAlwaysInline {}
);

extern_protocol!(
    pub unsafe trait MTLFunctionStitchingNode: NSObjectProtocol {}

    unsafe impl ProtocolType for dyn MTLFunctionStitchingNode {}
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Metal_MTLFunctionStitchingInputNode")]
    pub struct MTLFunctionStitchingInputNode;

    #[cfg(feature = "Metal_MTLFunctionStitchingInputNode")]
    unsafe impl ClassType for MTLFunctionStitchingInputNode {
        type Super = NSObject;
    }
);

#[cfg(feature = "Metal_MTLFunctionStitchingInputNode")]
unsafe impl MTLFunctionStitchingNode for MTLFunctionStitchingInputNode {}

#[cfg(feature = "Metal_MTLFunctionStitchingInputNode")]
unsafe impl NSObjectProtocol for MTLFunctionStitchingInputNode {}

extern_methods!(
    #[cfg(feature = "Metal_MTLFunctionStitchingInputNode")]
    unsafe impl MTLFunctionStitchingInputNode {
        #[method(argumentIndex)]
        pub unsafe fn argumentIndex(&self) -> NSUInteger;

        #[method(setArgumentIndex:)]
        pub unsafe fn setArgumentIndex(&self, argument_index: NSUInteger);

        #[method_id(@__retain_semantics Init initWithArgumentIndex:)]
        pub unsafe fn initWithArgumentIndex(
            this: Option<Allocated<Self>>,
            argument: NSUInteger,
        ) -> Id<Self, Shared>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Metal_MTLFunctionStitchingFunctionNode")]
    pub struct MTLFunctionStitchingFunctionNode;

    #[cfg(feature = "Metal_MTLFunctionStitchingFunctionNode")]
    unsafe impl ClassType for MTLFunctionStitchingFunctionNode {
        type Super = NSObject;
    }
);

#[cfg(feature = "Metal_MTLFunctionStitchingFunctionNode")]
unsafe impl MTLFunctionStitchingNode for MTLFunctionStitchingFunctionNode {}

#[cfg(feature = "Metal_MTLFunctionStitchingFunctionNode")]
unsafe impl NSObjectProtocol for MTLFunctionStitchingFunctionNode {}

extern_methods!(
    #[cfg(feature = "Metal_MTLFunctionStitchingFunctionNode")]
    unsafe impl MTLFunctionStitchingFunctionNode {
        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other name)]
        pub unsafe fn name(&self) -> Id<NSString, Shared>;

        #[cfg(feature = "Foundation_NSString")]
        #[method(setName:)]
        pub unsafe fn setName(&self, name: &NSString);

        #[cfg(feature = "Foundation_NSArray")]
        #[method_id(@__retain_semantics Other arguments)]
        pub unsafe fn arguments(
            &self,
        ) -> Id<NSArray<ProtocolObject<dyn MTLFunctionStitchingNode>>, Shared>;

        #[cfg(feature = "Foundation_NSArray")]
        #[method(setArguments:)]
        pub unsafe fn setArguments(
            &self,
            arguments: &NSArray<ProtocolObject<dyn MTLFunctionStitchingNode>>,
        );

        #[cfg(feature = "Foundation_NSArray")]
        #[method_id(@__retain_semantics Other controlDependencies)]
        pub unsafe fn controlDependencies(
            &self,
        ) -> Id<NSArray<MTLFunctionStitchingFunctionNode>, Shared>;

        #[cfg(feature = "Foundation_NSArray")]
        #[method(setControlDependencies:)]
        pub unsafe fn setControlDependencies(
            &self,
            control_dependencies: &NSArray<MTLFunctionStitchingFunctionNode>,
        );

        #[cfg(all(feature = "Foundation_NSArray", feature = "Foundation_NSString"))]
        #[method_id(@__retain_semantics Init initWithName:arguments:controlDependencies:)]
        pub unsafe fn initWithName_arguments_controlDependencies(
            this: Option<Allocated<Self>>,
            name: &NSString,
            arguments: &NSArray<ProtocolObject<dyn MTLFunctionStitchingNode>>,
            control_dependencies: &NSArray<MTLFunctionStitchingFunctionNode>,
        ) -> Id<Self, Shared>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Metal_MTLFunctionStitchingGraph")]
    pub struct MTLFunctionStitchingGraph;

    #[cfg(feature = "Metal_MTLFunctionStitchingGraph")]
    unsafe impl ClassType for MTLFunctionStitchingGraph {
        type Super = NSObject;
    }
);

#[cfg(feature = "Metal_MTLFunctionStitchingGraph")]
unsafe impl NSObjectProtocol for MTLFunctionStitchingGraph {}

extern_methods!(
    #[cfg(feature = "Metal_MTLFunctionStitchingGraph")]
    unsafe impl MTLFunctionStitchingGraph {
        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other functionName)]
        pub unsafe fn functionName(&self) -> Id<NSString, Shared>;

        #[cfg(feature = "Foundation_NSString")]
        #[method(setFunctionName:)]
        pub unsafe fn setFunctionName(&self, function_name: &NSString);

        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "Metal_MTLFunctionStitchingFunctionNode"
        ))]
        #[method_id(@__retain_semantics Other nodes)]
        pub unsafe fn nodes(&self) -> Id<NSArray<MTLFunctionStitchingFunctionNode>, Shared>;

        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "Metal_MTLFunctionStitchingFunctionNode"
        ))]
        #[method(setNodes:)]
        pub unsafe fn setNodes(&self, nodes: &NSArray<MTLFunctionStitchingFunctionNode>);

        #[cfg(feature = "Metal_MTLFunctionStitchingFunctionNode")]
        #[method_id(@__retain_semantics Other outputNode)]
        pub unsafe fn outputNode(&self) -> Option<Id<MTLFunctionStitchingFunctionNode, Shared>>;

        #[cfg(feature = "Metal_MTLFunctionStitchingFunctionNode")]
        #[method(setOutputNode:)]
        pub unsafe fn setOutputNode(&self, output_node: Option<&MTLFunctionStitchingFunctionNode>);

        #[cfg(feature = "Foundation_NSArray")]
        #[method_id(@__retain_semantics Other attributes)]
        pub unsafe fn attributes(
            &self,
        ) -> Id<NSArray<ProtocolObject<dyn MTLFunctionStitchingAttribute>>, Shared>;

        #[cfg(feature = "Foundation_NSArray")]
        #[method(setAttributes:)]
        pub unsafe fn setAttributes(
            &self,
            attributes: &NSArray<ProtocolObject<dyn MTLFunctionStitchingAttribute>>,
        );

        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "Foundation_NSString",
            feature = "Metal_MTLFunctionStitchingFunctionNode"
        ))]
        #[method_id(@__retain_semantics Init initWithFunctionName:nodes:outputNode:attributes:)]
        pub unsafe fn initWithFunctionName_nodes_outputNode_attributes(
            this: Option<Allocated<Self>>,
            function_name: &NSString,
            nodes: &NSArray<MTLFunctionStitchingFunctionNode>,
            output_node: Option<&MTLFunctionStitchingFunctionNode>,
            attributes: &NSArray<ProtocolObject<dyn MTLFunctionStitchingAttribute>>,
        ) -> Id<Self, Shared>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Metal_MTLStitchedLibraryDescriptor")]
    pub struct MTLStitchedLibraryDescriptor;

    #[cfg(feature = "Metal_MTLStitchedLibraryDescriptor")]
    unsafe impl ClassType for MTLStitchedLibraryDescriptor {
        type Super = NSObject;
    }
);

#[cfg(feature = "Metal_MTLStitchedLibraryDescriptor")]
unsafe impl NSObjectProtocol for MTLStitchedLibraryDescriptor {}

extern_methods!(
    #[cfg(feature = "Metal_MTLStitchedLibraryDescriptor")]
    unsafe impl MTLStitchedLibraryDescriptor {
        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "Metal_MTLFunctionStitchingGraph"
        ))]
        #[method_id(@__retain_semantics Other functionGraphs)]
        pub unsafe fn functionGraphs(&self) -> Id<NSArray<MTLFunctionStitchingGraph>, Shared>;

        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "Metal_MTLFunctionStitchingGraph"
        ))]
        #[method(setFunctionGraphs:)]
        pub unsafe fn setFunctionGraphs(
            &self,
            function_graphs: &NSArray<MTLFunctionStitchingGraph>,
        );

        #[cfg(feature = "Foundation_NSArray")]
        #[method_id(@__retain_semantics Other functions)]
        pub unsafe fn functions(&self) -> Id<NSArray<ProtocolObject<dyn MTLFunction>>, Shared>;

        #[cfg(feature = "Foundation_NSArray")]
        #[method(setFunctions:)]
        pub unsafe fn setFunctions(&self, functions: &NSArray<ProtocolObject<dyn MTLFunction>>);
    }
);