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
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::Foundation::*;
use crate::Metal::*;

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

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

#[cfg(feature = "Metal_MTLFunctionConstantValues")]
unsafe impl NSObjectProtocol for MTLFunctionConstantValues {}

extern_methods!(
    #[cfg(feature = "Metal_MTLFunctionConstantValues")]
    unsafe impl MTLFunctionConstantValues {
        #[method(setConstantValue:type:atIndex:)]
        pub unsafe fn setConstantValue_type_atIndex(
            &self,
            value: NonNull<c_void>,
            r#type: MTLDataType,
            index: NSUInteger,
        );

        #[method(setConstantValues:type:withRange:)]
        pub unsafe fn setConstantValues_type_withRange(
            &self,
            values: NonNull<c_void>,
            r#type: MTLDataType,
            range: NSRange,
        );

        #[cfg(feature = "Foundation_NSString")]
        #[method(setConstantValue:type:withName:)]
        pub unsafe fn setConstantValue_type_withName(
            &self,
            value: NonNull<c_void>,
            r#type: MTLDataType,
            name: &NSString,
        );

        #[method(reset)]
        pub fn reset(&self);
    }
);