objc2_app_kit/generated/
NSOpenGL.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglglobaloption?language=objc)
9#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
10#[repr(transparent)]
11#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
12pub struct NSOpenGLGlobalOption(pub u32);
13impl NSOpenGLGlobalOption {
14    #[doc(alias = "NSOpenGLGOFormatCacheSize")]
15    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
16    pub const GLGOFormatCacheSize: Self = Self(501);
17    #[doc(alias = "NSOpenGLGOClearFormatCache")]
18    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
19    pub const GLGOClearFormatCache: Self = Self(502);
20    #[doc(alias = "NSOpenGLGORetainRenderers")]
21    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
22    pub const GLGORetainRenderers: Self = Self(503);
23    #[doc(alias = "NSOpenGLGOUseBuildCache")]
24    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
25    pub const GLGOUseBuildCache: Self = Self(506);
26    #[doc(alias = "NSOpenGLGOResetLibrary")]
27    #[deprecated]
28    pub const GLGOResetLibrary: Self = Self(504);
29}
30
31unsafe impl Encode for NSOpenGLGlobalOption {
32    const ENCODING: Encoding = u32::ENCODING;
33}
34
35unsafe impl RefEncode for NSOpenGLGlobalOption {
36    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
37}
38
39/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfaallrenderers?language=objc)
40#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
41pub const NSOpenGLPFAAllRenderers: c_uint = 1;
42/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfatriplebuffer?language=objc)
43#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
44pub const NSOpenGLPFATripleBuffer: c_uint = 3;
45/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfadoublebuffer?language=objc)
46#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
47pub const NSOpenGLPFADoubleBuffer: c_uint = 5;
48/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfaauxbuffers?language=objc)
49#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
50pub const NSOpenGLPFAAuxBuffers: c_uint = 7;
51/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfacolorsize?language=objc)
52#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
53pub const NSOpenGLPFAColorSize: c_uint = 8;
54/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfaalphasize?language=objc)
55#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
56pub const NSOpenGLPFAAlphaSize: c_uint = 11;
57/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfadepthsize?language=objc)
58#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
59pub const NSOpenGLPFADepthSize: c_uint = 12;
60/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfastencilsize?language=objc)
61#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
62pub const NSOpenGLPFAStencilSize: c_uint = 13;
63/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfaaccumsize?language=objc)
64#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
65pub const NSOpenGLPFAAccumSize: c_uint = 14;
66/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfaminimumpolicy?language=objc)
67#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
68pub const NSOpenGLPFAMinimumPolicy: c_uint = 51;
69/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfamaximumpolicy?language=objc)
70#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
71pub const NSOpenGLPFAMaximumPolicy: c_uint = 52;
72/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfasamplebuffers?language=objc)
73#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
74pub const NSOpenGLPFASampleBuffers: c_uint = 55;
75/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfasamples?language=objc)
76#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
77pub const NSOpenGLPFASamples: c_uint = 56;
78/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfaauxdepthstencil?language=objc)
79#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
80pub const NSOpenGLPFAAuxDepthStencil: c_uint = 57;
81/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfacolorfloat?language=objc)
82#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
83pub const NSOpenGLPFAColorFloat: c_uint = 58;
84/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfamultisample?language=objc)
85#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
86pub const NSOpenGLPFAMultisample: c_uint = 59;
87/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfasupersample?language=objc)
88#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
89pub const NSOpenGLPFASupersample: c_uint = 60;
90/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfasamplealpha?language=objc)
91#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
92pub const NSOpenGLPFASampleAlpha: c_uint = 61;
93/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfarendererid?language=objc)
94#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
95pub const NSOpenGLPFARendererID: c_uint = 70;
96/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfanorecovery?language=objc)
97#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
98pub const NSOpenGLPFANoRecovery: c_uint = 72;
99/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfaaccelerated?language=objc)
100#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
101pub const NSOpenGLPFAAccelerated: c_uint = 73;
102/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfaclosestpolicy?language=objc)
103#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
104pub const NSOpenGLPFAClosestPolicy: c_uint = 74;
105/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfabackingstore?language=objc)
106#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
107pub const NSOpenGLPFABackingStore: c_uint = 76;
108/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfascreenmask?language=objc)
109#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
110pub const NSOpenGLPFAScreenMask: c_uint = 84;
111/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfaallowofflinerenderers?language=objc)
112#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
113pub const NSOpenGLPFAAllowOfflineRenderers: c_uint = 96;
114/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfaacceleratedcompute?language=objc)
115#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
116pub const NSOpenGLPFAAcceleratedCompute: c_uint = 97;
117/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfaopenglprofile?language=objc)
118#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
119pub const NSOpenGLPFAOpenGLProfile: c_uint = 99;
120/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfavirtualscreencount?language=objc)
121#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
122pub const NSOpenGLPFAVirtualScreenCount: c_uint = 128;
123/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfastereo?language=objc)
124#[deprecated]
125pub const NSOpenGLPFAStereo: c_uint = 6;
126/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfaoffscreen?language=objc)
127#[deprecated]
128pub const NSOpenGLPFAOffScreen: c_uint = 53;
129/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfafullscreen?language=objc)
130#[deprecated]
131pub const NSOpenGLPFAFullScreen: c_uint = 54;
132/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfasinglerenderer?language=objc)
133#[deprecated]
134pub const NSOpenGLPFASingleRenderer: c_uint = 71;
135/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfarobust?language=objc)
136#[deprecated]
137pub const NSOpenGLPFARobust: c_uint = 75;
138/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfampsafe?language=objc)
139#[deprecated]
140pub const NSOpenGLPFAMPSafe: c_uint = 78;
141/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfawindow?language=objc)
142#[deprecated]
143pub const NSOpenGLPFAWindow: c_uint = 80;
144/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfamultiscreen?language=objc)
145#[deprecated]
146pub const NSOpenGLPFAMultiScreen: c_uint = 81;
147/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfacompliant?language=objc)
148#[deprecated]
149pub const NSOpenGLPFACompliant: c_uint = 83;
150/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfapixelbuffer?language=objc)
151#[deprecated]
152pub const NSOpenGLPFAPixelBuffer: c_uint = 90;
153/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpfaremotepixelbuffer?language=objc)
154#[deprecated]
155pub const NSOpenGLPFARemotePixelBuffer: c_uint = 91;
156
157/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglpixelformatattribute?language=objc)
158pub type NSOpenGLPixelFormatAttribute = u32;
159
160/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglprofileversionlegacy?language=objc)
161#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
162pub const NSOpenGLProfileVersionLegacy: c_uint = 0x1000;
163/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglprofileversion3_2core?language=objc)
164#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
165pub const NSOpenGLProfileVersion3_2Core: c_uint = 0x3200;
166/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglprofileversion4_1core?language=objc)
167#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
168pub const NSOpenGLProfileVersion4_1Core: c_uint = 0x4100;
169
170/// ***************
171/// * NSOpenGLContext
172/// ***************
173///
174/// See also [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcontextparameter?language=objc)
175// NS_ENUM
176#[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
177#[repr(transparent)]
178#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
179pub struct NSOpenGLContextParameter(pub NSInteger);
180impl NSOpenGLContextParameter {
181    #[doc(alias = "NSOpenGLContextParameterSwapInterval")]
182    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
183    pub const SwapInterval: Self = Self(222);
184    #[doc(alias = "NSOpenGLContextParameterSurfaceOrder")]
185    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
186    pub const SurfaceOrder: Self = Self(235);
187    #[doc(alias = "NSOpenGLContextParameterSurfaceOpacity")]
188    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
189    pub const SurfaceOpacity: Self = Self(236);
190    #[doc(alias = "NSOpenGLContextParameterSurfaceBackingSize")]
191    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
192    pub const SurfaceBackingSize: Self = Self(304);
193    #[doc(alias = "NSOpenGLContextParameterReclaimResources")]
194    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
195    pub const ReclaimResources: Self = Self(308);
196    #[doc(alias = "NSOpenGLContextParameterCurrentRendererID")]
197    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
198    pub const CurrentRendererID: Self = Self(309);
199    #[doc(alias = "NSOpenGLContextParameterGPUVertexProcessing")]
200    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
201    pub const GPUVertexProcessing: Self = Self(310);
202    #[doc(alias = "NSOpenGLContextParameterGPUFragmentProcessing")]
203    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
204    pub const GPUFragmentProcessing: Self = Self(311);
205    #[doc(alias = "NSOpenGLContextParameterHasDrawable")]
206    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
207    pub const HasDrawable: Self = Self(314);
208    #[doc(alias = "NSOpenGLContextParameterMPSwapsInFlight")]
209    #[deprecated = "OpenGL API deprecated; please use Metal and MetalKit.  (Define GL_SILENCE_DEPRECATION to silence these warnings.)"]
210    pub const MPSwapsInFlight: Self = Self(315);
211    #[doc(alias = "NSOpenGLContextParameterSwapRectangle")]
212    #[deprecated]
213    pub const SwapRectangle: Self = Self(200);
214    #[doc(alias = "NSOpenGLContextParameterSwapRectangleEnable")]
215    #[deprecated]
216    pub const SwapRectangleEnable: Self = Self(201);
217    #[doc(alias = "NSOpenGLContextParameterRasterizationEnable")]
218    #[deprecated]
219    pub const RasterizationEnable: Self = Self(221);
220    #[doc(alias = "NSOpenGLContextParameterStateValidation")]
221    #[deprecated]
222    pub const StateValidation: Self = Self(301);
223    #[doc(alias = "NSOpenGLContextParameterSurfaceSurfaceVolatile")]
224    #[deprecated]
225    pub const SurfaceSurfaceVolatile: Self = Self(306);
226}
227
228unsafe impl Encode for NSOpenGLContextParameter {
229    const ENCODING: Encoding = NSInteger::ENCODING;
230}
231
232unsafe impl RefEncode for NSOpenGLContextParameter {
233    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
234}
235
236/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcpswapinterval?language=objc)
237pub static NSOpenGLCPSwapInterval: NSOpenGLContextParameter =
238    NSOpenGLContextParameter(NSOpenGLContextParameter::SwapInterval.0);
239
240/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcpsurfaceorder?language=objc)
241pub static NSOpenGLCPSurfaceOrder: NSOpenGLContextParameter =
242    NSOpenGLContextParameter(NSOpenGLContextParameter::SurfaceOrder.0);
243
244/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcpsurfaceopacity?language=objc)
245pub static NSOpenGLCPSurfaceOpacity: NSOpenGLContextParameter =
246    NSOpenGLContextParameter(NSOpenGLContextParameter::SurfaceOpacity.0);
247
248/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcpsurfacebackingsize?language=objc)
249pub static NSOpenGLCPSurfaceBackingSize: NSOpenGLContextParameter =
250    NSOpenGLContextParameter(NSOpenGLContextParameter::SurfaceBackingSize.0);
251
252/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcpreclaimresources?language=objc)
253pub static NSOpenGLCPReclaimResources: NSOpenGLContextParameter =
254    NSOpenGLContextParameter(NSOpenGLContextParameter::ReclaimResources.0);
255
256/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcpcurrentrendererid?language=objc)
257pub static NSOpenGLCPCurrentRendererID: NSOpenGLContextParameter =
258    NSOpenGLContextParameter(NSOpenGLContextParameter::CurrentRendererID.0);
259
260/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcpgpuvertexprocessing?language=objc)
261pub static NSOpenGLCPGPUVertexProcessing: NSOpenGLContextParameter =
262    NSOpenGLContextParameter(NSOpenGLContextParameter::GPUVertexProcessing.0);
263
264/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcpgpufragmentprocessing?language=objc)
265pub static NSOpenGLCPGPUFragmentProcessing: NSOpenGLContextParameter =
266    NSOpenGLContextParameter(NSOpenGLContextParameter::GPUFragmentProcessing.0);
267
268/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcphasdrawable?language=objc)
269pub static NSOpenGLCPHasDrawable: NSOpenGLContextParameter =
270    NSOpenGLContextParameter(NSOpenGLContextParameter::HasDrawable.0);
271
272/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcpmpswapsinflight?language=objc)
273pub static NSOpenGLCPMPSwapsInFlight: NSOpenGLContextParameter =
274    NSOpenGLContextParameter(NSOpenGLContextParameter::MPSwapsInFlight.0);
275
276/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcpswaprectangle?language=objc)
277pub static NSOpenGLCPSwapRectangle: NSOpenGLContextParameter =
278    NSOpenGLContextParameter(NSOpenGLContextParameter::SwapRectangle.0);
279
280/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcpswaprectangleenable?language=objc)
281pub static NSOpenGLCPSwapRectangleEnable: NSOpenGLContextParameter =
282    NSOpenGLContextParameter(NSOpenGLContextParameter::SwapRectangleEnable.0);
283
284/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcprasterizationenable?language=objc)
285pub static NSOpenGLCPRasterizationEnable: NSOpenGLContextParameter =
286    NSOpenGLContextParameter(NSOpenGLContextParameter::RasterizationEnable.0);
287
288/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcpstatevalidation?language=objc)
289pub static NSOpenGLCPStateValidation: NSOpenGLContextParameter =
290    NSOpenGLContextParameter(NSOpenGLContextParameter::StateValidation.0);
291
292/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsopenglcpsurfacesurfacevolatile?language=objc)
293pub static NSOpenGLCPSurfaceSurfaceVolatile: NSOpenGLContextParameter =
294    NSOpenGLContextParameter(NSOpenGLContextParameter::SurfaceSurfaceVolatile.0);