objc2_open_gl/generated/
CGLDevice.rs1use core::cell::UnsafeCell;
4use core::marker::{PhantomData, PhantomPinned};
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9#[repr(C)]
11#[derive(Debug)]
12pub struct CGLShareGroupRec {
13 inner: [u8; 0],
14 _p: UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>,
15}
16
17unsafe impl RefEncode for CGLShareGroupRec {
18 const ENCODING_REF: Encoding = Encoding::Pointer(&Encoding::Struct("CGLShareGroupRec", &[]));
19}
20
21pub type CGLShareGroupObj = *mut CGLShareGroupRec;
23
24extern "C-unwind" {
25 #[cfg(feature = "CGLTypes")]
29 pub fn CGLGetShareGroup(ctx: CGLContextObj) -> CGLShareGroupObj;
30}
31
32#[repr(C)]
34#[derive(Debug)]
35pub struct _cl_device_id {
36 inner: [u8; 0],
37 _p: UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>,
38}
39
40unsafe impl RefEncode for _cl_device_id {
41 const ENCODING_REF: Encoding = Encoding::Pointer(&Encoding::Struct("_cl_device_id", &[]));
42}
43
44pub type cl_device_id = *mut _cl_device_id;
46
47extern "C-unwind" {
48 pub fn CGLGetDeviceFromGLRenderer(renderer_id: GLint) -> cl_device_id;
49}