icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::Foundation::*;
use crate::Metal::*;

extern_struct!(
    #[encoding_name("?")]
    pub struct MTLOrigin {
        pub x: NSUInteger,
        pub y: NSUInteger,
        pub z: NSUInteger,
    }
);

inline_fn!(
    pub unsafe fn MTLOriginMake(x: NSUInteger, y: NSUInteger, z: NSUInteger) -> MTLOrigin {
        todo!()
    }
);

extern_struct!(
    #[encoding_name("?")]
    pub struct MTLSize {
        pub width: NSUInteger,
        pub height: NSUInteger,
        pub depth: NSUInteger,
    }
);

inline_fn!(
    pub unsafe fn MTLSizeMake(width: NSUInteger, height: NSUInteger, depth: NSUInteger) -> MTLSize {
        todo!()
    }
);

extern_struct!(
    #[encoding_name("?")]
    pub struct MTLRegion {
        pub origin: MTLOrigin,
        pub size: MTLSize,
    }
);

inline_fn!(
    pub unsafe fn MTLRegionMake1D(x: NSUInteger, width: NSUInteger) -> MTLRegion {
        todo!()
    }
);

inline_fn!(
    pub unsafe fn MTLRegionMake2D(
        x: NSUInteger,
        y: NSUInteger,
        width: NSUInteger,
        height: NSUInteger,
    ) -> MTLRegion {
        todo!()
    }
);

inline_fn!(
    pub unsafe fn MTLRegionMake3D(
        x: NSUInteger,
        y: NSUInteger,
        z: NSUInteger,
        width: NSUInteger,
        height: NSUInteger,
        depth: NSUInteger,
    ) -> MTLRegion {
        todo!()
    }
);

extern_struct!(
    #[encoding_name("?")]
    pub struct MTLSamplePosition {
        pub x: c_float,
        pub y: c_float,
    }
);

inline_fn!(
    pub unsafe fn MTLSamplePositionMake(x: c_float, y: c_float) -> MTLSamplePosition {
        todo!()
    }
);

pub type MTLCoordinate2D = MTLSamplePosition;

inline_fn!(
    pub unsafe fn MTLCoordinate2DMake(x: c_float, y: c_float) -> MTLCoordinate2D {
        todo!()
    }
);

extern_struct!(
    pub struct MTLResourceID {
        _impl: u64,
    }
);