Source code
Revision control
Copy as Markdown
Other Tools
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
/// Base interface for describing a Metal 4 shader function.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/metal/mtl4functiondescriptor?language=objc)
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MTL4FunctionDescriptor;
);
extern_conformance!(
unsafe impl NSCopying for MTL4FunctionDescriptor {}
);
unsafe impl CopyingHelper for MTL4FunctionDescriptor {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for MTL4FunctionDescriptor {}
);
impl MTL4FunctionDescriptor {
extern_methods!();
}
/// Methods declared on superclass `NSObject`.
impl MTL4FunctionDescriptor {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new() -> Retained<Self>;
);
}
impl DefaultRetained for MTL4FunctionDescriptor {
#[inline]
fn default_retained() -> Retained<Self> {
Self::new()
}
}