use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use objc2_metal::*;
use crate::*;
extern_class!(
#[unsafe(super(MPSNDArrayMultiaryKernel, MPSNDArrayMultiaryBase, MPSKernel, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(
feature = "MPSCore",
feature = "MPSKernel",
feature = "MPSNDArrayKernel"
))]
pub struct MPSNDArrayMatrixMultiplication;
);
#[cfg(all(
feature = "MPSCore",
feature = "MPSKernel",
feature = "MPSNDArrayKernel"
))]
extern_conformance!(
unsafe impl NSCoding for MPSNDArrayMatrixMultiplication {}
);
#[cfg(all(
feature = "MPSCore",
feature = "MPSKernel",
feature = "MPSNDArrayKernel"
))]
extern_conformance!(
unsafe impl NSCopying for MPSNDArrayMatrixMultiplication {}
);
#[cfg(all(
feature = "MPSCore",
feature = "MPSKernel",
feature = "MPSNDArrayKernel"
))]
unsafe impl CopyingHelper for MPSNDArrayMatrixMultiplication {
type Result = Self;
}
#[cfg(all(
feature = "MPSCore",
feature = "MPSKernel",
feature = "MPSNDArrayKernel"
))]
extern_conformance!(
unsafe impl NSObjectProtocol for MPSNDArrayMatrixMultiplication {}
);
#[cfg(all(
feature = "MPSCore",
feature = "MPSKernel",
feature = "MPSNDArrayKernel"
))]
extern_conformance!(
unsafe impl NSSecureCoding for MPSNDArrayMatrixMultiplication {}
);
#[cfg(all(
feature = "MPSCore",
feature = "MPSKernel",
feature = "MPSNDArrayKernel"
))]
impl MPSNDArrayMatrixMultiplication {
extern_methods!(
#[unsafe(method(alpha))]
#[unsafe(method_family = none)]
pub unsafe fn alpha(&self) -> c_double;
#[unsafe(method(setAlpha:))]
#[unsafe(method_family = none)]
pub unsafe fn setAlpha(&self, alpha: c_double);
#[unsafe(method(beta))]
#[unsafe(method_family = none)]
pub unsafe fn beta(&self) -> c_double;
#[unsafe(method(setBeta:))]
#[unsafe(method_family = none)]
pub unsafe fn setBeta(&self, beta: c_double);
);
}
#[cfg(all(
feature = "MPSCore",
feature = "MPSKernel",
feature = "MPSNDArrayKernel"
))]
impl MPSNDArrayMatrixMultiplication {
extern_methods!(
#[unsafe(method(initWithDevice:sourceCount:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithDevice_sourceCount(
this: Allocated<Self>,
device: &ProtocolObject<dyn MTLDevice>,
count: NSUInteger,
) -> Retained<Self>;
#[unsafe(method(initWithCoder:device:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder_device(
this: Allocated<Self>,
coder: &NSCoder,
device: &ProtocolObject<dyn MTLDevice>,
) -> Retained<Self>;
);
}
#[cfg(all(
feature = "MPSCore",
feature = "MPSKernel",
feature = "MPSNDArrayKernel"
))]
impl MPSNDArrayMatrixMultiplication {
extern_methods!(
#[unsafe(method(initWithDevice:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithDevice(
this: Allocated<Self>,
device: &ProtocolObject<dyn MTLDevice>,
) -> Retained<Self>;
);
}
#[cfg(all(
feature = "MPSCore",
feature = "MPSKernel",
feature = "MPSNDArrayKernel"
))]
impl MPSNDArrayMatrixMultiplication {
extern_methods!(
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(
this: Allocated<Self>,
a_decoder: &NSCoder,
) -> Option<Retained<Self>>;
);
}
#[cfg(all(
feature = "MPSCore",
feature = "MPSKernel",
feature = "MPSNDArrayKernel"
))]
impl MPSNDArrayMatrixMultiplication {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}