use super::connection::Connection;
use crate::platform::macos::system::device::{Adapter as SystemAdapter, Device as SystemDevice};
use crate::GLApi;
pub use crate::platform::macos::system::device::NativeDevice;
#[derive(Clone, Debug)]
pub struct Adapter(pub(crate) SystemAdapter);
#[derive(Clone)]
pub struct Device(pub(crate) SystemDevice);
impl Device {
#[inline]
pub fn native_device(&self) -> NativeDevice {
self.0.native_device()
}
#[inline]
pub fn connection(&self) -> Connection {
Connection(self.0.connection())
}
#[inline]
pub fn adapter(&self) -> Adapter {
Adapter(self.0.adapter())
}
#[inline]
pub fn gl_api(&self) -> GLApi {
GLApi::GL
}
}