use objc2::{extern_class, extern_methods, runtime::NSObject};
use crate::MTLDataType;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MTLPointerType;
);
impl MTLPointerType {
extern_methods!(
#[unsafe(method(elementType))]
#[unsafe(method_family = none)]
pub fn element_type(&self) -> MTLDataType;
#[unsafe(method(access))]
#[unsafe(method_family = none)]
pub fn access(&self) -> crate::argument::MTLBindingAccess;
#[unsafe(method(alignment))]
#[unsafe(method_family = none)]
pub fn alignment(&self) -> usize;
#[unsafe(method(dataSize))]
#[unsafe(method_family = none)]
pub fn data_size(&self) -> usize;
#[unsafe(method(elementIsArgumentBuffer))]
#[unsafe(method_family = none)]
pub fn element_is_argument_buffer(&self) -> bool;
#[unsafe(method(elementStructType))]
#[unsafe(method_family = none)]
pub fn element_struct_type(&self) -> Option<objc2::rc::Retained<crate::argument::MTLStructType>>;
#[unsafe(method(elementArrayType))]
#[unsafe(method_family = none)]
pub fn element_array_type(&self) -> Option<objc2::rc::Retained<crate::argument::MTLArrayType>>;
);
}