objc2_open_gl/generated/
CGLDevice.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::cell::UnsafeCell;
4use core::marker::{PhantomData, PhantomPinned};
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9/// [Apple's documentation](https://developer.apple.com/documentation/opengl/cglsharegrouprec?language=objc)
10#[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
21/// [Apple's documentation](https://developer.apple.com/documentation/opengl/cglsharegroupobj?language=objc)
22pub type CGLShareGroupObj = *mut CGLShareGroupRec;
23
24extern "C-unwind" {
25    /// # Safety
26    ///
27    /// `ctx` must be a valid pointer.
28    #[cfg(feature = "CGLTypes")]
29    pub fn CGLGetShareGroup(ctx: CGLContextObj) -> CGLShareGroupObj;
30}
31
32/// [Apple's documentation](https://developer.apple.com/documentation/opengl/_cl_device_id?language=objc)
33#[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
44/// [Apple's documentation](https://developer.apple.com/documentation/opengl/cl_device_id?language=objc)
45pub type cl_device_id = *mut _cl_device_id;
46
47extern "C-unwind" {
48    pub fn CGLGetDeviceFromGLRenderer(renderer_id: GLint) -> cl_device_id;
49}