Skip to main content

vitagl_sys/
bindgen.rs

1/* automatically generated by rust-bindgen 0.72.1 */
2
3#[repr(C)]
4#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
5pub struct __BindgenBitfieldUnit<Storage> {
6    storage: Storage,
7}
8impl<Storage> __BindgenBitfieldUnit<Storage> {
9    #[inline]
10    pub const fn new(storage: Storage) -> Self {
11        Self { storage }
12    }
13}
14impl<Storage> __BindgenBitfieldUnit<Storage>
15where
16    Storage: AsRef<[u8]> + AsMut<[u8]>,
17{
18    #[inline]
19    fn extract_bit(byte: u8, index: usize) -> bool {
20        let bit_index = if cfg!(target_endian = "big") {
21            7 - (index % 8)
22        } else {
23            index % 8
24        };
25        let mask = 1 << bit_index;
26        byte & mask == mask
27    }
28    #[inline]
29    pub fn get_bit(&self, index: usize) -> bool {
30        debug_assert!(index / 8 < self.storage.as_ref().len());
31        let byte_index = index / 8;
32        let byte = self.storage.as_ref()[byte_index];
33        Self::extract_bit(byte, index)
34    }
35    #[inline]
36    pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
37        debug_assert!(index / 8 < core::mem::size_of::<Storage>());
38        let byte_index = index / 8;
39        let byte = unsafe {
40            *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize)
41        };
42        Self::extract_bit(byte, index)
43    }
44    #[inline]
45    fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
46        let bit_index = if cfg!(target_endian = "big") {
47            7 - (index % 8)
48        } else {
49            index % 8
50        };
51        let mask = 1 << bit_index;
52        if val { byte | mask } else { byte & !mask }
53    }
54    #[inline]
55    pub fn set_bit(&mut self, index: usize, val: bool) {
56        debug_assert!(index / 8 < self.storage.as_ref().len());
57        let byte_index = index / 8;
58        let byte = &mut self.storage.as_mut()[byte_index];
59        *byte = Self::change_bit(*byte, index, val);
60    }
61    #[inline]
62    pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
63        debug_assert!(index / 8 < core::mem::size_of::<Storage>());
64        let byte_index = index / 8;
65        let byte = unsafe {
66            (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize)
67        };
68        unsafe { *byte = Self::change_bit(*byte, index, val) };
69    }
70    #[inline]
71    pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
72        debug_assert!(bit_width <= 64);
73        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
74        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
75        let mut val = 0;
76        for i in 0..(bit_width as usize) {
77            if self.get_bit(i + bit_offset) {
78                let index = if cfg!(target_endian = "big") {
79                    bit_width as usize - 1 - i
80                } else {
81                    i
82                };
83                val |= 1 << index;
84            }
85        }
86        val
87    }
88    #[inline]
89    pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
90        debug_assert!(bit_width <= 64);
91        debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
92        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
93        let mut val = 0;
94        for i in 0..(bit_width as usize) {
95            if unsafe { Self::raw_get_bit(this, i + bit_offset) } {
96                let index = if cfg!(target_endian = "big") {
97                    bit_width as usize - 1 - i
98                } else {
99                    i
100                };
101                val |= 1 << index;
102            }
103        }
104        val
105    }
106    #[inline]
107    pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
108        debug_assert!(bit_width <= 64);
109        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
110        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
111        for i in 0..(bit_width as usize) {
112            let mask = 1 << i;
113            let val_bit_is_set = val & mask == mask;
114            let index = if cfg!(target_endian = "big") {
115                bit_width as usize - 1 - i
116            } else {
117                i
118            };
119            self.set_bit(index + bit_offset, val_bit_is_set);
120        }
121    }
122    #[inline]
123    pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
124        debug_assert!(bit_width <= 64);
125        debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
126        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
127        for i in 0..(bit_width as usize) {
128            let mask = 1 << i;
129            let val_bit_is_set = val & mask == mask;
130            let index = if cfg!(target_endian = "big") {
131                bit_width as usize - 1 - i
132            } else {
133                i
134            };
135            unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) };
136        }
137    }
138}
139pub const _NEWLIB_VERSION_H__: u32 = 1;
140pub const _NEWLIB_VERSION: &[u8; 6] = b"4.1.0\0";
141pub const __NEWLIB__: u32 = 4;
142pub const __NEWLIB_MINOR__: u32 = 1;
143pub const __NEWLIB_PATCHLEVEL__: u32 = 0;
144pub const _DEFAULT_SOURCE: u32 = 1;
145pub const _POSIX_SOURCE: u32 = 1;
146pub const _POSIX_C_SOURCE: u32 = 200809;
147pub const _ATFILE_SOURCE: u32 = 1;
148pub const __ATFILE_VISIBLE: u32 = 1;
149pub const __BSD_VISIBLE: u32 = 1;
150pub const __GNU_VISIBLE: u32 = 0;
151pub const __ISO_C_VISIBLE: u32 = 2011;
152pub const __LARGEFILE_VISIBLE: u32 = 0;
153pub const __MISC_VISIBLE: u32 = 1;
154pub const __POSIX_VISIBLE: u32 = 200809;
155pub const __SVID_VISIBLE: u32 = 1;
156pub const __XSI_VISIBLE: u32 = 0;
157pub const __SSP_FORTIFY_LEVEL: u32 = 0;
158pub const _POSIX_OPT_H: u32 = 1;
159pub const _LIBC_LIMITS_H_: u32 = 1;
160pub const __NEWLIB_H__: u32 = 1;
161pub const _WANT_IO_LONG_LONG: u32 = 1;
162pub const _WANT_REGISTER_FINI: u32 = 1;
163pub const _REENT_CHECK_VERIFY: u32 = 1;
164pub const _MB_LEN_MAX: u32 = 1;
165pub const _ICONV_ENABLED: u32 = 1;
166pub const HAVE_INITFINI_ARRAY: u32 = 1;
167pub const _ATEXIT_DYNAMIC_ALLOC: u32 = 1;
168pub const _HAVE_LONG_DOUBLE: u32 = 1;
169pub const _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL: u32 = 1;
170pub const _LDBL_EQ_DBL: u32 = 1;
171pub const _FVWRITE_IN_STREAMIO: u32 = 1;
172pub const _FSEEK_OPTIMIZATION: u32 = 1;
173pub const _WIDE_ORIENT: u32 = 1;
174pub const _UNBUF_STREAM_OPT: u32 = 1;
175pub const _WANT_USE_LONG_TIME_T: u32 = 1;
176pub const __GNUCLIKE_ASM: u32 = 3;
177pub const __GNUCLIKE___TYPEOF: u32 = 1;
178pub const __GNUCLIKE___OFFSETOF: u32 = 1;
179pub const __GNUCLIKE___SECTION: u32 = 1;
180pub const __GNUCLIKE_CTOR_SECTION_HANDLING: u32 = 1;
181pub const __GNUCLIKE_BUILTIN_CONSTANT_P: u32 = 1;
182pub const __GNUCLIKE_BUILTIN_VARARGS: u32 = 1;
183pub const __GNUCLIKE_BUILTIN_STDARG: u32 = 1;
184pub const __GNUCLIKE_BUILTIN_VAALIST: u32 = 1;
185pub const __GNUC_VA_LIST_COMPATIBILITY: u32 = 1;
186pub const __GNUCLIKE_BUILTIN_NEXT_ARG: u32 = 1;
187pub const __GNUCLIKE_BUILTIN_MEMCPY: u32 = 1;
188pub const __CC_SUPPORTS_INLINE: u32 = 1;
189pub const __CC_SUPPORTS___INLINE: u32 = 1;
190pub const __CC_SUPPORTS___INLINE__: u32 = 1;
191pub const __CC_SUPPORTS___FUNC__: u32 = 1;
192pub const __CC_SUPPORTS_WARNING: u32 = 1;
193pub const __CC_SUPPORTS_VARADIC_XXX: u32 = 1;
194pub const __CC_SUPPORTS_DYNAMIC_ARRAY_INIT: u32 = 1;
195pub const ARG_MAX: u32 = 65536;
196pub const CHILD_MAX: u32 = 40;
197pub const LINK_MAX: u32 = 32767;
198pub const MAX_CANON: u32 = 255;
199pub const MAX_INPUT: u32 = 255;
200pub const NAME_MAX: u32 = 255;
201pub const NGROUPS_MAX: u32 = 16;
202pub const OPEN_MAX: u32 = 64;
203pub const PATH_MAX: u32 = 1024;
204pub const PIPE_BUF: u32 = 512;
205pub const IOV_MAX: u32 = 1024;
206pub const BC_BASE_MAX: u32 = 99;
207pub const BC_DIM_MAX: u32 = 2048;
208pub const BC_SCALE_MAX: u32 = 99;
209pub const BC_STRING_MAX: u32 = 1000;
210pub const COLL_WEIGHTS_MAX: u32 = 0;
211pub const EXPR_NEST_MAX: u32 = 32;
212pub const LINE_MAX: u32 = 2048;
213pub const RE_DUP_MAX: u32 = 255;
214pub const MB_LEN_MAX: u32 = 1;
215pub const NL_ARGMAX: u32 = 32;
216pub const CHAR_MIN: u32 = 0;
217pub const _POSIX2_RE_DUP_MAX: u32 = 255;
218pub const _POSIX_THREADS: u32 = 200112;
219pub const _POSIX_READER_WRITER_LOCKS: u32 = 200112;
220pub const _POSIX_SPIN_LOCKS: u32 = 200112;
221pub const _POSIX_BARRIERS: u32 = 200112;
222pub const _POSIX_THREAD_SAFE_FUNCTIONS: u32 = 200112;
223pub const _POSIX_THREAD_ATTR_STACKSIZE: u32 = 200112;
224pub const _POSIX_THREAD_ATTR_STACKADDR: i32 = -1;
225pub const _POSIX_THREAD_PRIO_INHERIT: i32 = -1;
226pub const _POSIX_THREAD_PRIO_PROTECT: i32 = -1;
227pub const _POSIX_THREAD_PROCESS_SHARED: i32 = -1;
228pub const _POSIX_PRIORITY_SCHEDULING: u32 = 1;
229pub const _POSIX_TIMEOUTS: u32 = 1;
230pub const _UNIX98_THREAD_MUTEX_ATTRIBUTES: u32 = 1;
231pub const _POSIX_MONOTONIC_CLOCK: u32 = 200112;
232pub const _POSIX_TIMERS: u32 = 1;
233pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
234pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
235pub const _POSIX_THREAD_KEYS_MAX: u32 = 128;
236pub const PTHREAD_KEYS_MAX: u32 = 128;
237pub const PTHREAD_STACK_MIN: u32 = 32768;
238pub const _POSIX_THREAD_THREADS_MAX: u32 = 64;
239pub const PTHREAD_THREADS_MAX: u32 = 64;
240pub const _POSIX_SEM_NSEMS_MAX: u32 = 256;
241pub const SEM_NSEMS_MAX: u32 = 256;
242pub const _POSIX_SEM_VALUE_MAX: u32 = 32767;
243pub const SEM_VALUE_MAX: u32 = 32767;
244pub const INCLUDE_NP: u32 = 1;
245pub const __have_longlong64: u32 = 1;
246pub const __have_long32: u32 = 1;
247pub const ___int8_t_defined: u32 = 1;
248pub const ___int16_t_defined: u32 = 1;
249pub const ___int32_t_defined: u32 = 1;
250pub const ___int64_t_defined: u32 = 1;
251pub const ___int_least8_t_defined: u32 = 1;
252pub const ___int_least16_t_defined: u32 = 1;
253pub const ___int_least32_t_defined: u32 = 1;
254pub const ___int_least64_t_defined: u32 = 1;
255pub const __int20: u32 = 2;
256pub const __int20__: u32 = 2;
257pub const __INT8: &[u8; 3] = b"hh\0";
258pub const __INT16: &[u8; 2] = b"h\0";
259pub const __INT64: &[u8; 3] = b"ll\0";
260pub const __FAST8: &[u8; 3] = b"hh\0";
261pub const __FAST16: &[u8; 2] = b"h\0";
262pub const __FAST64: &[u8; 3] = b"ll\0";
263pub const __LEAST8: &[u8; 3] = b"hh\0";
264pub const __LEAST16: &[u8; 2] = b"h\0";
265pub const __LEAST64: &[u8; 3] = b"ll\0";
266pub const __int8_t_defined: u32 = 1;
267pub const __int16_t_defined: u32 = 1;
268pub const __int32_t_defined: u32 = 1;
269pub const __int64_t_defined: u32 = 1;
270pub const __int_least8_t_defined: u32 = 1;
271pub const __int_least16_t_defined: u32 = 1;
272pub const __int_least32_t_defined: u32 = 1;
273pub const __int_least64_t_defined: u32 = 1;
274pub const __int_fast8_t_defined: u32 = 1;
275pub const __int_fast16_t_defined: u32 = 1;
276pub const __int_fast32_t_defined: u32 = 1;
277pub const __int_fast64_t_defined: u32 = 1;
278pub const WINT_MIN: u32 = 0;
279pub const SCE_KERNEL_THREAD_ID_SELF: u32 = 0;
280pub const SCE_KERNEL_PROCESS_ID_SELF: u32 = 0;
281pub const SCE_UID_NAMELEN: u32 = 31;
282pub const SCE_OK: u32 = 0;
283pub const SCE_KERNEL_1KiB: u32 = 1024;
284pub const SCE_KERNEL_2KiB: u32 = 2048;
285pub const SCE_KERNEL_4KiB: u32 = 4096;
286pub const SCE_KERNEL_8KiB: u32 = 8192;
287pub const SCE_KERNEL_16KiB: u32 = 16384;
288pub const SCE_KERNEL_32KiB: u32 = 32768;
289pub const SCE_KERNEL_64KiB: u32 = 65536;
290pub const SCE_KERNEL_128KiB: u32 = 131072;
291pub const SCE_KERNEL_256KiB: u32 = 262144;
292pub const SCE_KERNEL_512KiB: u32 = 524288;
293pub const SCE_KERNEL_1MiB: u32 = 1048576;
294pub const SCE_KERNEL_2MiB: u32 = 2097152;
295pub const SCE_KERNEL_4MiB: u32 = 4194304;
296pub const SCE_KERNEL_8MiB: u32 = 8388608;
297pub const SCE_KERNEL_16MiB: u32 = 16777216;
298pub const SCE_KERNEL_32MiB: u32 = 33554432;
299pub const SCE_KERNEL_64MiB: u32 = 67108864;
300pub const SCE_KERNEL_128MiB: u32 = 134217728;
301pub const SCE_KERNEL_256MiB: u32 = 268435456;
302pub const SCE_KERNEL_512MiB: u32 = 536870912;
303pub const SCE_KERNEL_1GiB: u32 = 1073741824;
304pub const SCE_KERNEL_2GiB: u32 = 2147483648;
305pub const SCE_KERNEL_4GiB: u64 = 4294967296;
306pub const SCE_KERNEL_8GiB: u64 = 8589934592;
307pub const SCE_KERNEL_16GiB: u64 = 17179869184;
308pub const SCE_KERNEL_32GiB: u64 = 34359738368;
309pub const SCE_GXM_MINIMUM_CONTEXT_HOST_MEM_SIZE: u32 = 2048;
310pub const SCE_GXM_DEFAULT_PARAMETER_BUFFER_SIZE: u32 = 16777216;
311pub const SCE_GXM_DEFAULT_VDM_RING_BUFFER_SIZE: u32 = 131072;
312pub const SCE_GXM_DEFAULT_VERTEX_RING_BUFFER_SIZE: u32 = 2097152;
313pub const SCE_GXM_DEFAULT_FRAGMENT_RING_BUFFER_SIZE: u32 = 524288;
314pub const SCE_GXM_DEFAULT_FRAGMENT_USSE_RING_BUFFER_SIZE: u32 = 16384;
315pub const SCE_GXM_MAX_VERTEX_ATTRIBUTES: u32 = 16;
316pub const SCE_GXM_MAX_VERTEX_STREAMS: u32 = 16;
317pub const SCE_GXM_MAX_TEXTURE_UNITS: u32 = 16;
318pub const SCE_GXM_MAX_UNIFORM_BUFFERS: u32 = 14;
319pub const SCE_GXM_TILE_SHIFTX: u32 = 5;
320pub const SCE_GXM_TILE_SHIFTY: u32 = 5;
321pub const SCE_GXM_TILE_SIZEX: u32 = 32;
322pub const SCE_GXM_TILE_SIZEY: u32 = 32;
323pub const SCE_GXM_COLOR_SURFACE_ALIGNMENT: u32 = 4;
324pub const SCE_GXM_TEXTURE_ALIGNMENT: u32 = 16;
325pub const SCE_GXM_DEPTHSTENCIL_SURFACE_ALIGNMENT: u32 = 16;
326pub const SCE_GXM_PALETTE_ALIGNMENT: u32 = 64;
327pub const SHARK_DISABLE: u32 = 0;
328pub const SHARK_ENABLE: u32 = 1;
329pub const GL_FALSE: u32 = 0;
330pub const GL_TRUE: u32 = 1;
331pub const EGL_FALSE: u32 = 0;
332pub const EGL_TRUE: u32 = 1;
333pub const GL_NO_ERROR: u32 = 0;
334pub const GL_ZERO: u32 = 0;
335pub const GL_ONE: u32 = 1;
336pub const GL_NONE: u32 = 0;
337pub const GL_INVALID_INDEX: u32 = 4294967295;
338pub const GL_POINTS: u32 = 0;
339pub const GL_LINES: u32 = 1;
340pub const GL_LINE_LOOP: u32 = 2;
341pub const GL_LINE_STRIP: u32 = 3;
342pub const GL_TRIANGLES: u32 = 4;
343pub const GL_TRIANGLE_STRIP: u32 = 5;
344pub const GL_TRIANGLE_FAN: u32 = 6;
345pub const GL_QUADS: u32 = 7;
346pub const GL_QUAD_STRIP: u32 = 8;
347pub const GL_POLYGON: u32 = 9;
348pub const GL_ADD: u32 = 260;
349pub const GL_NEVER: u32 = 512;
350pub const GL_LESS: u32 = 513;
351pub const GL_EQUAL: u32 = 514;
352pub const GL_LEQUAL: u32 = 515;
353pub const GL_GREATER: u32 = 516;
354pub const GL_NOTEQUAL: u32 = 517;
355pub const GL_GEQUAL: u32 = 518;
356pub const GL_ALWAYS: u32 = 519;
357pub const GL_SRC_COLOR: u32 = 768;
358pub const GL_ONE_MINUS_SRC_COLOR: u32 = 769;
359pub const GL_SRC_ALPHA: u32 = 770;
360pub const GL_ONE_MINUS_SRC_ALPHA: u32 = 771;
361pub const GL_DST_ALPHA: u32 = 772;
362pub const GL_ONE_MINUS_DST_ALPHA: u32 = 773;
363pub const GL_DST_COLOR: u32 = 774;
364pub const GL_ONE_MINUS_DST_COLOR: u32 = 775;
365pub const GL_SRC_ALPHA_SATURATE: u32 = 776;
366pub const GL_FRONT: u32 = 1028;
367pub const GL_BACK: u32 = 1029;
368pub const GL_FRONT_AND_BACK: u32 = 1032;
369pub const GL_INVALID_ENUM: u32 = 1280;
370pub const GL_INVALID_VALUE: u32 = 1281;
371pub const GL_INVALID_OPERATION: u32 = 1282;
372pub const GL_STACK_OVERFLOW: u32 = 1283;
373pub const GL_STACK_UNDERFLOW: u32 = 1284;
374pub const GL_OUT_OF_MEMORY: u32 = 1285;
375pub const GL_EXP: u32 = 2048;
376pub const GL_EXP2: u32 = 2049;
377pub const GL_CW: u32 = 2304;
378pub const GL_CCW: u32 = 2305;
379pub const GL_CURRENT_COLOR: u32 = 2816;
380pub const GL_POLYGON_MODE: u32 = 2880;
381pub const GL_CULL_FACE: u32 = 2884;
382pub const GL_CULL_FACE_MODE: u32 = 2885;
383pub const GL_FRONT_FACE: u32 = 2886;
384pub const GL_LIGHTING: u32 = 2896;
385pub const GL_LIGHT_MODEL_AMBIENT: u32 = 2899;
386pub const GL_SHADE_MODEL: u32 = 2900;
387pub const GL_COLOR_MATERIAL: u32 = 2903;
388pub const GL_FOG: u32 = 2912;
389pub const GL_FOG_DENSITY: u32 = 2914;
390pub const GL_FOG_START: u32 = 2915;
391pub const GL_FOG_END: u32 = 2916;
392pub const GL_FOG_MODE: u32 = 2917;
393pub const GL_FOG_COLOR: u32 = 2918;
394pub const GL_DEPTH_RANGE: u32 = 2928;
395pub const GL_DEPTH_TEST: u32 = 2929;
396pub const GL_DEPTH_WRITEMASK: u32 = 2930;
397pub const GL_DEPTH_CLEAR_VALUE: u32 = 2931;
398pub const GL_DEPTH_FUNC: u32 = 2932;
399pub const GL_STENCIL_TEST: u32 = 2960;
400pub const GL_STENCIL_CLEAR_VALUE: u32 = 2961;
401pub const GL_STENCIL_FUNC: u32 = 2962;
402pub const GL_STENCIL_VALUE_MASK: u32 = 2963;
403pub const GL_STENCIL_FAIL: u32 = 2964;
404pub const GL_STENCIL_PASS_DEPTH_FAIL: u32 = 2965;
405pub const GL_STENCIL_PASS_DEPTH_PASS: u32 = 2966;
406pub const GL_STENCIL_REF: u32 = 2967;
407pub const GL_STENCIL_WRITEMASK: u32 = 2968;
408pub const GL_MATRIX_MODE: u32 = 2976;
409pub const GL_NORMALIZE: u32 = 2977;
410pub const GL_VIEWPORT: u32 = 2978;
411pub const GL_MODELVIEW_MATRIX: u32 = 2982;
412pub const GL_PROJECTION_MATRIX: u32 = 2983;
413pub const GL_TEXTURE_MATRIX: u32 = 2984;
414pub const GL_ALPHA_TEST: u32 = 3008;
415pub const GL_ALPHA_TEST_REF: u32 = 3010;
416pub const GL_BLEND_DST: u32 = 3040;
417pub const GL_BLEND_SRC: u32 = 3041;
418pub const GL_BLEND: u32 = 3042;
419pub const GL_SCISSOR_BOX: u32 = 3088;
420pub const GL_SCISSOR_TEST: u32 = 3089;
421pub const GL_COLOR_CLEAR_VALUE: u32 = 3106;
422pub const GL_COLOR_WRITEMASK: u32 = 3107;
423pub const GL_DOUBLEBUFFER: u32 = 3122;
424pub const GL_PERSPECTIVE_CORRECTION_HINT: u32 = 3152;
425pub const GL_UNPACK_ROW_LENGTH: u32 = 3314;
426pub const GL_UNPACK_ALIGNMENT: u32 = 3317;
427pub const GL_PACK_ALIGNMENT: u32 = 3333;
428pub const GL_ALPHA_SCALE: u32 = 3356;
429pub const GL_MAX_LIGHTS: u32 = 3377;
430pub const GL_MAX_CLIP_PLANES: u32 = 3378;
431pub const GL_MAX_TEXTURE_SIZE: u32 = 3379;
432pub const GL_MAX_MODELVIEW_STACK_DEPTH: u32 = 3382;
433pub const GL_MAX_PROJECTION_STACK_DEPTH: u32 = 3384;
434pub const GL_MAX_TEXTURE_STACK_DEPTH: u32 = 3385;
435pub const GL_MAX_VIEWPORT_DIMS: u32 = 3386;
436pub const GL_RED_BITS: u32 = 3410;
437pub const GL_GREEN_BITS: u32 = 3411;
438pub const GL_BLUE_BITS: u32 = 3412;
439pub const GL_ALPHA_BITS: u32 = 3413;
440pub const GL_DEPTH_BITS: u32 = 3414;
441pub const GL_STENCIL_BITS: u32 = 3415;
442pub const GL_TEXTURE_1D: u32 = 3552;
443pub const GL_TEXTURE_2D: u32 = 3553;
444pub const GL_DONT_CARE: u32 = 4352;
445pub const GL_FASTEST: u32 = 4353;
446pub const GL_NICEST: u32 = 4354;
447pub const GL_AMBIENT: u32 = 4608;
448pub const GL_DIFFUSE: u32 = 4609;
449pub const GL_SPECULAR: u32 = 4610;
450pub const GL_POSITION: u32 = 4611;
451pub const GL_CONSTANT_ATTENUATION: u32 = 4615;
452pub const GL_LINEAR_ATTENUATION: u32 = 4616;
453pub const GL_QUADRATIC_ATTENUATION: u32 = 4617;
454pub const GL_COMPILE: u32 = 4864;
455pub const GL_COMPILE_AND_EXECUTE: u32 = 4865;
456pub const GL_BYTE: u32 = 5120;
457pub const GL_UNSIGNED_BYTE: u32 = 5121;
458pub const GL_SHORT: u32 = 5122;
459pub const GL_UNSIGNED_SHORT: u32 = 5123;
460pub const GL_INT: u32 = 5124;
461pub const GL_UNSIGNED_INT: u32 = 5125;
462pub const GL_FLOAT: u32 = 5126;
463pub const GL_HALF_FLOAT: u32 = 5131;
464pub const GL_FIXED: u32 = 5132;
465pub const GL_INVERT: u32 = 5386;
466pub const GL_EMISSION: u32 = 5632;
467pub const GL_SHININESS: u32 = 5633;
468pub const GL_AMBIENT_AND_DIFFUSE: u32 = 5634;
469pub const GL_MODELVIEW: u32 = 5888;
470pub const GL_PROJECTION: u32 = 5889;
471pub const GL_TEXTURE: u32 = 5890;
472pub const GL_COLOR_INDEX: u32 = 6400;
473pub const GL_DEPTH_COMPONENT: u32 = 6402;
474pub const GL_RED: u32 = 6403;
475pub const GL_GREEN: u32 = 6404;
476pub const GL_BLUE: u32 = 6405;
477pub const GL_ALPHA: u32 = 6406;
478pub const GL_RGB: u32 = 6407;
479pub const GL_RGBA: u32 = 6408;
480pub const GL_LUMINANCE: u32 = 6409;
481pub const GL_LUMINANCE_ALPHA: u32 = 6410;
482pub const GL_POINT: u32 = 6912;
483pub const GL_LINE: u32 = 6913;
484pub const GL_FILL: u32 = 6914;
485pub const GL_FLAT: u32 = 7424;
486pub const GL_SMOOTH: u32 = 7425;
487pub const GL_KEEP: u32 = 7680;
488pub const GL_REPLACE: u32 = 7681;
489pub const GL_INCR: u32 = 7682;
490pub const GL_DECR: u32 = 7683;
491pub const GL_VENDOR: u32 = 7936;
492pub const GL_RENDERER: u32 = 7937;
493pub const GL_VERSION: u32 = 7938;
494pub const GL_EXTENSIONS: u32 = 7939;
495pub const GL_MODULATE: u32 = 8448;
496pub const GL_DECAL: u32 = 8449;
497pub const GL_TEXTURE_ENV_MODE: u32 = 8704;
498pub const GL_TEXTURE_ENV_COLOR: u32 = 8705;
499pub const GL_TEXTURE_ENV: u32 = 8960;
500pub const GL_NEAREST: u32 = 9728;
501pub const GL_LINEAR: u32 = 9729;
502pub const GL_NEAREST_MIPMAP_NEAREST: u32 = 9984;
503pub const GL_LINEAR_MIPMAP_NEAREST: u32 = 9985;
504pub const GL_NEAREST_MIPMAP_LINEAR: u32 = 9986;
505pub const GL_LINEAR_MIPMAP_LINEAR: u32 = 9987;
506pub const GL_TEXTURE_MAG_FILTER: u32 = 10240;
507pub const GL_TEXTURE_MIN_FILTER: u32 = 10241;
508pub const GL_TEXTURE_WRAP_S: u32 = 10242;
509pub const GL_TEXTURE_WRAP_T: u32 = 10243;
510pub const GL_CLAMP: u32 = 10496;
511pub const GL_REPEAT: u32 = 10497;
512pub const GL_POLYGON_OFFSET_UNITS: u32 = 10752;
513pub const GL_POLYGON_OFFSET_POINT: u32 = 10753;
514pub const GL_POLYGON_OFFSET_LINE: u32 = 10754;
515pub const GL_V2F: u32 = 10784;
516pub const GL_V3F: u32 = 10785;
517pub const GL_C4UB_V2F: u32 = 10786;
518pub const GL_C4UB_V3F: u32 = 10787;
519pub const GL_C3F_V3F: u32 = 10788;
520pub const GL_T2F_V3F: u32 = 10791;
521pub const GL_T4F_V4F: u32 = 10792;
522pub const GL_T2F_C4UB_V3F: u32 = 10793;
523pub const GL_T2F_C3F_V3F: u32 = 10794;
524pub const GL_CLIP_PLANE0: u32 = 12288;
525pub const GL_CLIP_PLANE1: u32 = 12289;
526pub const GL_CLIP_PLANE2: u32 = 12290;
527pub const GL_CLIP_PLANE3: u32 = 12291;
528pub const GL_CLIP_PLANE4: u32 = 12292;
529pub const GL_CLIP_PLANE5: u32 = 12293;
530pub const GL_CLIP_PLANE6: u32 = 12294;
531pub const GL_LIGHT0: u32 = 16384;
532pub const GL_LIGHT1: u32 = 16385;
533pub const GL_LIGHT2: u32 = 16386;
534pub const GL_LIGHT3: u32 = 16387;
535pub const GL_LIGHT4: u32 = 16388;
536pub const GL_LIGHT5: u32 = 16389;
537pub const GL_LIGHT6: u32 = 16390;
538pub const GL_LIGHT7: u32 = 16391;
539pub const GL_ABGR_EXT: u32 = 32768;
540pub const GL_FUNC_ADD: u32 = 32774;
541pub const GL_MIN: u32 = 32775;
542pub const GL_MAX: u32 = 32776;
543pub const GL_BLEND_EQUATION: u32 = 32777;
544pub const GL_FUNC_SUBTRACT: u32 = 32778;
545pub const GL_FUNC_REVERSE_SUBTRACT: u32 = 32779;
546pub const GL_UNSIGNED_SHORT_4_4_4_4: u32 = 32819;
547pub const GL_UNSIGNED_SHORT_5_5_5_1: u32 = 32820;
548pub const GL_UNSIGNED_INT_8_8_8_8: u32 = 32821;
549pub const GL_POLYGON_OFFSET_FILL: u32 = 32823;
550pub const GL_POLYGON_OFFSET_FACTOR: u32 = 32824;
551pub const GL_INTENSITY: u32 = 32841;
552pub const GL_RGB8: u32 = 32849;
553pub const GL_RGBA4: u32 = 32854;
554pub const GL_RGB5_A1: u32 = 32855;
555pub const GL_RGBA8: u32 = 32856;
556pub const GL_TEXTURE_BINDING_2D: u32 = 32873;
557pub const GL_VERTEX_ARRAY: u32 = 32884;
558pub const GL_NORMAL_ARRAY: u32 = 32885;
559pub const GL_COLOR_ARRAY: u32 = 32886;
560pub const GL_TEXTURE_COORD_ARRAY: u32 = 32888;
561pub const GL_VERTEX_ARRAY_SIZE: u32 = 32890;
562pub const GL_VERTEX_ARRAY_TYPE: u32 = 32891;
563pub const GL_VERTEX_ARRAY_STRIDE: u32 = 32892;
564pub const GL_NORMAL_ARRAY_TYPE: u32 = 32894;
565pub const GL_NORMAL_ARRAY_STRIDE: u32 = 32895;
566pub const GL_COLOR_ARRAY_SIZE: u32 = 32897;
567pub const GL_COLOR_ARRAY_TYPE: u32 = 32898;
568pub const GL_COLOR_ARRAY_STRIDE: u32 = 32899;
569pub const GL_TEXTURE_COORD_ARRAY_SIZE: u32 = 32904;
570pub const GL_TEXTURE_COORD_ARRAY_TYPE: u32 = 32905;
571pub const GL_TEXTURE_COORD_ARRAY_STRIDE: u32 = 32906;
572pub const GL_VERTEX_ARRAY_POINTER: u32 = 32910;
573pub const GL_NORMAL_ARRAY_POINTER: u32 = 32911;
574pub const GL_COLOR_ARRAY_POINTER: u32 = 32912;
575pub const GL_TEXTURE_COORD_ARRAY_POINTER: u32 = 32914;
576pub const GL_BLEND_DST_RGB: u32 = 32968;
577pub const GL_BLEND_SRC_RGB: u32 = 32969;
578pub const GL_BLEND_DST_ALPHA: u32 = 32970;
579pub const GL_BLEND_SRC_ALPHA: u32 = 32971;
580pub const GL_COLOR_TABLE: u32 = 32976;
581pub const GL_BGR: u32 = 32992;
582pub const GL_BGRA: u32 = 32993;
583pub const GL_COLOR_INDEX8_EXT: u32 = 32997;
584pub const GL_MAX_ELEMENTS_VERTICES: u32 = 33000;
585pub const GL_MAX_ELEMENTS_INDICES: u32 = 33001;
586pub const GL_PHONG_WIN: u32 = 33002;
587pub const GL_CLAMP_TO_EDGE: u32 = 33071;
588pub const GL_DEPTH_COMPONENT16: u32 = 33189;
589pub const GL_DEPTH_COMPONENT24: u32 = 33190;
590pub const GL_DEPTH_COMPONENT32: u32 = 33191;
591pub const GL_DEPTH_STENCIL_ATTACHMENT: u32 = 33306;
592pub const GL_MAJOR_VERSION: u32 = 33307;
593pub const GL_MINOR_VERSION: u32 = 33308;
594pub const GL_NUM_EXTENSIONS: u32 = 33309;
595pub const GL_RG: u32 = 33319;
596pub const GL_R8: u32 = 33321;
597pub const GL_QUERY_TARGET: u32 = 33514;
598pub const GL_UNSIGNED_SHORT_5_6_5: u32 = 33635;
599pub const GL_UNSIGNED_SHORT_1_5_5_5_REV: u32 = 33638;
600pub const GL_UNSIGNED_INT_8_8_8_8_REV: u32 = 33639;
601pub const GL_MIRRORED_REPEAT: u32 = 33648;
602pub const GL_COMPRESSED_RGB_S3TC_DXT1_EXT: u32 = 33776;
603pub const GL_COMPRESSED_RGBA_S3TC_DXT1_EXT: u32 = 33777;
604pub const GL_COMPRESSED_RGBA_S3TC_DXT3_EXT: u32 = 33778;
605pub const GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: u32 = 33779;
606pub const GL_TEXTURE0: u32 = 33984;
607pub const GL_TEXTURE1: u32 = 33985;
608pub const GL_TEXTURE2: u32 = 33986;
609pub const GL_TEXTURE3: u32 = 33987;
610pub const GL_TEXTURE4: u32 = 33988;
611pub const GL_TEXTURE5: u32 = 33989;
612pub const GL_TEXTURE6: u32 = 33990;
613pub const GL_TEXTURE7: u32 = 33991;
614pub const GL_TEXTURE8: u32 = 33992;
615pub const GL_TEXTURE9: u32 = 33993;
616pub const GL_TEXTURE10: u32 = 33994;
617pub const GL_TEXTURE11: u32 = 33995;
618pub const GL_TEXTURE12: u32 = 33996;
619pub const GL_TEXTURE13: u32 = 33997;
620pub const GL_TEXTURE14: u32 = 33998;
621pub const GL_TEXTURE15: u32 = 33999;
622pub const GL_ACTIVE_TEXTURE: u32 = 34016;
623pub const GL_CLIENT_ACTIVE_TEXTURE: u32 = 34017;
624pub const GL_MAX_TEXTURE_UNITS: u32 = 34018;
625pub const GL_SUBTRACT: u32 = 34023;
626pub const GL_MAX_RENDERBUFFER_SIZE: u32 = 34024;
627pub const GL_TEXTURE_COMPRESSION_HINT: u32 = 34031;
628pub const GL_TEXTURE_MAX_ANISOTROPY_EXT: u32 = 34046;
629pub const GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT: u32 = 34047;
630pub const GL_TEXTURE_LOD_BIAS: u32 = 34049;
631pub const GL_INCR_WRAP: u32 = 34055;
632pub const GL_DECR_WRAP: u32 = 34056;
633pub const GL_TEXTURE_CUBE_MAP: u32 = 34067;
634pub const GL_TEXTURE_BINDING_CUBE_MAP: u32 = 34068;
635pub const GL_TEXTURE_CUBE_MAP_POSITIVE_X: u32 = 34069;
636pub const GL_TEXTURE_CUBE_MAP_NEGATIVE_X: u32 = 34070;
637pub const GL_TEXTURE_CUBE_MAP_POSITIVE_Y: u32 = 34071;
638pub const GL_TEXTURE_CUBE_MAP_NEGATIVE_Y: u32 = 34072;
639pub const GL_TEXTURE_CUBE_MAP_POSITIVE_Z: u32 = 34073;
640pub const GL_TEXTURE_CUBE_MAP_NEGATIVE_Z: u32 = 34074;
641pub const GL_MAX_CUBE_MAP_TEXTURE_SIZE: u32 = 34076;
642pub const GL_COMBINE: u32 = 34160;
643pub const GL_COMBINE_RGB: u32 = 34161;
644pub const GL_COMBINE_ALPHA: u32 = 34162;
645pub const GL_RGB_SCALE: u32 = 34163;
646pub const GL_ADD_SIGNED: u32 = 34164;
647pub const GL_INTERPOLATE: u32 = 34165;
648pub const GL_CONSTANT: u32 = 34166;
649pub const GL_PRIMARY_COLOR: u32 = 34167;
650pub const GL_PREVIOUS: u32 = 34168;
651pub const GL_SRC0_RGB: u32 = 34176;
652pub const GL_SRC1_RGB: u32 = 34177;
653pub const GL_SRC2_RGB: u32 = 34178;
654pub const GL_SRC0_ALPHA: u32 = 34184;
655pub const GL_SRC1_ALPHA: u32 = 34185;
656pub const GL_SRC2_ALPHA: u32 = 34186;
657pub const GL_OPERAND0_RGB: u32 = 34192;
658pub const GL_OPERAND1_RGB: u32 = 34193;
659pub const GL_OPERAND2_RGB: u32 = 34194;
660pub const GL_OPERAND0_ALPHA: u32 = 34200;
661pub const GL_OPERAND1_ALPHA: u32 = 34201;
662pub const GL_OPERAND2_ALPHA: u32 = 34202;
663pub const GL_VERTEX_ATTRIB_ARRAY_ENABLED: u32 = 34338;
664pub const GL_VERTEX_ATTRIB_ARRAY_SIZE: u32 = 34339;
665pub const GL_VERTEX_ATTRIB_ARRAY_STRIDE: u32 = 34340;
666pub const GL_VERTEX_ATTRIB_ARRAY_TYPE: u32 = 34341;
667pub const GL_CURRENT_VERTEX_ATTRIB: u32 = 34342;
668pub const GL_VERTEX_ATTRIB_ARRAY_POINTER: u32 = 34373;
669pub const GL_PROGRAM_ERROR_POSITION_ARB: u32 = 34379;
670pub const GL_NUM_COMPRESSED_TEXTURE_FORMATS: u32 = 34466;
671pub const GL_COMPRESSED_TEXTURE_FORMATS: u32 = 34467;
672pub const GL_PROGRAM_BINARY_LENGTH: u32 = 34625;
673pub const GL_MIRROR_CLAMP_EXT: u32 = 34626;
674pub const GL_BUFFER_SIZE: u32 = 34660;
675pub const GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: u32 = 34798;
676pub const GL_NUM_PROGRAM_BINARY_FORMATS: u32 = 34814;
677pub const GL_RGBA16F: u32 = 34842;
678pub const GL_BLEND_EQUATION_ALPHA: u32 = 34877;
679pub const GL_POINT_SPRITE: u32 = 34913;
680pub const GL_QUERY_RESULT: u32 = 34918;
681pub const GL_QUERY_RESULT_AVAILABLE: u32 = 34919;
682pub const GL_MAX_VERTEX_ATTRIBS: u32 = 34921;
683pub const GL_VERTEX_ATTRIB_ARRAY_NORMALIZED: u32 = 34922;
684pub const GL_MAX_TEXTURE_COORDS: u32 = 34929;
685pub const GL_MAX_TEXTURE_IMAGE_UNITS: u32 = 34930;
686pub const GL_ARRAY_BUFFER: u32 = 34962;
687pub const GL_ELEMENT_ARRAY_BUFFER: u32 = 34963;
688pub const GL_ARRAY_BUFFER_BINDING: u32 = 34964;
689pub const GL_ELEMENT_ARRAY_BUFFER_BINDING: u32 = 34965;
690pub const GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: u32 = 34975;
691pub const GL_READ_ONLY: u32 = 35000;
692pub const GL_WRITE_ONLY: u32 = 35001;
693pub const GL_READ_WRITE: u32 = 35002;
694pub const GL_STREAM_DRAW: u32 = 35040;
695pub const GL_STREAM_READ: u32 = 35041;
696pub const GL_STREAM_COPY: u32 = 35042;
697pub const GL_STATIC_DRAW: u32 = 35044;
698pub const GL_STATIC_READ: u32 = 35045;
699pub const GL_STATIC_COPY: u32 = 35046;
700pub const GL_DYNAMIC_DRAW: u32 = 35048;
701pub const GL_DYNAMIC_READ: u32 = 35049;
702pub const GL_DYNAMIC_COPY: u32 = 35050;
703pub const GL_DEPTH24_STENCIL8: u32 = 35056;
704pub const GL_CG_VERTEX_SHADER_EXT: u32 = 35086;
705pub const GL_CG_FRAGMENT_SHADER_EXT: u32 = 35087;
706pub const GL_SAMPLES_PASSED: u32 = 35092;
707pub const GL_SAMPLER_BINDING: u32 = 35097;
708pub const GL_UNIFORM_BUFFER: u32 = 35345;
709pub const GL_FRAGMENT_SHADER: u32 = 35632;
710pub const GL_VERTEX_SHADER: u32 = 35633;
711pub const GL_MAX_VARYING_FLOATS: u32 = 35659;
712pub const GL_MAX_FRAGMENT_UNIFORM_COMPONENTS: u32 = 35657;
713pub const GL_MAX_VERTEX_UNIFORM_COMPONENTS: u32 = 35658;
714pub const GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS: u32 = 35660;
715pub const GL_SHADER_TYPE: u32 = 35663;
716pub const GL_FLOAT_VEC2: u32 = 35664;
717pub const GL_FLOAT_VEC3: u32 = 35665;
718pub const GL_FLOAT_VEC4: u32 = 35666;
719pub const GL_INT_VEC2: u32 = 35667;
720pub const GL_INT_VEC3: u32 = 35668;
721pub const GL_INT_VEC4: u32 = 35669;
722pub const GL_FLOAT_MAT2: u32 = 35674;
723pub const GL_FLOAT_MAT3: u32 = 35675;
724pub const GL_FLOAT_MAT4: u32 = 35676;
725pub const GL_SAMPLER_2D: u32 = 35678;
726pub const GL_SAMPLER_CUBE: u32 = 35680;
727pub const GL_DELETE_STATUS: u32 = 35712;
728pub const GL_COMPILE_STATUS: u32 = 35713;
729pub const GL_LINK_STATUS: u32 = 35714;
730pub const GL_VALIDATE_STATUS: u32 = 35715;
731pub const GL_INFO_LOG_LENGTH: u32 = 35716;
732pub const GL_ATTACHED_SHADERS: u32 = 35717;
733pub const GL_ACTIVE_UNIFORMS: u32 = 35718;
734pub const GL_ACTIVE_UNIFORM_MAX_LENGTH: u32 = 35719;
735pub const GL_SHADER_SOURCE_LENGTH: u32 = 35720;
736pub const GL_ACTIVE_ATTRIBUTES: u32 = 35721;
737pub const GL_ACTIVE_ATTRIBUTE_MAX_LENGTH: u32 = 35722;
738pub const GL_SHADING_LANGUAGE_VERSION: u32 = 35724;
739pub const GL_CURRENT_PROGRAM: u32 = 35725;
740pub const GL_PALETTE4_RGB8_OES: u32 = 35728;
741pub const GL_PALETTE4_RGBA8_OES: u32 = 35729;
742pub const GL_PALETTE4_R5_G6_B5_OES: u32 = 35730;
743pub const GL_PALETTE4_RGBA4_OES: u32 = 35731;
744pub const GL_PALETTE4_RGB5_A1_OES: u32 = 35732;
745pub const GL_PALETTE8_RGB8_OES: u32 = 35733;
746pub const GL_PALETTE8_RGBA8_OES: u32 = 35734;
747pub const GL_PALETTE8_R5_G6_B5_OES: u32 = 35735;
748pub const GL_PALETTE8_RGBA4_OES: u32 = 35736;
749pub const GL_PALETTE8_RGB5_A1_OES: u32 = 35737;
750pub const GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG: u32 = 35840;
751pub const GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG: u32 = 35841;
752pub const GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: u32 = 35842;
753pub const GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: u32 = 35843;
754pub const GL_ANY_SAMPLES_PASSED: u32 = 35887;
755pub const GL_SRGB: u32 = 35904;
756pub const GL_SRGB8: u32 = 35905;
757pub const GL_SRGB_ALPHA: u32 = 35906;
758pub const GL_SRGB8_ALPHA8: u32 = 35907;
759pub const GL_SLUMINANCE_ALPHA: u32 = 35908;
760pub const GL_SLUMINANCE8_ALPHA8: u32 = 35909;
761pub const GL_SLUMINANCE: u32 = 35910;
762pub const GL_SLUMINANCE8: u32 = 35911;
763pub const GL_COMPRESSED_SRGB: u32 = 35912;
764pub const GL_COMPRESSED_SRGB_ALPHA: u32 = 35913;
765pub const GL_COMPRESSED_SRGB_S3TC_DXT1: u32 = 35916;
766pub const GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1: u32 = 35917;
767pub const GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3: u32 = 35918;
768pub const GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5: u32 = 35919;
769pub const GL_ATC_RGB_AMD: u32 = 35986;
770pub const GL_ATC_RGBA_EXPLICIT_ALPHA_AMD: u32 = 35987;
771pub const GL_FRAMEBUFFER_BINDING: u32 = 36006;
772pub const GL_RENDERBUFFER_BINDING: u32 = 36007;
773pub const GL_READ_FRAMEBUFFER: u32 = 36008;
774pub const GL_DRAW_FRAMEBUFFER: u32 = 36009;
775pub const GL_READ_FRAMEBUFFER_BINDING: u32 = 36010;
776pub const GL_COLOR_ATTACHMENT0: u32 = 36064;
777pub const GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: u32 = 36048;
778pub const GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: u32 = 36049;
779pub const GL_MAX_COLOR_ATTACHMENTS: u32 = 36063;
780pub const GL_DEPTH_ATTACHMENT: u32 = 36096;
781pub const GL_STENCIL_ATTACHMENT: u32 = 36128;
782pub const GL_DEPTH_COMPONENT32F: u32 = 36267;
783pub const GL_DEPTH32F_STENCIL8: u32 = 36268;
784pub const GL_FRAMEBUFFER_SRGB: u32 = 36281;
785pub const GL_FRAMEBUFFER_COMPLETE: u32 = 36053;
786pub const GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: u32 = 36055;
787pub const GL_FRAMEBUFFER: u32 = 36160;
788pub const GL_RENDERBUFFER: u32 = 36161;
789pub const GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS: u32 = 35661;
790pub const GL_HALF_FLOAT_OES: u32 = 36193;
791pub const GL_ETC1_RGB8_OES: u32 = 36196;
792pub const GL_ANY_SAMPLES_PASSED_CONSERVATIVE: u32 = 36202;
793pub const GL_SHADER_BINARY_FORMATS: u32 = 36344;
794pub const GL_NUM_SHADER_BINARY_FORMATS: u32 = 36345;
795pub const GL_SHADER_COMPILER: u32 = 36346;
796pub const GL_MAX_VERTEX_UNIFORM_VECTORS: u32 = 36347;
797pub const GL_MAX_VARYING_VECTORS: u32 = 36348;
798pub const GL_MAX_FRAGMENT_UNIFORM_VECTORS: u32 = 36349;
799pub const GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX: u32 = 36935;
800pub const GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX: u32 = 36936;
801pub const GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX: u32 = 36937;
802pub const GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG: u32 = 37175;
803pub const GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG: u32 = 37176;
804pub const GL_QUERY_RESULT_NO_WAIT: u32 = 37268;
805pub const GL_COMPRESSED_RGBA8_ETC2_EAC: u32 = 37496;
806pub const VGL_YUV420P_NV12_BT601: u32 = 102000;
807pub const VGL_YVU420P_NV21_BT601: u32 = 102001;
808pub const VGL_YUV420P_NV12_BT709: u32 = 102002;
809pub const VGL_YVU420P_NV21_BT709: u32 = 102003;
810pub const VGL_YUV420P_BT601: u32 = 102004;
811pub const VGL_YVU420P_BT601: u32 = 102005;
812pub const VGL_YUV420P_BT709: u32 = 102006;
813pub const VGL_YVU420P_BT709: u32 = 102007;
814pub const EGL_SUCCESS: u32 = 12288;
815pub const EGL_BAD_PARAMETER: u32 = 12300;
816pub const EGL_OPENGL_ES_API: u32 = 12448;
817pub const EGL_OPENGL_API: u32 = 12450;
818pub const GL_MAX_TEXTURE_LOD_BIAS: u32 = 31;
819pub const GL_POINT_BIT: u32 = 2;
820pub const GL_LINE_BIT: u32 = 4;
821pub const GL_POLYGON_BIT: u32 = 8;
822pub const GL_LIGHTING_BIT: u32 = 64;
823pub const GL_FOG_BIT: u32 = 128;
824pub const GL_DEPTH_BUFFER_BIT: u32 = 256;
825pub const GL_STENCIL_BUFFER_BIT: u32 = 1024;
826pub const GL_VIEWPORT_BIT: u32 = 2048;
827pub const GL_TRANSFORM_BIT: u32 = 4096;
828pub const GL_ENABLE_BIT: u32 = 8192;
829pub const GL_COLOR_BUFFER_BIT: u32 = 16384;
830pub const GL_HINT_BIT: u32 = 32768;
831pub const GL_SCISSOR_BIT: u32 = 524288;
832pub const GL_ALL_ATTRIB_BITS: u32 = 4294967295;
833pub const GL_MAP_READ_BIT: u32 = 1;
834pub const GL_MAP_WRITE_BIT: u32 = 2;
835pub const GL_MAP_INVALIDATE_RANGE_BIT: u32 = 4;
836pub const GL_MAP_INVALIDATE_BUFFER_BIT: u32 = 8;
837pub const GL_MAP_FLUSH_EXPLICIT_BIT: u32 = 16;
838pub const GL_MAP_UNSYNCHRONIZED_BIT: u32 = 32;
839pub const GL_DRAW_FRAMEBUFFER_BINDING: u32 = 36006;
840pub const GL_BLEND_EQUATION_RGB: u32 = 32777;
841pub type wchar_t = ::std::os::raw::c_uint;
842#[repr(C)]
843#[derive(Debug, Copy, Clone)]
844pub struct max_align_t {
845    pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
846    pub __clang_max_align_nonce2: f64,
847}
848#[allow(clippy::unnecessary_operation, clippy::identity_op)]
849const _: () = {
850    ["Size of max_align_t"][::std::mem::size_of::<max_align_t>() - 16usize];
851    ["Alignment of max_align_t"][::std::mem::align_of::<max_align_t>() - 8usize];
852    ["Offset of field: max_align_t::__clang_max_align_nonce1"]
853        [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce1) - 0usize];
854    ["Offset of field: max_align_t::__clang_max_align_nonce2"]
855        [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce2) - 8usize];
856};
857pub type __int8_t = ::std::os::raw::c_schar;
858pub type __uint8_t = ::std::os::raw::c_uchar;
859pub type __int16_t = ::std::os::raw::c_short;
860pub type __uint16_t = ::std::os::raw::c_ushort;
861pub type __int32_t = ::std::os::raw::c_int;
862pub type __uint32_t = ::std::os::raw::c_uint;
863pub type __int64_t = ::std::os::raw::c_longlong;
864pub type __uint64_t = ::std::os::raw::c_ulonglong;
865pub type __int_least8_t = ::std::os::raw::c_schar;
866pub type __uint_least8_t = ::std::os::raw::c_uchar;
867pub type __int_least16_t = ::std::os::raw::c_short;
868pub type __uint_least16_t = ::std::os::raw::c_ushort;
869pub type __int_least32_t = ::std::os::raw::c_int;
870pub type __uint_least32_t = ::std::os::raw::c_uint;
871pub type __int_least64_t = ::std::os::raw::c_longlong;
872pub type __uint_least64_t = ::std::os::raw::c_ulonglong;
873pub type __intmax_t = ::std::os::raw::c_longlong;
874pub type __uintmax_t = ::std::os::raw::c_ulonglong;
875pub type __intptr_t = ::std::os::raw::c_int;
876pub type __uintptr_t = ::std::os::raw::c_uint;
877pub type intmax_t = __intmax_t;
878pub type uintmax_t = __uintmax_t;
879pub type int_least8_t = __int_least8_t;
880pub type uint_least8_t = __uint_least8_t;
881pub type int_least16_t = __int_least16_t;
882pub type uint_least16_t = __uint_least16_t;
883pub type int_least32_t = __int_least32_t;
884pub type uint_least32_t = __uint_least32_t;
885pub type int_least64_t = __int_least64_t;
886pub type uint_least64_t = __uint_least64_t;
887pub type int_fast8_t = ::std::os::raw::c_schar;
888pub type uint_fast8_t = ::std::os::raw::c_uchar;
889pub type int_fast16_t = ::std::os::raw::c_short;
890pub type uint_fast16_t = ::std::os::raw::c_ushort;
891pub type int_fast32_t = ::std::os::raw::c_int;
892pub type uint_fast32_t = ::std::os::raw::c_uint;
893pub type int_fast64_t = ::std::os::raw::c_longlong;
894pub type uint_fast64_t = ::std::os::raw::c_ulonglong;
895pub type SceChar8 = i8;
896pub type SceUChar8 = u8;
897pub type SceInt8 = i8;
898pub type SceUInt8 = u8;
899pub type SceShort16 = i16;
900pub type SceUShort16 = u16;
901pub type SceInt16 = i16;
902pub type SceUInt16 = u16;
903pub type SceInt32 = i32;
904pub type SceUInt32 = u32;
905pub type SceInt = i32;
906pub type SceUInt = u32;
907pub type SceInt64 = i64;
908pub type SceUInt64 = u64;
909pub type SceLong64 = i64;
910pub type SceULong64 = u64;
911pub type SceSize = ::std::os::raw::c_uint;
912pub type SceSSize = ::std::os::raw::c_int;
913pub type SceBool = ::std::os::raw::c_int;
914pub const SCE_FALSE: _bindgen_ty_1 = 0;
915pub const SCE_TRUE: _bindgen_ty_1 = 1;
916pub type _bindgen_ty_1 = ::std::os::raw::c_uint;
917pub type SceFloat = f32;
918pub type SceFloat32 = f32;
919pub type SceDouble = f64;
920pub type SceDouble64 = f64;
921pub type SceSByte = ::std::os::raw::c_schar;
922pub type SceSByte8 = ::std::os::raw::c_schar;
923pub type SceByte = ::std::os::raw::c_uchar;
924pub type SceByte8 = ::std::os::raw::c_uchar;
925pub type SceWChar16 = u16;
926pub type SceWChar32 = u32;
927pub type SceVoid = ::std::os::raw::c_void;
928pub type ScePVoid = *mut ::std::os::raw::c_void;
929pub type SceIntPtr = ::std::os::raw::c_int;
930pub type SceUIntPtr = ::std::os::raw::c_uint;
931pub type SceUIntVAddr = SceUIntPtr;
932pub type SceMode = ::std::os::raw::c_int;
933pub type SceOff = SceInt64;
934pub type SceUID = ::std::os::raw::c_int;
935pub type ScePID = ::std::os::raw::c_int;
936pub type SceNID = ::std::os::raw::c_uint;
937pub type SceName = *mut ::std::os::raw::c_char;
938#[doc = " 64-bit system clock type."]
939pub type SceKernelSysClock = SceUInt64;
940#[repr(C)]
941#[derive(Debug, Copy, Clone)]
942pub struct SceIVector2 {
943    pub x: SceInt,
944    pub y: SceInt,
945}
946#[allow(clippy::unnecessary_operation, clippy::identity_op)]
947const _: () = {
948    ["Size of SceIVector2"][::std::mem::size_of::<SceIVector2>() - 8usize];
949    ["Alignment of SceIVector2"][::std::mem::align_of::<SceIVector2>() - 4usize];
950    ["Offset of field: SceIVector2::x"][::std::mem::offset_of!(SceIVector2, x) - 0usize];
951    ["Offset of field: SceIVector2::y"][::std::mem::offset_of!(SceIVector2, y) - 4usize];
952};
953#[repr(C)]
954#[derive(Debug, Copy, Clone)]
955pub struct SceFVector2 {
956    pub x: SceFloat,
957    pub y: SceFloat,
958}
959#[allow(clippy::unnecessary_operation, clippy::identity_op)]
960const _: () = {
961    ["Size of SceFVector2"][::std::mem::size_of::<SceFVector2>() - 8usize];
962    ["Alignment of SceFVector2"][::std::mem::align_of::<SceFVector2>() - 4usize];
963    ["Offset of field: SceFVector2::x"][::std::mem::offset_of!(SceFVector2, x) - 0usize];
964    ["Offset of field: SceFVector2::y"][::std::mem::offset_of!(SceFVector2, y) - 4usize];
965};
966#[repr(C)]
967#[derive(Debug, Copy, Clone)]
968pub struct SceIVector3 {
969    pub x: SceInt,
970    pub y: SceInt,
971    pub z: SceInt,
972}
973#[allow(clippy::unnecessary_operation, clippy::identity_op)]
974const _: () = {
975    ["Size of SceIVector3"][::std::mem::size_of::<SceIVector3>() - 12usize];
976    ["Alignment of SceIVector3"][::std::mem::align_of::<SceIVector3>() - 4usize];
977    ["Offset of field: SceIVector3::x"][::std::mem::offset_of!(SceIVector3, x) - 0usize];
978    ["Offset of field: SceIVector3::y"][::std::mem::offset_of!(SceIVector3, y) - 4usize];
979    ["Offset of field: SceIVector3::z"][::std::mem::offset_of!(SceIVector3, z) - 8usize];
980};
981#[repr(C)]
982#[derive(Debug, Copy, Clone)]
983pub struct SceFVector3 {
984    pub x: SceFloat,
985    pub y: SceFloat,
986    pub z: SceFloat,
987}
988#[allow(clippy::unnecessary_operation, clippy::identity_op)]
989const _: () = {
990    ["Size of SceFVector3"][::std::mem::size_of::<SceFVector3>() - 12usize];
991    ["Alignment of SceFVector3"][::std::mem::align_of::<SceFVector3>() - 4usize];
992    ["Offset of field: SceFVector3::x"][::std::mem::offset_of!(SceFVector3, x) - 0usize];
993    ["Offset of field: SceFVector3::y"][::std::mem::offset_of!(SceFVector3, y) - 4usize];
994    ["Offset of field: SceFVector3::z"][::std::mem::offset_of!(SceFVector3, z) - 8usize];
995};
996#[repr(C)]
997#[derive(Debug, Copy, Clone)]
998pub struct SceIVector4 {
999    pub x: SceInt,
1000    pub y: SceInt,
1001    pub z: SceInt,
1002    pub w: SceInt,
1003}
1004#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1005const _: () = {
1006    ["Size of SceIVector4"][::std::mem::size_of::<SceIVector4>() - 16usize];
1007    ["Alignment of SceIVector4"][::std::mem::align_of::<SceIVector4>() - 4usize];
1008    ["Offset of field: SceIVector4::x"][::std::mem::offset_of!(SceIVector4, x) - 0usize];
1009    ["Offset of field: SceIVector4::y"][::std::mem::offset_of!(SceIVector4, y) - 4usize];
1010    ["Offset of field: SceIVector4::z"][::std::mem::offset_of!(SceIVector4, z) - 8usize];
1011    ["Offset of field: SceIVector4::w"][::std::mem::offset_of!(SceIVector4, w) - 12usize];
1012};
1013#[repr(C)]
1014#[derive(Debug, Copy, Clone)]
1015pub struct SceFVector4 {
1016    pub x: SceFloat,
1017    pub y: SceFloat,
1018    pub z: SceFloat,
1019    pub w: SceFloat,
1020}
1021#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1022const _: () = {
1023    ["Size of SceFVector4"][::std::mem::size_of::<SceFVector4>() - 16usize];
1024    ["Alignment of SceFVector4"][::std::mem::align_of::<SceFVector4>() - 4usize];
1025    ["Offset of field: SceFVector4::x"][::std::mem::offset_of!(SceFVector4, x) - 0usize];
1026    ["Offset of field: SceFVector4::y"][::std::mem::offset_of!(SceFVector4, y) - 4usize];
1027    ["Offset of field: SceFVector4::z"][::std::mem::offset_of!(SceFVector4, z) - 8usize];
1028    ["Offset of field: SceFVector4::w"][::std::mem::offset_of!(SceFVector4, w) - 12usize];
1029};
1030#[repr(C)]
1031#[derive(Debug, Copy, Clone)]
1032pub struct SceIMatrix2 {
1033    pub x: SceIVector2,
1034    pub y: SceIVector2,
1035}
1036#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1037const _: () = {
1038    ["Size of SceIMatrix2"][::std::mem::size_of::<SceIMatrix2>() - 16usize];
1039    ["Alignment of SceIMatrix2"][::std::mem::align_of::<SceIMatrix2>() - 4usize];
1040    ["Offset of field: SceIMatrix2::x"][::std::mem::offset_of!(SceIMatrix2, x) - 0usize];
1041    ["Offset of field: SceIMatrix2::y"][::std::mem::offset_of!(SceIMatrix2, y) - 8usize];
1042};
1043#[repr(C)]
1044#[derive(Debug, Copy, Clone)]
1045pub struct SceFMatrix2 {
1046    pub x: SceFVector2,
1047    pub y: SceFVector2,
1048}
1049#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1050const _: () = {
1051    ["Size of SceFMatrix2"][::std::mem::size_of::<SceFMatrix2>() - 16usize];
1052    ["Alignment of SceFMatrix2"][::std::mem::align_of::<SceFMatrix2>() - 4usize];
1053    ["Offset of field: SceFMatrix2::x"][::std::mem::offset_of!(SceFMatrix2, x) - 0usize];
1054    ["Offset of field: SceFMatrix2::y"][::std::mem::offset_of!(SceFMatrix2, y) - 8usize];
1055};
1056#[repr(C)]
1057#[derive(Debug, Copy, Clone)]
1058pub struct SceIMatrix3 {
1059    pub x: SceIVector3,
1060    pub y: SceIVector3,
1061    pub z: SceIVector3,
1062}
1063#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1064const _: () = {
1065    ["Size of SceIMatrix3"][::std::mem::size_of::<SceIMatrix3>() - 36usize];
1066    ["Alignment of SceIMatrix3"][::std::mem::align_of::<SceIMatrix3>() - 4usize];
1067    ["Offset of field: SceIMatrix3::x"][::std::mem::offset_of!(SceIMatrix3, x) - 0usize];
1068    ["Offset of field: SceIMatrix3::y"][::std::mem::offset_of!(SceIMatrix3, y) - 12usize];
1069    ["Offset of field: SceIMatrix3::z"][::std::mem::offset_of!(SceIMatrix3, z) - 24usize];
1070};
1071#[repr(C)]
1072#[derive(Debug, Copy, Clone)]
1073pub struct SceFMatrix3 {
1074    pub x: SceFVector3,
1075    pub y: SceFVector3,
1076    pub z: SceFVector3,
1077}
1078#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1079const _: () = {
1080    ["Size of SceFMatrix3"][::std::mem::size_of::<SceFMatrix3>() - 36usize];
1081    ["Alignment of SceFMatrix3"][::std::mem::align_of::<SceFMatrix3>() - 4usize];
1082    ["Offset of field: SceFMatrix3::x"][::std::mem::offset_of!(SceFMatrix3, x) - 0usize];
1083    ["Offset of field: SceFMatrix3::y"][::std::mem::offset_of!(SceFMatrix3, y) - 12usize];
1084    ["Offset of field: SceFMatrix3::z"][::std::mem::offset_of!(SceFMatrix3, z) - 24usize];
1085};
1086#[repr(C)]
1087#[derive(Debug, Copy, Clone)]
1088pub struct SceIMatrix4 {
1089    pub x: SceIVector4,
1090    pub y: SceIVector4,
1091    pub z: SceIVector4,
1092    pub w: SceIVector4,
1093}
1094#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1095const _: () = {
1096    ["Size of SceIMatrix4"][::std::mem::size_of::<SceIMatrix4>() - 64usize];
1097    ["Alignment of SceIMatrix4"][::std::mem::align_of::<SceIMatrix4>() - 4usize];
1098    ["Offset of field: SceIMatrix4::x"][::std::mem::offset_of!(SceIMatrix4, x) - 0usize];
1099    ["Offset of field: SceIMatrix4::y"][::std::mem::offset_of!(SceIMatrix4, y) - 16usize];
1100    ["Offset of field: SceIMatrix4::z"][::std::mem::offset_of!(SceIMatrix4, z) - 32usize];
1101    ["Offset of field: SceIMatrix4::w"][::std::mem::offset_of!(SceIMatrix4, w) - 48usize];
1102};
1103#[repr(C)]
1104#[derive(Debug, Copy, Clone)]
1105pub struct SceFMatrix4 {
1106    pub x: SceFVector4,
1107    pub y: SceFVector4,
1108    pub z: SceFVector4,
1109    pub w: SceFVector4,
1110}
1111#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1112const _: () = {
1113    ["Size of SceFMatrix4"][::std::mem::size_of::<SceFMatrix4>() - 64usize];
1114    ["Alignment of SceFMatrix4"][::std::mem::align_of::<SceFMatrix4>() - 4usize];
1115    ["Offset of field: SceFMatrix4::x"][::std::mem::offset_of!(SceFMatrix4, x) - 0usize];
1116    ["Offset of field: SceFMatrix4::y"][::std::mem::offset_of!(SceFMatrix4, y) - 16usize];
1117    ["Offset of field: SceFMatrix4::z"][::std::mem::offset_of!(SceFMatrix4, z) - 32usize];
1118    ["Offset of field: SceFMatrix4::w"][::std::mem::offset_of!(SceFMatrix4, w) - 48usize];
1119};
1120#[repr(C)]
1121#[derive(Debug, Copy, Clone)]
1122pub struct SceFQuaternion {
1123    pub x: SceFloat,
1124    pub y: SceFloat,
1125    pub z: SceFloat,
1126    pub w: SceFloat,
1127}
1128#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1129const _: () = {
1130    ["Size of SceFQuaternion"][::std::mem::size_of::<SceFQuaternion>() - 16usize];
1131    ["Alignment of SceFQuaternion"][::std::mem::align_of::<SceFQuaternion>() - 4usize];
1132    ["Offset of field: SceFQuaternion::x"][::std::mem::offset_of!(SceFQuaternion, x) - 0usize];
1133    ["Offset of field: SceFQuaternion::y"][::std::mem::offset_of!(SceFQuaternion, y) - 4usize];
1134    ["Offset of field: SceFQuaternion::z"][::std::mem::offset_of!(SceFQuaternion, z) - 8usize];
1135    ["Offset of field: SceFQuaternion::w"][::std::mem::offset_of!(SceFQuaternion, w) - 12usize];
1136};
1137#[repr(C)]
1138#[derive(Debug, Copy, Clone)]
1139pub struct SceFColor {
1140    pub r: SceFloat,
1141    pub g: SceFloat,
1142    pub b: SceFloat,
1143    pub a: SceFloat,
1144}
1145#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1146const _: () = {
1147    ["Size of SceFColor"][::std::mem::size_of::<SceFColor>() - 16usize];
1148    ["Alignment of SceFColor"][::std::mem::align_of::<SceFColor>() - 4usize];
1149    ["Offset of field: SceFColor::r"][::std::mem::offset_of!(SceFColor, r) - 0usize];
1150    ["Offset of field: SceFColor::g"][::std::mem::offset_of!(SceFColor, g) - 4usize];
1151    ["Offset of field: SceFColor::b"][::std::mem::offset_of!(SceFColor, b) - 8usize];
1152    ["Offset of field: SceFColor::a"][::std::mem::offset_of!(SceFColor, a) - 12usize];
1153};
1154#[repr(C)]
1155#[derive(Debug, Copy, Clone)]
1156pub struct SceFPlane {
1157    pub a: SceFloat,
1158    pub b: SceFloat,
1159    pub c: SceFloat,
1160    pub d: SceFloat,
1161}
1162#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1163const _: () = {
1164    ["Size of SceFPlane"][::std::mem::size_of::<SceFPlane>() - 16usize];
1165    ["Alignment of SceFPlane"][::std::mem::align_of::<SceFPlane>() - 4usize];
1166    ["Offset of field: SceFPlane::a"][::std::mem::offset_of!(SceFPlane, a) - 0usize];
1167    ["Offset of field: SceFPlane::b"][::std::mem::offset_of!(SceFPlane, b) - 4usize];
1168    ["Offset of field: SceFPlane::c"][::std::mem::offset_of!(SceFPlane, c) - 8usize];
1169    ["Offset of field: SceFPlane::d"][::std::mem::offset_of!(SceFPlane, d) - 12usize];
1170};
1171#[repr(C)]
1172#[derive(Debug, Copy, Clone)]
1173pub struct SceDateTime {
1174    pub year: ::std::os::raw::c_ushort,
1175    pub month: ::std::os::raw::c_ushort,
1176    pub day: ::std::os::raw::c_ushort,
1177    pub hour: ::std::os::raw::c_ushort,
1178    pub minute: ::std::os::raw::c_ushort,
1179    pub second: ::std::os::raw::c_ushort,
1180    pub microsecond: ::std::os::raw::c_uint,
1181}
1182#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1183const _: () = {
1184    ["Size of SceDateTime"][::std::mem::size_of::<SceDateTime>() - 16usize];
1185    ["Alignment of SceDateTime"][::std::mem::align_of::<SceDateTime>() - 4usize];
1186    ["Offset of field: SceDateTime::year"][::std::mem::offset_of!(SceDateTime, year) - 0usize];
1187    ["Offset of field: SceDateTime::month"][::std::mem::offset_of!(SceDateTime, month) - 2usize];
1188    ["Offset of field: SceDateTime::day"][::std::mem::offset_of!(SceDateTime, day) - 4usize];
1189    ["Offset of field: SceDateTime::hour"][::std::mem::offset_of!(SceDateTime, hour) - 6usize];
1190    ["Offset of field: SceDateTime::minute"][::std::mem::offset_of!(SceDateTime, minute) - 8usize];
1191    ["Offset of field: SceDateTime::second"][::std::mem::offset_of!(SceDateTime, second) - 10usize];
1192    ["Offset of field: SceDateTime::microsecond"]
1193        [::std::mem::offset_of!(SceDateTime, microsecond) - 12usize];
1194};
1195pub type SceShaccCgParameter = *const ::std::os::raw::c_void;
1196pub type SceShaccCgCallbackOpenFile = ::std::option::Option<
1197    unsafe extern "C" fn(
1198        fileName: *const ::std::os::raw::c_char,
1199        includedFrom: *const SceShaccCgSourceLocation,
1200        compileOptions: *const SceShaccCgCompileOptions,
1201        errorString: *mut *const ::std::os::raw::c_char,
1202    ) -> *mut SceShaccCgSourceFile,
1203>;
1204pub type SceShaccCgCallbackReleaseFile = ::std::option::Option<
1205    unsafe extern "C" fn(
1206        file: *const SceShaccCgSourceFile,
1207        compileOptions: *const SceShaccCgCompileOptions,
1208    ),
1209>;
1210pub type SceShaccCgCallbackLocateFile = ::std::option::Option<
1211    unsafe extern "C" fn(
1212        fileName: *const ::std::os::raw::c_char,
1213        includedFrom: *const SceShaccCgSourceLocation,
1214        searchPathCount: SceUInt32,
1215        searchPaths: *const *const ::std::os::raw::c_char,
1216        compileOptions: *const SceShaccCgCompileOptions,
1217        errorString: *mut *const ::std::os::raw::c_char,
1218    ) -> *const ::std::os::raw::c_char,
1219>;
1220pub type SceShaccCgCallbackAbsolutePath = ::std::option::Option<
1221    unsafe extern "C" fn(
1222        fileName: *const ::std::os::raw::c_char,
1223        includedFrom: *const SceShaccCgSourceLocation,
1224        compileOptions: *const SceShaccCgCompileOptions,
1225    ) -> *const ::std::os::raw::c_char,
1226>;
1227pub type SceShaccCgCallbackReleaseFileName = ::std::option::Option<
1228    unsafe extern "C" fn(
1229        fileName: *const ::std::os::raw::c_char,
1230        compileOptions: *const SceShaccCgCompileOptions,
1231    ),
1232>;
1233pub type SceShaccCgCallbackFileDate = ::std::option::Option<
1234    unsafe extern "C" fn(
1235        file: *const SceShaccCgSourceFile,
1236        includedFrom: *const SceShaccCgSourceLocation,
1237        compileOptions: *const SceShaccCgCompileOptions,
1238        timeLastStatusChange: *mut i64,
1239        timeLastModified: *mut i64,
1240    ) -> SceInt32,
1241>;
1242pub const SceShaccCgDiagnosticLevel_SCE_SHACCCG_DIAGNOSTIC_LEVEL_INFO: SceShaccCgDiagnosticLevel =
1243    0;
1244pub const SceShaccCgDiagnosticLevel_SCE_SHACCCG_DIAGNOSTIC_LEVEL_WARNING:
1245    SceShaccCgDiagnosticLevel = 1;
1246pub const SceShaccCgDiagnosticLevel_SCE_SHACCCG_DIAGNOSTIC_LEVEL_ERROR: SceShaccCgDiagnosticLevel =
1247    2;
1248pub type SceShaccCgDiagnosticLevel = ::std::os::raw::c_uint;
1249pub const SceShaccCgTargetProfile_SCE_SHACCCG_PROFILE_VP: SceShaccCgTargetProfile = 0;
1250pub const SceShaccCgTargetProfile_SCE_SHACCCG_PROFILE_FP: SceShaccCgTargetProfile = 1;
1251pub type SceShaccCgTargetProfile = ::std::os::raw::c_uint;
1252pub const SceShaccCgCallbackDefaults_SCE_SHACCCG_SYSTEM_FILES: SceShaccCgCallbackDefaults = 0;
1253pub const SceShaccCgCallbackDefaults_SCE_SHACCCG_TRIVIAL: SceShaccCgCallbackDefaults = 1;
1254pub type SceShaccCgCallbackDefaults = ::std::os::raw::c_uint;
1255pub const SceShaccCgLocale_SCE_SHACCCG_ENGLISH: SceShaccCgLocale = 0;
1256pub const SceShaccCgLocale_SCE_SHACCCG_JAPANESE: SceShaccCgLocale = 1;
1257pub type SceShaccCgLocale = ::std::os::raw::c_uint;
1258#[repr(C)]
1259#[derive(Debug, Copy, Clone)]
1260pub struct SceShaccCgSourceFile {
1261    pub fileName: *const ::std::os::raw::c_char,
1262    pub text: *const ::std::os::raw::c_char,
1263    pub size: SceUInt32,
1264}
1265#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1266const _: () = {
1267    ["Size of SceShaccCgSourceFile"][::std::mem::size_of::<SceShaccCgSourceFile>() - 12usize];
1268    ["Alignment of SceShaccCgSourceFile"][::std::mem::align_of::<SceShaccCgSourceFile>() - 4usize];
1269    ["Offset of field: SceShaccCgSourceFile::fileName"]
1270        [::std::mem::offset_of!(SceShaccCgSourceFile, fileName) - 0usize];
1271    ["Offset of field: SceShaccCgSourceFile::text"]
1272        [::std::mem::offset_of!(SceShaccCgSourceFile, text) - 4usize];
1273    ["Offset of field: SceShaccCgSourceFile::size"]
1274        [::std::mem::offset_of!(SceShaccCgSourceFile, size) - 8usize];
1275};
1276#[repr(C)]
1277#[derive(Debug, Copy, Clone)]
1278pub struct SceShaccCgSourceLocation {
1279    pub file: *const SceShaccCgSourceFile,
1280    pub lineNumber: SceUInt32,
1281    pub columnNumber: SceUInt32,
1282}
1283#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1284const _: () = {
1285    ["Size of SceShaccCgSourceLocation"]
1286        [::std::mem::size_of::<SceShaccCgSourceLocation>() - 12usize];
1287    ["Alignment of SceShaccCgSourceLocation"]
1288        [::std::mem::align_of::<SceShaccCgSourceLocation>() - 4usize];
1289    ["Offset of field: SceShaccCgSourceLocation::file"]
1290        [::std::mem::offset_of!(SceShaccCgSourceLocation, file) - 0usize];
1291    ["Offset of field: SceShaccCgSourceLocation::lineNumber"]
1292        [::std::mem::offset_of!(SceShaccCgSourceLocation, lineNumber) - 4usize];
1293    ["Offset of field: SceShaccCgSourceLocation::columnNumber"]
1294        [::std::mem::offset_of!(SceShaccCgSourceLocation, columnNumber) - 8usize];
1295};
1296#[repr(C)]
1297#[derive(Debug, Copy, Clone)]
1298pub struct SceShaccCgCallbackList {
1299    pub openFile: SceShaccCgCallbackOpenFile,
1300    pub releaseFile: SceShaccCgCallbackReleaseFile,
1301    pub locateFile: SceShaccCgCallbackLocateFile,
1302    pub absolutePath: SceShaccCgCallbackAbsolutePath,
1303    pub releaseFileName: SceShaccCgCallbackReleaseFileName,
1304    pub fileDate: SceShaccCgCallbackFileDate,
1305}
1306#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1307const _: () = {
1308    ["Size of SceShaccCgCallbackList"][::std::mem::size_of::<SceShaccCgCallbackList>() - 24usize];
1309    ["Alignment of SceShaccCgCallbackList"]
1310        [::std::mem::align_of::<SceShaccCgCallbackList>() - 4usize];
1311    ["Offset of field: SceShaccCgCallbackList::openFile"]
1312        [::std::mem::offset_of!(SceShaccCgCallbackList, openFile) - 0usize];
1313    ["Offset of field: SceShaccCgCallbackList::releaseFile"]
1314        [::std::mem::offset_of!(SceShaccCgCallbackList, releaseFile) - 4usize];
1315    ["Offset of field: SceShaccCgCallbackList::locateFile"]
1316        [::std::mem::offset_of!(SceShaccCgCallbackList, locateFile) - 8usize];
1317    ["Offset of field: SceShaccCgCallbackList::absolutePath"]
1318        [::std::mem::offset_of!(SceShaccCgCallbackList, absolutePath) - 12usize];
1319    ["Offset of field: SceShaccCgCallbackList::releaseFileName"]
1320        [::std::mem::offset_of!(SceShaccCgCallbackList, releaseFileName) - 16usize];
1321    ["Offset of field: SceShaccCgCallbackList::fileDate"]
1322        [::std::mem::offset_of!(SceShaccCgCallbackList, fileDate) - 20usize];
1323};
1324#[repr(C)]
1325#[derive(Debug, Copy, Clone)]
1326pub struct SceShaccCgCompileOptions {
1327    pub mainSourceFile: *const ::std::os::raw::c_char,
1328    pub targetProfile: SceShaccCgTargetProfile,
1329    pub entryFunctionName: *const ::std::os::raw::c_char,
1330    pub searchPathCount: SceUInt32,
1331    pub searchPaths: *const *const ::std::os::raw::c_char,
1332    pub macroDefinitionCount: SceUInt32,
1333    pub macroDefinitions: *const *const ::std::os::raw::c_char,
1334    pub includeFileCount: SceUInt32,
1335    pub includeFiles: *const *const ::std::os::raw::c_char,
1336    pub suppressedWarningsCount: SceUInt32,
1337    pub suppressedWarnings: *const SceUInt32,
1338    pub locale: SceShaccCgLocale,
1339    pub useFx: SceInt32,
1340    pub noStdlib: SceInt32,
1341    pub optimizationLevel: SceInt32,
1342    pub useFastmath: SceInt32,
1343    pub useFastprecision: SceInt32,
1344    pub useFastint: SceInt32,
1345    pub field_48: ::std::os::raw::c_int,
1346    pub warningsAsErrors: SceInt32,
1347    pub performanceWarnings: SceInt32,
1348    pub warningLevel: SceInt32,
1349    pub pedantic: SceInt32,
1350    pub pedanticError: SceInt32,
1351    pub field_60: ::std::os::raw::c_int,
1352    pub field_64: ::std::os::raw::c_int,
1353}
1354#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1355const _: () = {
1356    ["Size of SceShaccCgCompileOptions"]
1357        [::std::mem::size_of::<SceShaccCgCompileOptions>() - 104usize];
1358    ["Alignment of SceShaccCgCompileOptions"]
1359        [::std::mem::align_of::<SceShaccCgCompileOptions>() - 4usize];
1360    ["Offset of field: SceShaccCgCompileOptions::mainSourceFile"]
1361        [::std::mem::offset_of!(SceShaccCgCompileOptions, mainSourceFile) - 0usize];
1362    ["Offset of field: SceShaccCgCompileOptions::targetProfile"]
1363        [::std::mem::offset_of!(SceShaccCgCompileOptions, targetProfile) - 4usize];
1364    ["Offset of field: SceShaccCgCompileOptions::entryFunctionName"]
1365        [::std::mem::offset_of!(SceShaccCgCompileOptions, entryFunctionName) - 8usize];
1366    ["Offset of field: SceShaccCgCompileOptions::searchPathCount"]
1367        [::std::mem::offset_of!(SceShaccCgCompileOptions, searchPathCount) - 12usize];
1368    ["Offset of field: SceShaccCgCompileOptions::searchPaths"]
1369        [::std::mem::offset_of!(SceShaccCgCompileOptions, searchPaths) - 16usize];
1370    ["Offset of field: SceShaccCgCompileOptions::macroDefinitionCount"]
1371        [::std::mem::offset_of!(SceShaccCgCompileOptions, macroDefinitionCount) - 20usize];
1372    ["Offset of field: SceShaccCgCompileOptions::macroDefinitions"]
1373        [::std::mem::offset_of!(SceShaccCgCompileOptions, macroDefinitions) - 24usize];
1374    ["Offset of field: SceShaccCgCompileOptions::includeFileCount"]
1375        [::std::mem::offset_of!(SceShaccCgCompileOptions, includeFileCount) - 28usize];
1376    ["Offset of field: SceShaccCgCompileOptions::includeFiles"]
1377        [::std::mem::offset_of!(SceShaccCgCompileOptions, includeFiles) - 32usize];
1378    ["Offset of field: SceShaccCgCompileOptions::suppressedWarningsCount"]
1379        [::std::mem::offset_of!(SceShaccCgCompileOptions, suppressedWarningsCount) - 36usize];
1380    ["Offset of field: SceShaccCgCompileOptions::suppressedWarnings"]
1381        [::std::mem::offset_of!(SceShaccCgCompileOptions, suppressedWarnings) - 40usize];
1382    ["Offset of field: SceShaccCgCompileOptions::locale"]
1383        [::std::mem::offset_of!(SceShaccCgCompileOptions, locale) - 44usize];
1384    ["Offset of field: SceShaccCgCompileOptions::useFx"]
1385        [::std::mem::offset_of!(SceShaccCgCompileOptions, useFx) - 48usize];
1386    ["Offset of field: SceShaccCgCompileOptions::noStdlib"]
1387        [::std::mem::offset_of!(SceShaccCgCompileOptions, noStdlib) - 52usize];
1388    ["Offset of field: SceShaccCgCompileOptions::optimizationLevel"]
1389        [::std::mem::offset_of!(SceShaccCgCompileOptions, optimizationLevel) - 56usize];
1390    ["Offset of field: SceShaccCgCompileOptions::useFastmath"]
1391        [::std::mem::offset_of!(SceShaccCgCompileOptions, useFastmath) - 60usize];
1392    ["Offset of field: SceShaccCgCompileOptions::useFastprecision"]
1393        [::std::mem::offset_of!(SceShaccCgCompileOptions, useFastprecision) - 64usize];
1394    ["Offset of field: SceShaccCgCompileOptions::useFastint"]
1395        [::std::mem::offset_of!(SceShaccCgCompileOptions, useFastint) - 68usize];
1396    ["Offset of field: SceShaccCgCompileOptions::field_48"]
1397        [::std::mem::offset_of!(SceShaccCgCompileOptions, field_48) - 72usize];
1398    ["Offset of field: SceShaccCgCompileOptions::warningsAsErrors"]
1399        [::std::mem::offset_of!(SceShaccCgCompileOptions, warningsAsErrors) - 76usize];
1400    ["Offset of field: SceShaccCgCompileOptions::performanceWarnings"]
1401        [::std::mem::offset_of!(SceShaccCgCompileOptions, performanceWarnings) - 80usize];
1402    ["Offset of field: SceShaccCgCompileOptions::warningLevel"]
1403        [::std::mem::offset_of!(SceShaccCgCompileOptions, warningLevel) - 84usize];
1404    ["Offset of field: SceShaccCgCompileOptions::pedantic"]
1405        [::std::mem::offset_of!(SceShaccCgCompileOptions, pedantic) - 88usize];
1406    ["Offset of field: SceShaccCgCompileOptions::pedanticError"]
1407        [::std::mem::offset_of!(SceShaccCgCompileOptions, pedanticError) - 92usize];
1408    ["Offset of field: SceShaccCgCompileOptions::field_60"]
1409        [::std::mem::offset_of!(SceShaccCgCompileOptions, field_60) - 96usize];
1410    ["Offset of field: SceShaccCgCompileOptions::field_64"]
1411        [::std::mem::offset_of!(SceShaccCgCompileOptions, field_64) - 100usize];
1412};
1413#[repr(C)]
1414#[derive(Debug, Copy, Clone)]
1415pub struct SceShaccCgDiagnosticMessage {
1416    pub level: SceShaccCgDiagnosticLevel,
1417    pub code: SceUInt32,
1418    pub location: *const SceShaccCgSourceLocation,
1419    pub message: *const ::std::os::raw::c_char,
1420}
1421#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1422const _: () = {
1423    ["Size of SceShaccCgDiagnosticMessage"]
1424        [::std::mem::size_of::<SceShaccCgDiagnosticMessage>() - 16usize];
1425    ["Alignment of SceShaccCgDiagnosticMessage"]
1426        [::std::mem::align_of::<SceShaccCgDiagnosticMessage>() - 4usize];
1427    ["Offset of field: SceShaccCgDiagnosticMessage::level"]
1428        [::std::mem::offset_of!(SceShaccCgDiagnosticMessage, level) - 0usize];
1429    ["Offset of field: SceShaccCgDiagnosticMessage::code"]
1430        [::std::mem::offset_of!(SceShaccCgDiagnosticMessage, code) - 4usize];
1431    ["Offset of field: SceShaccCgDiagnosticMessage::location"]
1432        [::std::mem::offset_of!(SceShaccCgDiagnosticMessage, location) - 8usize];
1433    ["Offset of field: SceShaccCgDiagnosticMessage::message"]
1434        [::std::mem::offset_of!(SceShaccCgDiagnosticMessage, message) - 12usize];
1435};
1436#[repr(C)]
1437#[derive(Debug, Copy, Clone)]
1438pub struct SceShaccCgCompileOutput {
1439    pub programData: *const u8,
1440    pub programSize: SceUInt32,
1441    pub diagnosticCount: SceInt32,
1442    pub diagnostics: *const SceShaccCgDiagnosticMessage,
1443}
1444#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1445const _: () = {
1446    ["Size of SceShaccCgCompileOutput"][::std::mem::size_of::<SceShaccCgCompileOutput>() - 16usize];
1447    ["Alignment of SceShaccCgCompileOutput"]
1448        [::std::mem::align_of::<SceShaccCgCompileOutput>() - 4usize];
1449    ["Offset of field: SceShaccCgCompileOutput::programData"]
1450        [::std::mem::offset_of!(SceShaccCgCompileOutput, programData) - 0usize];
1451    ["Offset of field: SceShaccCgCompileOutput::programSize"]
1452        [::std::mem::offset_of!(SceShaccCgCompileOutput, programSize) - 4usize];
1453    ["Offset of field: SceShaccCgCompileOutput::diagnosticCount"]
1454        [::std::mem::offset_of!(SceShaccCgCompileOutput, diagnosticCount) - 8usize];
1455    ["Offset of field: SceShaccCgCompileOutput::diagnostics"]
1456        [::std::mem::offset_of!(SceShaccCgCompileOutput, diagnostics) - 12usize];
1457};
1458unsafe extern "C" {
1459    pub fn sceShaccCgInitializeCompileOptions(
1460        options: *mut SceShaccCgCompileOptions,
1461    ) -> ::std::os::raw::c_int;
1462}
1463unsafe extern "C" {
1464    pub fn sceShaccCgCompileProgram(
1465        options: *const SceShaccCgCompileOptions,
1466        callbacks: *const SceShaccCgCallbackList,
1467        unk: ::std::os::raw::c_int,
1468    ) -> *const SceShaccCgCompileOutput;
1469}
1470unsafe extern "C" {
1471    pub fn sceShaccCgSetDefaultAllocator(
1472        malloc_cb: ::std::option::Option<
1473            unsafe extern "C" fn(arg1: ::std::os::raw::c_uint) -> *mut ::std::os::raw::c_void,
1474        >,
1475        free_cb: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1476    ) -> ::std::os::raw::c_int;
1477}
1478unsafe extern "C" {
1479    pub fn sceShaccCgInitializeCallbackList(
1480        callbacks: *mut SceShaccCgCallbackList,
1481        defaults: SceShaccCgCallbackDefaults,
1482    );
1483}
1484unsafe extern "C" {
1485    pub fn sceShaccCgDestroyCompileOutput(output: *const SceShaccCgCompileOutput);
1486}
1487unsafe extern "C" {
1488    pub fn sceShaccCgReleaseCompiler();
1489}
1490unsafe extern "C" {
1491    pub fn sceShaccCgGetVersionString() -> *const ::std::os::raw::c_char;
1492}
1493pub const SceGxmErrorCode_SCE_GXM_ERROR_UNINITIALIZED: SceGxmErrorCode = 2153447424;
1494pub const SceGxmErrorCode_SCE_GXM_ERROR_ALREADY_INITIALIZED: SceGxmErrorCode = 2153447425;
1495pub const SceGxmErrorCode_SCE_GXM_ERROR_OUT_OF_MEMORY: SceGxmErrorCode = 2153447426;
1496pub const SceGxmErrorCode_SCE_GXM_ERROR_INVALID_VALUE: SceGxmErrorCode = 2153447427;
1497pub const SceGxmErrorCode_SCE_GXM_ERROR_INVALID_POINTER: SceGxmErrorCode = 2153447428;
1498pub const SceGxmErrorCode_SCE_GXM_ERROR_INVALID_ALIGNMENT: SceGxmErrorCode = 2153447429;
1499pub const SceGxmErrorCode_SCE_GXM_ERROR_NOT_WITHIN_SCENE: SceGxmErrorCode = 2153447430;
1500pub const SceGxmErrorCode_SCE_GXM_ERROR_WITHIN_SCENE: SceGxmErrorCode = 2153447431;
1501pub const SceGxmErrorCode_SCE_GXM_ERROR_NULL_PROGRAM: SceGxmErrorCode = 2153447432;
1502pub const SceGxmErrorCode_SCE_GXM_ERROR_UNSUPPORTED: SceGxmErrorCode = 2153447433;
1503pub const SceGxmErrorCode_SCE_GXM_ERROR_PATCHER_INTERNAL: SceGxmErrorCode = 2153447434;
1504pub const SceGxmErrorCode_SCE_GXM_ERROR_RESERVE_FAILED: SceGxmErrorCode = 2153447435;
1505pub const SceGxmErrorCode_SCE_GXM_ERROR_PROGRAM_IN_USE: SceGxmErrorCode = 2153447436;
1506pub const SceGxmErrorCode_SCE_GXM_ERROR_INVALID_INDEX_COUNT: SceGxmErrorCode = 2153447437;
1507pub const SceGxmErrorCode_SCE_GXM_ERROR_INVALID_POLYGON_MODE: SceGxmErrorCode = 2153447438;
1508pub const SceGxmErrorCode_SCE_GXM_ERROR_INVALID_SAMPLER_RESULT_TYPE_PRECISION: SceGxmErrorCode =
1509    2153447439;
1510pub const SceGxmErrorCode_SCE_GXM_ERROR_INVALID_SAMPLER_RESULT_TYPE_COMPONENT_COUNT:
1511    SceGxmErrorCode = 2153447440;
1512pub const SceGxmErrorCode_SCE_GXM_ERROR_UNIFORM_BUFFER_NOT_RESERVED: SceGxmErrorCode = 2153447441;
1513pub const SceGxmErrorCode_SCE_GXM_ERROR_INVALID_PRECOMPUTED_DRAW: SceGxmErrorCode = 2153447444;
1514pub const SceGxmErrorCode_SCE_GXM_ERROR_INVALID_PRECOMPUTED_VERTEX_STATE: SceGxmErrorCode =
1515    2153447445;
1516pub const SceGxmErrorCode_SCE_GXM_ERROR_INVALID_PRECOMPUTED_FRAGMENT_STATE: SceGxmErrorCode =
1517    2153447446;
1518pub const SceGxmErrorCode_SCE_GXM_ERROR_DRIVER: SceGxmErrorCode = 2153447447;
1519pub const SceGxmErrorCode_SCE_GXM_ERROR_INVALID_TEXTURE: SceGxmErrorCode = 2153447448;
1520pub const SceGxmErrorCode_SCE_GXM_ERROR_INVALID_TEXTURE_DATA_POINTER: SceGxmErrorCode = 2153447449;
1521pub const SceGxmErrorCode_SCE_GXM_ERROR_INVALID_TEXTURE_PALETTE_POINTER: SceGxmErrorCode =
1522    2153447450;
1523pub const SceGxmErrorCode_SCE_GXM_ERROR_OUT_OF_RENDER_TARGETS: SceGxmErrorCode = 2153447463;
1524#[doc = " sceGxm error codes."]
1525pub type SceGxmErrorCode = ::std::os::raw::c_uint;
1526pub type SceGxmDisplayQueueCallback =
1527    ::std::option::Option<unsafe extern "C" fn(callbackData: *const ::std::os::raw::c_void)>;
1528#[doc = "!< Default initialization flag."]
1529pub const SceGxmInitializeFlags_SCE_GXM_INITIALIZE_FLAG_DEFAULT: SceGxmInitializeFlags = 0;
1530#[doc = "!< Allocate the Parameter Buffer from MAIN LPDDR instead of CDRAM."]
1531pub const SceGxmInitializeFlags_SCE_GXM_INITIALIZE_FLAG_PB_LPDDR: SceGxmInitializeFlags = 1;
1532#[doc = "!< Enable support for shared sync objects."]
1533pub const SceGxmInitializeFlags_SCE_GXM_INITIALIZE_FLAG_SHARED_SYNC: SceGxmInitializeFlags = 2;
1534#[doc = "!< Create a shared parameter buffer."]
1535pub const SceGxmInitializeFlags_SCE_GXM_INITIALIZE_FLAG_SHAREDPB_CREATE: SceGxmInitializeFlags = 4;
1536#[doc = "!< Open a shared parameter buffer. Provided parameterBufferSize will function as a minimum required size."]
1537pub const SceGxmInitializeFlags_SCE_GXM_INITIALIZE_FLAG_SHAREDPB_OPEN: SceGxmInitializeFlags = 8;
1538#[doc = "!< Enable support for extended texture/color/pixel formats"]
1539pub const SceGxmInitializeFlags_SCE_GXM_INITIALIZE_FLAG_EXTENDED_FORMAT: SceGxmInitializeFlags = 16;
1540#[doc = "!< Start the display queue thread on core 1"]
1541pub const SceGxmInitializeFlags_SCE_GXM_INITIALIZE_FLAG_DISPLAY_QUEUE_THREAD_AFFINITY_CPU_1:
1542    SceGxmInitializeFlags = 65536;
1543#[doc = "!< Start the display queue thread on core 2"]
1544pub const SceGxmInitializeFlags_SCE_GXM_INITIALIZE_FLAG_DISPLAY_QUEUE_THREAD_AFFINITY_CPU_2:
1545    SceGxmInitializeFlags = 131072;
1546pub type SceGxmInitializeFlags = ::std::os::raw::c_uint;
1547#[repr(C)]
1548#[derive(Debug, Copy, Clone)]
1549pub struct SceGxmInitializeParams {
1550    #[doc = "!< One or more ::SceGxmInitializeFlags."]
1551    pub flags: ::std::os::raw::c_uint,
1552    #[doc = "!< Maximum number of allowed pending display swaps."]
1553    pub displayQueueMaxPendingCount: ::std::os::raw::c_uint,
1554    #[doc = "!< Callback used for performing display swap."]
1555    pub displayQueueCallback: SceGxmDisplayQueueCallback,
1556    #[doc = "!< Size (in bytes) of the data passed to the display swap callback."]
1557    pub displayQueueCallbackDataSize: ::std::os::raw::c_uint,
1558    #[doc = "!< Parameter buffer size (in bytes). Must be 0x40000 or higher."]
1559    pub parameterBufferSize: SceSize,
1560}
1561#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1562const _: () = {
1563    ["Size of SceGxmInitializeParams"][::std::mem::size_of::<SceGxmInitializeParams>() - 20usize];
1564    ["Alignment of SceGxmInitializeParams"]
1565        [::std::mem::align_of::<SceGxmInitializeParams>() - 4usize];
1566    ["Offset of field: SceGxmInitializeParams::flags"]
1567        [::std::mem::offset_of!(SceGxmInitializeParams, flags) - 0usize];
1568    ["Offset of field: SceGxmInitializeParams::displayQueueMaxPendingCount"]
1569        [::std::mem::offset_of!(SceGxmInitializeParams, displayQueueMaxPendingCount) - 4usize];
1570    ["Offset of field: SceGxmInitializeParams::displayQueueCallback"]
1571        [::std::mem::offset_of!(SceGxmInitializeParams, displayQueueCallback) - 8usize];
1572    ["Offset of field: SceGxmInitializeParams::displayQueueCallbackDataSize"]
1573        [::std::mem::offset_of!(SceGxmInitializeParams, displayQueueCallbackDataSize) - 12usize];
1574    ["Offset of field: SceGxmInitializeParams::parameterBufferSize"]
1575        [::std::mem::offset_of!(SceGxmInitializeParams, parameterBufferSize) - 16usize];
1576};
1577#[doc = "!< Memory region readable by the GPU."]
1578pub const SceGxmMemoryAttribFlags_SCE_GXM_MEMORY_ATTRIB_READ: SceGxmMemoryAttribFlags = 1;
1579#[doc = "!< Memory region writeable by the GPU."]
1580pub const SceGxmMemoryAttribFlags_SCE_GXM_MEMORY_ATTRIB_WRITE: SceGxmMemoryAttribFlags = 2;
1581#[doc = "!< Memory region both readable and writeable by the GPU."]
1582pub const SceGxmMemoryAttribFlags_SCE_GXM_MEMORY_ATTRIB_RW: SceGxmMemoryAttribFlags = 3;
1583#[doc = " Read/write memory attributes."]
1584pub type SceGxmMemoryAttribFlags = ::std::os::raw::c_uint;
1585#[doc = "!< 8-bit unsigned integer."]
1586pub const SceGxmAttributeFormat_SCE_GXM_ATTRIBUTE_FORMAT_U8: SceGxmAttributeFormat = 0;
1587#[doc = "!< 8-bit signed integer."]
1588pub const SceGxmAttributeFormat_SCE_GXM_ATTRIBUTE_FORMAT_S8: SceGxmAttributeFormat = 1;
1589#[doc = "!< 16-bit unsigned integer."]
1590pub const SceGxmAttributeFormat_SCE_GXM_ATTRIBUTE_FORMAT_U16: SceGxmAttributeFormat = 2;
1591#[doc = "!< 16-bit signed integer."]
1592pub const SceGxmAttributeFormat_SCE_GXM_ATTRIBUTE_FORMAT_S16: SceGxmAttributeFormat = 3;
1593#[doc = "!< 8-bit normalized unsigned integer."]
1594pub const SceGxmAttributeFormat_SCE_GXM_ATTRIBUTE_FORMAT_U8N: SceGxmAttributeFormat = 4;
1595#[doc = "!< 8-bit normalized signed integer."]
1596pub const SceGxmAttributeFormat_SCE_GXM_ATTRIBUTE_FORMAT_S8N: SceGxmAttributeFormat = 5;
1597#[doc = "!< 16-bit normalized unsigned integer."]
1598pub const SceGxmAttributeFormat_SCE_GXM_ATTRIBUTE_FORMAT_U16N: SceGxmAttributeFormat = 6;
1599#[doc = "!< 16-bit normalized signed integer."]
1600pub const SceGxmAttributeFormat_SCE_GXM_ATTRIBUTE_FORMAT_S16N: SceGxmAttributeFormat = 7;
1601#[doc = "!< 16-bit half-float."]
1602pub const SceGxmAttributeFormat_SCE_GXM_ATTRIBUTE_FORMAT_F16: SceGxmAttributeFormat = 8;
1603#[doc = "!< 32-bit float."]
1604pub const SceGxmAttributeFormat_SCE_GXM_ATTRIBUTE_FORMAT_F32: SceGxmAttributeFormat = 9;
1605#[doc = "!< Typeless."]
1606pub const SceGxmAttributeFormat_SCE_GXM_ATTRIBUTE_FORMAT_UNTYPED: SceGxmAttributeFormat = 10;
1607#[doc = " Vertex attribute input formats."]
1608pub type SceGxmAttributeFormat = ::std::os::raw::c_uint;
1609#[doc = "!< 32-bit floating point depth surface."]
1610pub const SceGxmDepthStencilFormat_SCE_GXM_DEPTH_STENCIL_FORMAT_DF32: SceGxmDepthStencilFormat =
1611    278528;
1612#[doc = "!< 8-bit integer stencil surface."]
1613pub const SceGxmDepthStencilFormat_SCE_GXM_DEPTH_STENCIL_FORMAT_S8: SceGxmDepthStencilFormat =
1614    139264;
1615#[doc = "!< 32-bit floating point depth surface and 8-bit integer stencil surface."]
1616pub const SceGxmDepthStencilFormat_SCE_GXM_DEPTH_STENCIL_FORMAT_DF32_S8: SceGxmDepthStencilFormat =
1617    417792;
1618#[doc = "!< 32-bit floating point depth surface with one bit reserved for mask update."]
1619pub const SceGxmDepthStencilFormat_SCE_GXM_DEPTH_STENCIL_FORMAT_DF32M: SceGxmDepthStencilFormat =
1620    835584;
1621#[doc = "!< 32-bit floating point depth surface with one bit reserved for mask update and 8-bit integer stencil surface."]
1622pub const SceGxmDepthStencilFormat_SCE_GXM_DEPTH_STENCIL_FORMAT_DF32M_S8: SceGxmDepthStencilFormat =
1623    974848;
1624#[doc = "!< Packed 8-bit integer stencil and 24-bit integer depth surfaces."]
1625pub const SceGxmDepthStencilFormat_SCE_GXM_DEPTH_STENCIL_FORMAT_S8D24: SceGxmDepthStencilFormat =
1626    19292160;
1627#[doc = "!< 16-bit integer depth surface."]
1628pub const SceGxmDepthStencilFormat_SCE_GXM_DEPTH_STENCIL_FORMAT_D16: SceGxmDepthStencilFormat =
1629    38027264;
1630#[doc = " Depth/stencil surface formats."]
1631pub type SceGxmDepthStencilFormat = ::std::os::raw::c_uint;
1632#[doc = "!< Triangles primitive."]
1633pub const SceGxmPrimitiveType_SCE_GXM_PRIMITIVE_TRIANGLES: SceGxmPrimitiveType = 0;
1634#[doc = "!< Lines primitive."]
1635pub const SceGxmPrimitiveType_SCE_GXM_PRIMITIVE_LINES: SceGxmPrimitiveType = 67108864;
1636#[doc = "!< Points primitive."]
1637pub const SceGxmPrimitiveType_SCE_GXM_PRIMITIVE_POINTS: SceGxmPrimitiveType = 134217728;
1638#[doc = "!< Triangle strips primitive."]
1639pub const SceGxmPrimitiveType_SCE_GXM_PRIMITIVE_TRIANGLE_STRIP: SceGxmPrimitiveType = 201326592;
1640#[doc = "!< Triangle fans primitive."]
1641pub const SceGxmPrimitiveType_SCE_GXM_PRIMITIVE_TRIANGLE_FAN: SceGxmPrimitiveType = 268435456;
1642#[doc = "!< Triangle edges primitive."]
1643pub const SceGxmPrimitiveType_SCE_GXM_PRIMITIVE_TRIANGLE_EDGES: SceGxmPrimitiveType = 335544320;
1644#[doc = " Draw primitives."]
1645pub type SceGxmPrimitiveType = ::std::os::raw::c_uint;
1646pub const SceGxmEdgeEnableFlags_SCE_GXM_EDGE_ENABLE_01: SceGxmEdgeEnableFlags = 256;
1647pub const SceGxmEdgeEnableFlags_SCE_GXM_EDGE_ENABLE_12: SceGxmEdgeEnableFlags = 512;
1648pub const SceGxmEdgeEnableFlags_SCE_GXM_EDGE_ENABLE_20: SceGxmEdgeEnableFlags = 1024;
1649pub type SceGxmEdgeEnableFlags = ::std::os::raw::c_uint;
1650#[doc = "!< Disable tiles clipping."]
1651pub const SceGxmRegionClipMode_SCE_GXM_REGION_CLIP_NONE: SceGxmRegionClipMode = 0;
1652#[doc = "!< Clip tiles inside and outside the region."]
1653pub const SceGxmRegionClipMode_SCE_GXM_REGION_CLIP_ALL: SceGxmRegionClipMode = 1073741824;
1654#[doc = "!< Clip tiles inside the region."]
1655pub const SceGxmRegionClipMode_SCE_GXM_REGION_CLIP_OUTSIDE: SceGxmRegionClipMode = 2147483648;
1656#[doc = "!< Clip tiles outside the region."]
1657pub const SceGxmRegionClipMode_SCE_GXM_REGION_CLIP_INSIDE: SceGxmRegionClipMode = 3221225472;
1658#[doc = " Hardware clipping modes."]
1659pub type SceGxmRegionClipMode = ::std::os::raw::c_uint;
1660#[doc = "!< Depth test never passes."]
1661pub const SceGxmDepthFunc_SCE_GXM_DEPTH_FUNC_NEVER: SceGxmDepthFunc = 0;
1662#[doc = "!< Depth test passes when fragment depth is less than the current stored value."]
1663pub const SceGxmDepthFunc_SCE_GXM_DEPTH_FUNC_LESS: SceGxmDepthFunc = 4194304;
1664#[doc = "!< Depth test passes when fragment depth is equal to the current stored value."]
1665pub const SceGxmDepthFunc_SCE_GXM_DEPTH_FUNC_EQUAL: SceGxmDepthFunc = 8388608;
1666#[doc = "!< Depth test passes when fragment depth is less or equal than the current stored value."]
1667pub const SceGxmDepthFunc_SCE_GXM_DEPTH_FUNC_LESS_EQUAL: SceGxmDepthFunc = 12582912;
1668#[doc = "!< Depth test passes when fragment depth is greater than the current stored value."]
1669pub const SceGxmDepthFunc_SCE_GXM_DEPTH_FUNC_GREATER: SceGxmDepthFunc = 16777216;
1670#[doc = "!< Depth test passes when fragment depth is not equal to the current stored value."]
1671pub const SceGxmDepthFunc_SCE_GXM_DEPTH_FUNC_NOT_EQUAL: SceGxmDepthFunc = 20971520;
1672#[doc = "!< Depth test passes when fragment depth is greater or equal than the current stored value."]
1673pub const SceGxmDepthFunc_SCE_GXM_DEPTH_FUNC_GREATER_EQUAL: SceGxmDepthFunc = 25165824;
1674#[doc = "!< Depth test always passes."]
1675pub const SceGxmDepthFunc_SCE_GXM_DEPTH_FUNC_ALWAYS: SceGxmDepthFunc = 29360128;
1676#[doc = " Depth test functions."]
1677pub type SceGxmDepthFunc = ::std::os::raw::c_uint;
1678#[doc = "!< Stencil test never passes."]
1679pub const SceGxmStencilFunc_SCE_GXM_STENCIL_FUNC_NEVER: SceGxmStencilFunc = 0;
1680#[doc = "!< Stencil test passes when fragment stencil value is less than the current stored value."]
1681pub const SceGxmStencilFunc_SCE_GXM_STENCIL_FUNC_LESS: SceGxmStencilFunc = 33554432;
1682#[doc = "!< Stencil test passes when fragment stencil value is equal to the current stored value."]
1683pub const SceGxmStencilFunc_SCE_GXM_STENCIL_FUNC_EQUAL: SceGxmStencilFunc = 67108864;
1684#[doc = "!< Stencil test passes when fragment stencil value is less or equal than the current stored value."]
1685pub const SceGxmStencilFunc_SCE_GXM_STENCIL_FUNC_LESS_EQUAL: SceGxmStencilFunc = 100663296;
1686#[doc = "!< Stencil test passes when fragment stencil value is greater than the current stored value."]
1687pub const SceGxmStencilFunc_SCE_GXM_STENCIL_FUNC_GREATER: SceGxmStencilFunc = 134217728;
1688#[doc = "!< Stencil test passes when fragment stencil value is not equal to the current stored value."]
1689pub const SceGxmStencilFunc_SCE_GXM_STENCIL_FUNC_NOT_EQUAL: SceGxmStencilFunc = 167772160;
1690#[doc = "!< Stencil test passes when fragment stencil value is greater or equal than the current stored value."]
1691pub const SceGxmStencilFunc_SCE_GXM_STENCIL_FUNC_GREATER_EQUAL: SceGxmStencilFunc = 201326592;
1692#[doc = "!< Stencil test always passes."]
1693pub const SceGxmStencilFunc_SCE_GXM_STENCIL_FUNC_ALWAYS: SceGxmStencilFunc = 234881024;
1694#[doc = " Stencil test functions."]
1695pub type SceGxmStencilFunc = ::std::os::raw::c_uint;
1696#[doc = "!< Keep the current stored value."]
1697pub const SceGxmStencilOp_SCE_GXM_STENCIL_OP_KEEP: SceGxmStencilOp = 0;
1698#[doc = "!< Set the current stored value to 0."]
1699pub const SceGxmStencilOp_SCE_GXM_STENCIL_OP_ZERO: SceGxmStencilOp = 1;
1700#[doc = "!< Replace the current stored value with the fragment value."]
1701pub const SceGxmStencilOp_SCE_GXM_STENCIL_OP_REPLACE: SceGxmStencilOp = 2;
1702#[doc = "!< Increment the current stored value by 1."]
1703pub const SceGxmStencilOp_SCE_GXM_STENCIL_OP_INCR: SceGxmStencilOp = 3;
1704#[doc = "!< Decrement the current stored value by 1."]
1705pub const SceGxmStencilOp_SCE_GXM_STENCIL_OP_DECR: SceGxmStencilOp = 4;
1706#[doc = "!< Bitwise flip the current stored value."]
1707pub const SceGxmStencilOp_SCE_GXM_STENCIL_OP_INVERT: SceGxmStencilOp = 5;
1708#[doc = "!< Increment the current stored value by 1 with wrapping in the 0-255 range."]
1709pub const SceGxmStencilOp_SCE_GXM_STENCIL_OP_INCR_WRAP: SceGxmStencilOp = 6;
1710#[doc = "!< Decrement the current stored value by 1 with wrapping in the 0-255 range."]
1711pub const SceGxmStencilOp_SCE_GXM_STENCIL_OP_DECR_WRAP: SceGxmStencilOp = 7;
1712#[doc = " Stencil test operations."]
1713pub type SceGxmStencilOp = ::std::os::raw::c_uint;
1714#[doc = "!< Disable hardware culling."]
1715pub const SceGxmCullMode_SCE_GXM_CULL_NONE: SceGxmCullMode = 0;
1716#[doc = "!< Clockwise hardware culling."]
1717pub const SceGxmCullMode_SCE_GXM_CULL_CW: SceGxmCullMode = 1;
1718#[doc = "!< Counter-clockwise hardware culling."]
1719pub const SceGxmCullMode_SCE_GXM_CULL_CCW: SceGxmCullMode = 2;
1720#[doc = " Hardware culling modes."]
1721pub type SceGxmCullMode = ::std::os::raw::c_uint;
1722pub const SceGxmPassType_SCE_GXM_PASS_TYPE_OPAQUE: SceGxmPassType = 0;
1723pub const SceGxmPassType_SCE_GXM_PASS_TYPE_TRANSLUCENT: SceGxmPassType = 33554432;
1724pub const SceGxmPassType_SCE_GXM_PASS_TYPE_DISCARD: SceGxmPassType = 67108864;
1725pub const SceGxmPassType_SCE_GXM_PASS_TYPE_MASK_UPDATE: SceGxmPassType = 100663296;
1726pub const SceGxmPassType_SCE_GXM_PASS_TYPE_DEPTH_REPLACE: SceGxmPassType = 167772160;
1727pub type SceGxmPassType = ::std::os::raw::c_uint;
1728pub const SceGxmPolygonMode_SCE_GXM_POLYGON_MODE_TRIANGLE_FILL: SceGxmPolygonMode = 0;
1729pub const SceGxmPolygonMode_SCE_GXM_POLYGON_MODE_LINE: SceGxmPolygonMode = 32768;
1730pub const SceGxmPolygonMode_SCE_GXM_POLYGON_MODE_POINT_10UV: SceGxmPolygonMode = 65536;
1731pub const SceGxmPolygonMode_SCE_GXM_POLYGON_MODE_POINT: SceGxmPolygonMode = 98304;
1732pub const SceGxmPolygonMode_SCE_GXM_POLYGON_MODE_POINT_01UV: SceGxmPolygonMode = 131072;
1733pub const SceGxmPolygonMode_SCE_GXM_POLYGON_MODE_TRIANGLE_LINE: SceGxmPolygonMode = 163840;
1734pub const SceGxmPolygonMode_SCE_GXM_POLYGON_MODE_TRIANGLE_POINT: SceGxmPolygonMode = 196608;
1735pub type SceGxmPolygonMode = ::std::os::raw::c_uint;
1736pub const SceGxmColorSwizzle4Mode_SCE_GXM_COLOR_SWIZZLE4_ABGR: SceGxmColorSwizzle4Mode = 0;
1737pub const SceGxmColorSwizzle4Mode_SCE_GXM_COLOR_SWIZZLE4_ARGB: SceGxmColorSwizzle4Mode = 1048576;
1738pub const SceGxmColorSwizzle4Mode_SCE_GXM_COLOR_SWIZZLE4_RGBA: SceGxmColorSwizzle4Mode = 2097152;
1739pub const SceGxmColorSwizzle4Mode_SCE_GXM_COLOR_SWIZZLE4_BGRA: SceGxmColorSwizzle4Mode = 3145728;
1740pub type SceGxmColorSwizzle4Mode = ::std::os::raw::c_uint;
1741pub const SceGxmColorSwizzle3Mode_SCE_GXM_COLOR_SWIZZLE3_BGR: SceGxmColorSwizzle3Mode = 0;
1742pub const SceGxmColorSwizzle3Mode_SCE_GXM_COLOR_SWIZZLE3_RGB: SceGxmColorSwizzle3Mode = 1048576;
1743pub type SceGxmColorSwizzle3Mode = ::std::os::raw::c_uint;
1744pub const SceGxmColorSwizzle2Mode_SCE_GXM_COLOR_SWIZZLE2_GR: SceGxmColorSwizzle2Mode = 0;
1745pub const SceGxmColorSwizzle2Mode_SCE_GXM_COLOR_SWIZZLE2_RG: SceGxmColorSwizzle2Mode = 1048576;
1746pub const SceGxmColorSwizzle2Mode_SCE_GXM_COLOR_SWIZZLE2_RA: SceGxmColorSwizzle2Mode = 2097152;
1747pub const SceGxmColorSwizzle2Mode_SCE_GXM_COLOR_SWIZZLE2_AR: SceGxmColorSwizzle2Mode = 3145728;
1748pub type SceGxmColorSwizzle2Mode = ::std::os::raw::c_uint;
1749pub const SceGxmColorSwizzle1Mode_SCE_GXM_COLOR_SWIZZLE1_R: SceGxmColorSwizzle1Mode = 0;
1750pub const SceGxmColorSwizzle1Mode_SCE_GXM_COLOR_SWIZZLE1_G: SceGxmColorSwizzle1Mode = 1048576;
1751pub const SceGxmColorSwizzle1Mode_SCE_GXM_COLOR_SWIZZLE1_A: SceGxmColorSwizzle1Mode = 1048576;
1752pub type SceGxmColorSwizzle1Mode = ::std::os::raw::c_uint;
1753pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_U8U8U8U8: SceGxmColorBaseFormat = 0;
1754pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_U8U8U8: SceGxmColorBaseFormat = 268435456;
1755pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_U5U6U5: SceGxmColorBaseFormat = 805306368;
1756pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_U1U5U5U5: SceGxmColorBaseFormat =
1757    1073741824;
1758pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_U4U4U4U4: SceGxmColorBaseFormat =
1759    1342177280;
1760pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_U8U3U3U2: SceGxmColorBaseFormat =
1761    1610612736;
1762pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_F16: SceGxmColorBaseFormat = 4026531840;
1763pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_F16F16: SceGxmColorBaseFormat = 8388608;
1764pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_F32: SceGxmColorBaseFormat = 276824064;
1765pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_S16: SceGxmColorBaseFormat = 545259520;
1766pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_S16S16: SceGxmColorBaseFormat = 813694976;
1767pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_U16: SceGxmColorBaseFormat = 1082130432;
1768pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_U16U16: SceGxmColorBaseFormat =
1769    1350565888;
1770pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_U2U10U10U10: SceGxmColorBaseFormat =
1771    1619001344;
1772pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_U8: SceGxmColorBaseFormat = 2155872256;
1773pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_S8: SceGxmColorBaseFormat = 2424307712;
1774pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_S5S5U6: SceGxmColorBaseFormat =
1775    2692743168;
1776pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_U8U8: SceGxmColorBaseFormat = 2961178624;
1777pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_S8S8: SceGxmColorBaseFormat = 3229614080;
1778pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_U8S8S8U8: SceGxmColorBaseFormat =
1779    3498049536;
1780pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_S8S8S8S8: SceGxmColorBaseFormat =
1781    3766484992;
1782pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_F16F16F16F16: SceGxmColorBaseFormat =
1783    16777216;
1784pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_F32F32: SceGxmColorBaseFormat = 285212672;
1785pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_F11F11F10: SceGxmColorBaseFormat =
1786    553648128;
1787pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_SE5M9M9M9: SceGxmColorBaseFormat =
1788    822083584;
1789pub const SceGxmColorBaseFormat_SCE_GXM_COLOR_BASE_FORMAT_U2F10F10F10: SceGxmColorBaseFormat =
1790    1090519040;
1791#[doc = " Color surfaces base formats."]
1792pub type SceGxmColorBaseFormat = ::std::os::raw::c_uint;
1793#[doc = "!< 32-bit unsigned ABGR color format."]
1794pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8U8U8U8_ABGR: SceGxmColorFormat = 0;
1795#[doc = "!< 32-bit unsigned ARGB color format."]
1796pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8U8U8U8_ARGB: SceGxmColorFormat = 1048576;
1797#[doc = "!< 32-bit unsigned RGBA color format."]
1798pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8U8U8U8_RGBA: SceGxmColorFormat = 2097152;
1799#[doc = "!< 32-bit unsigned BGRA color format."]
1800pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8U8U8U8_BGRA: SceGxmColorFormat = 3145728;
1801#[doc = "!< 24-bit unsigned BGR color format."]
1802pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8U8U8_BGR: SceGxmColorFormat = 268435456;
1803#[doc = "!< 24-bit unsigned RGB color format."]
1804pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8U8U8_RGB: SceGxmColorFormat = 269484032;
1805#[doc = "!< 16-bit unsigned BGR565 color format."]
1806pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U5U6U5_BGR: SceGxmColorFormat = 805306368;
1807#[doc = "!< 16-bit unsigned RGB565 color format."]
1808pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U5U6U5_RGB: SceGxmColorFormat = 806354944;
1809#[doc = "!< 16-bit unsigned ABGR1555 color format."]
1810pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U1U5U5U5_ABGR: SceGxmColorFormat = 1073741824;
1811#[doc = "!< 16-bit unsigned ARGB1555 color format."]
1812pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U1U5U5U5_ARGB: SceGxmColorFormat = 1074790400;
1813#[doc = "!< 16-bit unsigned RGBA5551 color format."]
1814pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U5U5U5U1_RGBA: SceGxmColorFormat = 1075838976;
1815#[doc = "!< 16-bit unsigned BGRA5551 color format."]
1816pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U5U5U5U1_BGRA: SceGxmColorFormat = 1076887552;
1817#[doc = "!< 16-bit unsigned ABGR4444 color format."]
1818pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U4U4U4U4_ABGR: SceGxmColorFormat = 1342177280;
1819#[doc = "!< 16-bit unsigned ARGB4444 color format."]
1820pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U4U4U4U4_ARGB: SceGxmColorFormat = 1343225856;
1821#[doc = "!< 16-bit unsigned RGBA4444 color format."]
1822pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U4U4U4U4_RGBA: SceGxmColorFormat = 1344274432;
1823#[doc = "!< 16-bit unsigned BGRA4444 color format."]
1824pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U4U4U4U4_BGRA: SceGxmColorFormat = 1345323008;
1825#[doc = "!< 16-bit unsigned ARGB8332 color format."]
1826pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8U3U3U2_ARGB: SceGxmColorFormat = 1610612736;
1827#[doc = "!< 16-bit half-float R color format."]
1828pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F16_R: SceGxmColorFormat = 4026531840;
1829#[doc = "!< 16-bit half-float G color format."]
1830pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F16_G: SceGxmColorFormat = 4027580416;
1831#[doc = "!< 32-bit half-float GR color format."]
1832pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F16F16_GR: SceGxmColorFormat = 8388608;
1833#[doc = "!< 32-bit half-float RG color format."]
1834pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F16F16_RG: SceGxmColorFormat = 9437184;
1835#[doc = "!< 32-bit float R color format."]
1836pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F32_R: SceGxmColorFormat = 276824064;
1837#[doc = "!< 16-bit signed R color format."]
1838pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S16_R: SceGxmColorFormat = 545259520;
1839#[doc = "!< 16-bit signed G color format."]
1840pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S16_G: SceGxmColorFormat = 546308096;
1841#[doc = "!< 32-bit signed G16R16 color format."]
1842pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S16S16_GR: SceGxmColorFormat = 813694976;
1843#[doc = "!< 32-bit signed R16G16 color format."]
1844pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S16S16_RG: SceGxmColorFormat = 814743552;
1845#[doc = "!< 16-bit unsigned R16 color format."]
1846pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U16_R: SceGxmColorFormat = 1082130432;
1847#[doc = "!< 16-bit unsigned G16 color format."]
1848pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U16_G: SceGxmColorFormat = 1083179008;
1849#[doc = "!< 32-bit unsigned G16R16 color format."]
1850pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U16U16_GR: SceGxmColorFormat = 1350565888;
1851#[doc = "!< 32-bit unsigned R16G16 color format."]
1852pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U16U16_RG: SceGxmColorFormat = 1351614464;
1853#[doc = "!< 32-bit unsigned A2B10G10R10 color format."]
1854pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U2U10U10U10_ABGR: SceGxmColorFormat = 1619001344;
1855#[doc = "!< 32-bit unsigned A2R10G10B10 color format."]
1856pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U2U10U10U10_ARGB: SceGxmColorFormat = 1620049920;
1857#[doc = "!< 32-bit unsigned R10G10B10A2 color format."]
1858pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U10U10U10U2_RGBA: SceGxmColorFormat = 1621098496;
1859#[doc = "!< 32-bit unsigned B10G10R10A2 color format."]
1860pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U10U10U10U2_BGRA: SceGxmColorFormat = 1622147072;
1861#[doc = "!< 8-bit unsigned R color format."]
1862pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8_R: SceGxmColorFormat = 2155872256;
1863#[doc = "!< 8-bit unsigned A color format."]
1864pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8_A: SceGxmColorFormat = 2156920832;
1865#[doc = "!< 8-bit signed R color format."]
1866pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S8_R: SceGxmColorFormat = 2424307712;
1867#[doc = "!< 8-bit signed A color format."]
1868pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S8_A: SceGxmColorFormat = 2425356288;
1869#[doc = "!< 16-bit signed BGR556 with unsigned blue channel color format."]
1870pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U6S5S5_BGR: SceGxmColorFormat = 2692743168;
1871#[doc = "!< 16-bit signed RGB655 with unsigned blue channel color format."]
1872pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S5S5U6_RGB: SceGxmColorFormat = 2693791744;
1873#[doc = "!< 16-bit unsigned GR88 color format."]
1874pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8U8_GR: SceGxmColorFormat = 2961178624;
1875#[doc = "!< 16-bit unsigned RG88 color format."]
1876pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8U8_RG: SceGxmColorFormat = 2962227200;
1877#[doc = "!< 16-bit unsigned RA88 color format."]
1878pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8U8_RA: SceGxmColorFormat = 2963275776;
1879#[doc = "!< 16-bit unsigned AR88 color format."]
1880pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8U8_AR: SceGxmColorFormat = 2964324352;
1881#[doc = "!< 16-bit signed GR88 color format."]
1882pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S8S8_GR: SceGxmColorFormat = 3229614080;
1883#[doc = "!< 16-bit signed RG88 color format."]
1884pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S8S8_RG: SceGxmColorFormat = 3230662656;
1885#[doc = "!< 16-bit signed RA88 color format."]
1886pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S8S8_RA: SceGxmColorFormat = 3231711232;
1887#[doc = "!< 16-bit signed AR88 color format."]
1888pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S8S8_AR: SceGxmColorFormat = 3232759808;
1889#[doc = "!< 32-bit unsigned ABGR8888 with signed blue and green channels color format."]
1890pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8S8S8U8_ABGR: SceGxmColorFormat = 3498049536;
1891#[doc = "!< 32-bit unsigned ARGB8888 with signed blue and green channels color format."]
1892pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8U8S8S8_ARGB: SceGxmColorFormat = 3499098112;
1893#[doc = "!< 32-bit unsigned RGBA8888 with signed blue and green channels color format."]
1894pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U8S8S8U8_RGBA: SceGxmColorFormat = 3500146688;
1895#[doc = "!< 32-bit unsigned BGRA8888 with signed blue and green channels color format."]
1896pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S8S8U8U8_BGRA: SceGxmColorFormat = 3501195264;
1897#[doc = "!< 32-bit signed ABGR8888 color format."]
1898pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S8S8S8S8_ABGR: SceGxmColorFormat = 3766484992;
1899#[doc = "!< 32-bit signed ARGB8888 color format."]
1900pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S8S8S8S8_ARGB: SceGxmColorFormat = 3767533568;
1901#[doc = "!< 32-bit signed RGBA8888 color format."]
1902pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S8S8S8S8_RGBA: SceGxmColorFormat = 3768582144;
1903#[doc = "!< 32-bit signed BGRA8888 color format."]
1904pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_S8S8S8S8_BGRA: SceGxmColorFormat = 3769630720;
1905#[doc = "!< 64-bit half-float ABGR color format."]
1906pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F16F16F16F16_ABGR: SceGxmColorFormat = 16777216;
1907#[doc = "!< 64-bit half-float ARGB color format."]
1908pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F16F16F16F16_ARGB: SceGxmColorFormat = 17825792;
1909#[doc = "!< 64-bit half-float RGBA color format."]
1910pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F16F16F16F16_RGBA: SceGxmColorFormat = 18874368;
1911#[doc = "!< 64-bit half-float BGRA color format."]
1912pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F16F16F16F16_BGRA: SceGxmColorFormat = 19922944;
1913#[doc = "!< 64-bit float GR color format."]
1914pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F32F32_GR: SceGxmColorFormat = 285212672;
1915#[doc = "!< 64-bit float RG color format."]
1916pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F32F32_RG: SceGxmColorFormat = 286261248;
1917#[doc = "!< 32-bit packed floating point B10G11R11 color format."]
1918pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F10F11F11_BGR: SceGxmColorFormat = 553648128;
1919#[doc = "!< 32-bit packed floating point R11G11B10 color format."]
1920pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F11F11F10_RGB: SceGxmColorFormat = 554696704;
1921#[doc = "!< 32-bit packed floats with 5-bit shared exponent and 9-bit mantissa BGR color format."]
1922pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_SE5M9M9M9_BGR: SceGxmColorFormat = 822083584;
1923#[doc = "!< 32-bit packed floats with 5-bit shared exponent and 9-bit mantissa RGB color format."]
1924pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_SE5M9M9M9_RGB: SceGxmColorFormat = 823132160;
1925#[doc = "!< 32-bit packed 2-bit unsigned integer A and 10-bit BGR floats color format."]
1926pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U2F10F10F10_ABGR: SceGxmColorFormat = 1090519040;
1927#[doc = "!< 32-bit packed 2-bit unsigned integer A and 10-bit RGB floats color format."]
1928pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_U2F10F10F10_ARGB: SceGxmColorFormat = 1091567616;
1929#[doc = "!< 32-bit packed 10-bit RGB floats and 2-bit unsigned integer A color format."]
1930pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F10F10F10U2_RGBA: SceGxmColorFormat = 1092616192;
1931#[doc = "!< 32-bit packed 10-bit BGR floats and 2-bit unsigned integer A color format."]
1932pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_F10F10F10U2_BGRA: SceGxmColorFormat = 1093664768;
1933#[doc = "!< 32-bit unsigned ABGR color format (Legacy naming)."]
1934pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_A8B8G8R8: SceGxmColorFormat = 0;
1935#[doc = "!< 32-bit unsigned ARGB color format (Legacy naming)."]
1936pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_A8R8G8B8: SceGxmColorFormat = 1048576;
1937#[doc = "!< 16-bit unsigned RGB565 color format (Legacy naming)."]
1938pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_R5G6B5: SceGxmColorFormat = 806354944;
1939#[doc = "!< 16-bit unsigned ARGB1555 color format (Legacy naming)."]
1940pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_A1R5G5B5: SceGxmColorFormat = 1074790400;
1941#[doc = "!< 16-bit unsigned ARGB4444 color format (Legacy naming)."]
1942pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_A4R4G4B4: SceGxmColorFormat = 1343225856;
1943#[doc = "!< 8-bit unsigned A color format (Legacy naming)."]
1944pub const SceGxmColorFormat_SCE_GXM_COLOR_FORMAT_A8: SceGxmColorFormat = 2156920832;
1945#[doc = " Color surfaces formats."]
1946pub type SceGxmColorFormat = ::std::os::raw::c_uint;
1947#[doc = "!< Linear memory layout."]
1948pub const SceGxmColorSurfaceType_SCE_GXM_COLOR_SURFACE_LINEAR: SceGxmColorSurfaceType = 0;
1949#[doc = "!< Tiled memory layout."]
1950pub const SceGxmColorSurfaceType_SCE_GXM_COLOR_SURFACE_TILED: SceGxmColorSurfaceType = 67108864;
1951#[doc = "!< Swizzled memory layout."]
1952pub const SceGxmColorSurfaceType_SCE_GXM_COLOR_SURFACE_SWIZZLED: SceGxmColorSurfaceType = 134217728;
1953#[doc = " Color surfaces memory layouts."]
1954pub type SceGxmColorSurfaceType = ::std::os::raw::c_uint;
1955pub const SceGxmColorSurfaceGammaMode_SCE_GXM_COLOR_SURFACE_GAMMA_NONE:
1956    SceGxmColorSurfaceGammaMode = 0;
1957pub const SceGxmColorSurfaceGammaMode_SCE_GXM_COLOR_SURFACE_GAMMA_R: SceGxmColorSurfaceGammaMode =
1958    4096;
1959pub const SceGxmColorSurfaceGammaMode_SCE_GXM_COLOR_SURFACE_GAMMA_GR: SceGxmColorSurfaceGammaMode =
1960    12288;
1961pub const SceGxmColorSurfaceGammaMode_SCE_GXM_COLOR_SURFACE_GAMMA_BGR: SceGxmColorSurfaceGammaMode =
1962    4096;
1963pub type SceGxmColorSurfaceGammaMode = ::std::os::raw::c_uint;
1964#[doc = "!< Dithering disabled."]
1965pub const SceGxmColorSurfaceDitherMode_SCE_GXM_COLOR_SURFACE_DITHER_DISABLED:
1966    SceGxmColorSurfaceDitherMode = 0;
1967#[doc = "!< Dithering enabled."]
1968pub const SceGxmColorSurfaceDitherMode_SCE_GXM_COLOR_SURFACE_DITHER_ENABLED:
1969    SceGxmColorSurfaceDitherMode = 8;
1970#[doc = " Color surfaces dithering mode."]
1971pub type SceGxmColorSurfaceDitherMode = ::std::os::raw::c_uint;
1972#[doc = "!< Linear memory layout."]
1973pub const SceGxmDepthStencilSurfaceType_SCE_GXM_DEPTH_STENCIL_SURFACE_LINEAR:
1974    SceGxmDepthStencilSurfaceType = 0;
1975#[doc = "!< Tiled memory layout."]
1976pub const SceGxmDepthStencilSurfaceType_SCE_GXM_DEPTH_STENCIL_SURFACE_TILED:
1977    SceGxmDepthStencilSurfaceType = 69632;
1978#[doc = " Depth/stencil surface memory layouts."]
1979pub type SceGxmDepthStencilSurfaceType = ::std::os::raw::c_uint;
1980pub const SceGxmOutputRegisterFormat_SCE_GXM_OUTPUT_REGISTER_FORMAT_DECLARED:
1981    SceGxmOutputRegisterFormat = 0;
1982pub const SceGxmOutputRegisterFormat_SCE_GXM_OUTPUT_REGISTER_FORMAT_UCHAR4:
1983    SceGxmOutputRegisterFormat = 1;
1984pub const SceGxmOutputRegisterFormat_SCE_GXM_OUTPUT_REGISTER_FORMAT_CHAR4:
1985    SceGxmOutputRegisterFormat = 2;
1986pub const SceGxmOutputRegisterFormat_SCE_GXM_OUTPUT_REGISTER_FORMAT_USHORT2:
1987    SceGxmOutputRegisterFormat = 3;
1988pub const SceGxmOutputRegisterFormat_SCE_GXM_OUTPUT_REGISTER_FORMAT_SHORT2:
1989    SceGxmOutputRegisterFormat = 4;
1990pub const SceGxmOutputRegisterFormat_SCE_GXM_OUTPUT_REGISTER_FORMAT_HALF4:
1991    SceGxmOutputRegisterFormat = 5;
1992pub const SceGxmOutputRegisterFormat_SCE_GXM_OUTPUT_REGISTER_FORMAT_HALF2:
1993    SceGxmOutputRegisterFormat = 6;
1994pub const SceGxmOutputRegisterFormat_SCE_GXM_OUTPUT_REGISTER_FORMAT_FLOAT2:
1995    SceGxmOutputRegisterFormat = 7;
1996pub const SceGxmOutputRegisterFormat_SCE_GXM_OUTPUT_REGISTER_FORMAT_FLOAT:
1997    SceGxmOutputRegisterFormat = 8;
1998pub type SceGxmOutputRegisterFormat = ::std::os::raw::c_uint;
1999#[doc = "!< Multisample disabled."]
2000pub const SceGxmMultisampleMode_SCE_GXM_MULTISAMPLE_NONE: SceGxmMultisampleMode = 0;
2001#[doc = "!< 2x1 rotated grid multisample."]
2002pub const SceGxmMultisampleMode_SCE_GXM_MULTISAMPLE_2X: SceGxmMultisampleMode = 1;
2003#[doc = "!< 2x2 rotated grid multisample."]
2004pub const SceGxmMultisampleMode_SCE_GXM_MULTISAMPLE_4X: SceGxmMultisampleMode = 2;
2005#[doc = " Multisample modes."]
2006pub type SceGxmMultisampleMode = ::std::os::raw::c_uint;
2007pub const SceGxmTextureSwizzle4Mode_SCE_GXM_TEXTURE_SWIZZLE4_ABGR: SceGxmTextureSwizzle4Mode = 0;
2008pub const SceGxmTextureSwizzle4Mode_SCE_GXM_TEXTURE_SWIZZLE4_ARGB: SceGxmTextureSwizzle4Mode = 4096;
2009pub const SceGxmTextureSwizzle4Mode_SCE_GXM_TEXTURE_SWIZZLE4_RGBA: SceGxmTextureSwizzle4Mode = 8192;
2010pub const SceGxmTextureSwizzle4Mode_SCE_GXM_TEXTURE_SWIZZLE4_BGRA: SceGxmTextureSwizzle4Mode =
2011    12288;
2012pub const SceGxmTextureSwizzle4Mode_SCE_GXM_TEXTURE_SWIZZLE4_1BGR: SceGxmTextureSwizzle4Mode =
2013    16384;
2014pub const SceGxmTextureSwizzle4Mode_SCE_GXM_TEXTURE_SWIZZLE4_1RGB: SceGxmTextureSwizzle4Mode =
2015    20480;
2016pub const SceGxmTextureSwizzle4Mode_SCE_GXM_TEXTURE_SWIZZLE4_RGB1: SceGxmTextureSwizzle4Mode =
2017    24576;
2018pub const SceGxmTextureSwizzle4Mode_SCE_GXM_TEXTURE_SWIZZLE4_BGR1: SceGxmTextureSwizzle4Mode =
2019    28672;
2020pub type SceGxmTextureSwizzle4Mode = ::std::os::raw::c_uint;
2021pub const SceGxmTextureSwizzle3Mode_SCE_GXM_TEXTURE_SWIZZLE3_BGR: SceGxmTextureSwizzle3Mode = 0;
2022pub const SceGxmTextureSwizzle3Mode_SCE_GXM_TEXTURE_SWIZZLE3_RGB: SceGxmTextureSwizzle3Mode = 4096;
2023pub type SceGxmTextureSwizzle3Mode = ::std::os::raw::c_uint;
2024pub const SceGxmTextureSwizzle2Mode_SCE_GXM_TEXTURE_SWIZZLE2_GR: SceGxmTextureSwizzle2Mode = 0;
2025pub const SceGxmTextureSwizzle2Mode_SCE_GXM_TEXTURE_SWIZZLE2_00GR: SceGxmTextureSwizzle2Mode = 4096;
2026pub const SceGxmTextureSwizzle2Mode_SCE_GXM_TEXTURE_SWIZZLE2_GRRR: SceGxmTextureSwizzle2Mode = 8192;
2027pub const SceGxmTextureSwizzle2Mode_SCE_GXM_TEXTURE_SWIZZLE2_RGGG: SceGxmTextureSwizzle2Mode =
2028    12288;
2029pub const SceGxmTextureSwizzle2Mode_SCE_GXM_TEXTURE_SWIZZLE2_GRGR: SceGxmTextureSwizzle2Mode =
2030    16384;
2031pub const SceGxmTextureSwizzle2Mode_SCE_GXM_TEXTURE_SWIZZLE2_00RG: SceGxmTextureSwizzle2Mode =
2032    20480;
2033pub type SceGxmTextureSwizzle2Mode = ::std::os::raw::c_uint;
2034pub const SceGxmTextureSwizzle2ModeAlt_SCE_GXM_TEXTURE_SWIZZLE2_SD: SceGxmTextureSwizzle2ModeAlt =
2035    0;
2036pub const SceGxmTextureSwizzle2ModeAlt_SCE_GXM_TEXTURE_SWIZZLE2_DS: SceGxmTextureSwizzle2ModeAlt =
2037    4096;
2038pub type SceGxmTextureSwizzle2ModeAlt = ::std::os::raw::c_uint;
2039pub const SceGxmTextureSwizzle1Mode_SCE_GXM_TEXTURE_SWIZZLE1_R: SceGxmTextureSwizzle1Mode = 0;
2040pub const SceGxmTextureSwizzle1Mode_SCE_GXM_TEXTURE_SWIZZLE1_000R: SceGxmTextureSwizzle1Mode = 4096;
2041pub const SceGxmTextureSwizzle1Mode_SCE_GXM_TEXTURE_SWIZZLE1_111R: SceGxmTextureSwizzle1Mode = 8192;
2042pub const SceGxmTextureSwizzle1Mode_SCE_GXM_TEXTURE_SWIZZLE1_RRRR: SceGxmTextureSwizzle1Mode =
2043    12288;
2044pub const SceGxmTextureSwizzle1Mode_SCE_GXM_TEXTURE_SWIZZLE1_0RRR: SceGxmTextureSwizzle1Mode =
2045    16384;
2046pub const SceGxmTextureSwizzle1Mode_SCE_GXM_TEXTURE_SWIZZLE1_1RRR: SceGxmTextureSwizzle1Mode =
2047    20480;
2048pub const SceGxmTextureSwizzle1Mode_SCE_GXM_TEXTURE_SWIZZLE1_R000: SceGxmTextureSwizzle1Mode =
2049    24576;
2050pub const SceGxmTextureSwizzle1Mode_SCE_GXM_TEXTURE_SWIZZLE1_R111: SceGxmTextureSwizzle1Mode =
2051    28672;
2052pub type SceGxmTextureSwizzle1Mode = ::std::os::raw::c_uint;
2053pub const SceGxmTextureSwizzleYUV422Mode_SCE_GXM_TEXTURE_SWIZZLE_YUYV_CSC0:
2054    SceGxmTextureSwizzleYUV422Mode = 0;
2055pub const SceGxmTextureSwizzleYUV422Mode_SCE_GXM_TEXTURE_SWIZZLE_YVYU_CSC0:
2056    SceGxmTextureSwizzleYUV422Mode = 4096;
2057pub const SceGxmTextureSwizzleYUV422Mode_SCE_GXM_TEXTURE_SWIZZLE_UYVY_CSC0:
2058    SceGxmTextureSwizzleYUV422Mode = 8192;
2059pub const SceGxmTextureSwizzleYUV422Mode_SCE_GXM_TEXTURE_SWIZZLE_VYUY_CSC0:
2060    SceGxmTextureSwizzleYUV422Mode = 12288;
2061pub const SceGxmTextureSwizzleYUV422Mode_SCE_GXM_TEXTURE_SWIZZLE_YUYV_CSC1:
2062    SceGxmTextureSwizzleYUV422Mode = 16384;
2063pub const SceGxmTextureSwizzleYUV422Mode_SCE_GXM_TEXTURE_SWIZZLE_YVYU_CSC1:
2064    SceGxmTextureSwizzleYUV422Mode = 20480;
2065pub const SceGxmTextureSwizzleYUV422Mode_SCE_GXM_TEXTURE_SWIZZLE_UYVY_CSC1:
2066    SceGxmTextureSwizzleYUV422Mode = 24576;
2067pub const SceGxmTextureSwizzleYUV422Mode_SCE_GXM_TEXTURE_SWIZZLE_VYUY_CSC1:
2068    SceGxmTextureSwizzleYUV422Mode = 28672;
2069pub type SceGxmTextureSwizzleYUV422Mode = ::std::os::raw::c_uint;
2070pub const SceGxmTextureSwizzleYUV420Mode_SCE_GXM_TEXTURE_SWIZZLE_YUV_CSC0:
2071    SceGxmTextureSwizzleYUV420Mode = 0;
2072pub const SceGxmTextureSwizzleYUV420Mode_SCE_GXM_TEXTURE_SWIZZLE_YVU_CSC0:
2073    SceGxmTextureSwizzleYUV420Mode = 4096;
2074pub const SceGxmTextureSwizzleYUV420Mode_SCE_GXM_TEXTURE_SWIZZLE_YUV_CSC1:
2075    SceGxmTextureSwizzleYUV420Mode = 8192;
2076pub const SceGxmTextureSwizzleYUV420Mode_SCE_GXM_TEXTURE_SWIZZLE_YVU_CSC1:
2077    SceGxmTextureSwizzleYUV420Mode = 12288;
2078pub type SceGxmTextureSwizzleYUV420Mode = ::std::os::raw::c_uint;
2079pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U8: SceGxmTextureBaseFormat = 0;
2080pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_S8: SceGxmTextureBaseFormat =
2081    16777216;
2082pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U4U4U4U4: SceGxmTextureBaseFormat =
2083    33554432;
2084pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U8U3U3U2: SceGxmTextureBaseFormat =
2085    50331648;
2086pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U1U5U5U5: SceGxmTextureBaseFormat =
2087    67108864;
2088pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U5U6U5: SceGxmTextureBaseFormat =
2089    83886080;
2090pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_S5S5U6: SceGxmTextureBaseFormat =
2091    100663296;
2092pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U8U8: SceGxmTextureBaseFormat =
2093    117440512;
2094pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_S8S8: SceGxmTextureBaseFormat =
2095    134217728;
2096pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U16: SceGxmTextureBaseFormat =
2097    150994944;
2098pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_S16: SceGxmTextureBaseFormat =
2099    167772160;
2100pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_F16: SceGxmTextureBaseFormat =
2101    184549376;
2102pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U8U8U8U8: SceGxmTextureBaseFormat =
2103    201326592;
2104pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_S8S8S8S8: SceGxmTextureBaseFormat =
2105    218103808;
2106pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U2U10U10U10: SceGxmTextureBaseFormat =
2107    234881024;
2108pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U16U16: SceGxmTextureBaseFormat =
2109    251658240;
2110pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_S16S16: SceGxmTextureBaseFormat =
2111    268435456;
2112pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_F16F16: SceGxmTextureBaseFormat =
2113    285212672;
2114pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_F32: SceGxmTextureBaseFormat =
2115    301989888;
2116pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_F32M: SceGxmTextureBaseFormat =
2117    318767104;
2118pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_X8S8S8U8: SceGxmTextureBaseFormat =
2119    335544320;
2120pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_X8U24: SceGxmTextureBaseFormat =
2121    352321536;
2122pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U32: SceGxmTextureBaseFormat =
2123    385875968;
2124pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_S32: SceGxmTextureBaseFormat =
2125    402653184;
2126pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_SE5M9M9M9: SceGxmTextureBaseFormat =
2127    419430400;
2128pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_F11F11F10: SceGxmTextureBaseFormat =
2129    436207616;
2130pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_F16F16F16F16:
2131    SceGxmTextureBaseFormat = 452984832;
2132pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U16U16U16U16:
2133    SceGxmTextureBaseFormat = 469762048;
2134pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_S16S16S16S16:
2135    SceGxmTextureBaseFormat = 486539264;
2136pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_F32F32: SceGxmTextureBaseFormat =
2137    503316480;
2138pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U32U32: SceGxmTextureBaseFormat =
2139    520093696;
2140#[doc = "!< PowerVR Texture Compression (PVRTC 2-bpp)."]
2141pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_PVRT2BPP: SceGxmTextureBaseFormat =
2142    2147483648;
2143#[doc = "!< PowerVR Texture Compression (PVRTC 4-bpp)."]
2144pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_PVRT4BPP: SceGxmTextureBaseFormat =
2145    2164260864;
2146#[doc = "!< PowerVR Texture Compression (PVRTC2 2-bpp)."]
2147pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_PVRTII2BPP: SceGxmTextureBaseFormat =
2148    2181038080;
2149#[doc = "!< PowerVR Texture Compression (PVRTC2 4-bpp)."]
2150pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_PVRTII4BPP: SceGxmTextureBaseFormat =
2151    2197815296;
2152#[doc = "!< Ericsson Texture Compression (ETC1). Requires SCE_GXM_INITIALIZE_FLAG_EXTENDED_FORMAT"]
2153pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_ETC1: SceGxmTextureBaseFormat =
2154    2214592512;
2155#[doc = "!< Unsigned BC1 (DXT1)."]
2156pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_UBC1: SceGxmTextureBaseFormat =
2157    2231369728;
2158#[doc = "!< Unsigned BC2 (DXT2/DXT3)."]
2159pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_UBC2: SceGxmTextureBaseFormat =
2160    2248146944;
2161#[doc = "!< Unsigned BC3 (DXT4/DXT5)."]
2162pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_UBC3: SceGxmTextureBaseFormat =
2163    2264924160;
2164#[doc = "!< Unsigned BC4."]
2165pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_UBC4: SceGxmTextureBaseFormat =
2166    2281701376;
2167#[doc = "!< Signed BC4."]
2168pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_SBC4: SceGxmTextureBaseFormat =
2169    2298478592;
2170#[doc = "!< Unsigned BC5."]
2171pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_UBC5: SceGxmTextureBaseFormat =
2172    2315255808;
2173#[doc = "!< Signed BC5."]
2174pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_SBC5: SceGxmTextureBaseFormat =
2175    2332033024;
2176pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_YUV420P2: SceGxmTextureBaseFormat =
2177    2415919104;
2178pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_YUV420P3: SceGxmTextureBaseFormat =
2179    2432696320;
2180pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_YUV422: SceGxmTextureBaseFormat =
2181    2449473536;
2182pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_P4: SceGxmTextureBaseFormat =
2183    2483027968;
2184pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_P8: SceGxmTextureBaseFormat =
2185    2499805184;
2186pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U8U8U8: SceGxmTextureBaseFormat =
2187    2550136832;
2188pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_S8S8S8: SceGxmTextureBaseFormat =
2189    2566914048;
2190pub const SceGxmTextureBaseFormat_SCE_GXM_TEXTURE_BASE_FORMAT_U2F10F10F10: SceGxmTextureBaseFormat =
2191    2583691264;
2192pub type SceGxmTextureBaseFormat = ::std::os::raw::c_uint;
2193pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8_000R: SceGxmTextureFormat = 4096;
2194pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8_111R: SceGxmTextureFormat = 8192;
2195pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8_RRRR: SceGxmTextureFormat = 12288;
2196pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8_0RRR: SceGxmTextureFormat = 16384;
2197pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8_1RRR: SceGxmTextureFormat = 20480;
2198pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8_R000: SceGxmTextureFormat = 24576;
2199pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8_R111: SceGxmTextureFormat = 28672;
2200pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8_R: SceGxmTextureFormat = 0;
2201pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8_000R: SceGxmTextureFormat = 16781312;
2202pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8_111R: SceGxmTextureFormat = 16785408;
2203pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8_RRRR: SceGxmTextureFormat = 16789504;
2204pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8_0RRR: SceGxmTextureFormat = 16793600;
2205pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8_1RRR: SceGxmTextureFormat = 16797696;
2206pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8_R000: SceGxmTextureFormat = 16801792;
2207pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8_R111: SceGxmTextureFormat = 16805888;
2208pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8_R: SceGxmTextureFormat = 16777216;
2209pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U4U4U4U4_ABGR: SceGxmTextureFormat = 33554432;
2210pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U4U4U4U4_ARGB: SceGxmTextureFormat = 33558528;
2211pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U4U4U4U4_RGBA: SceGxmTextureFormat = 33562624;
2212pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U4U4U4U4_BGRA: SceGxmTextureFormat = 33566720;
2213pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X4U4U4U4_1BGR: SceGxmTextureFormat = 33570816;
2214pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X4U4U4U4_1RGB: SceGxmTextureFormat = 33574912;
2215pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U4U4U4X4_RGB1: SceGxmTextureFormat = 33579008;
2216pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U4U4U4X4_BGR1: SceGxmTextureFormat = 33583104;
2217pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U3U3U2_ARGB: SceGxmTextureFormat = 50331648;
2218pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U1U5U5U5_ABGR: SceGxmTextureFormat = 67108864;
2219pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U1U5U5U5_ARGB: SceGxmTextureFormat = 67112960;
2220pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U5U5U5U1_RGBA: SceGxmTextureFormat = 67117056;
2221pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U5U5U5U1_BGRA: SceGxmTextureFormat = 67121152;
2222pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X1U5U5U5_1BGR: SceGxmTextureFormat = 67125248;
2223pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X1U5U5U5_1RGB: SceGxmTextureFormat = 67129344;
2224pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U5U5U5X1_RGB1: SceGxmTextureFormat = 67133440;
2225pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U5U5U5X1_BGR1: SceGxmTextureFormat = 67137536;
2226pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U5U6U5_BGR: SceGxmTextureFormat = 83886080;
2227pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U5U6U5_RGB: SceGxmTextureFormat = 83890176;
2228pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U6S5S5_BGR: SceGxmTextureFormat = 100663296;
2229pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S5S5U6_RGB: SceGxmTextureFormat = 100667392;
2230pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8_00GR: SceGxmTextureFormat = 117444608;
2231pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8_GRRR: SceGxmTextureFormat = 117448704;
2232pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8_RGGG: SceGxmTextureFormat = 117452800;
2233pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8_GRGR: SceGxmTextureFormat = 117456896;
2234pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8_00RG: SceGxmTextureFormat = 117460992;
2235pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8_GR: SceGxmTextureFormat = 117440512;
2236pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8_00GR: SceGxmTextureFormat = 134221824;
2237pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8_GRRR: SceGxmTextureFormat = 134225920;
2238pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8_RGGG: SceGxmTextureFormat = 134230016;
2239pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8_GRGR: SceGxmTextureFormat = 134234112;
2240pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8_00RG: SceGxmTextureFormat = 134238208;
2241pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8_GR: SceGxmTextureFormat = 134217728;
2242pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16_000R: SceGxmTextureFormat = 150999040;
2243pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16_111R: SceGxmTextureFormat = 151003136;
2244pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16_RRRR: SceGxmTextureFormat = 151007232;
2245pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16_0RRR: SceGxmTextureFormat = 151011328;
2246pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16_1RRR: SceGxmTextureFormat = 151015424;
2247pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16_R000: SceGxmTextureFormat = 151019520;
2248pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16_R111: SceGxmTextureFormat = 151023616;
2249pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16_R: SceGxmTextureFormat = 150994944;
2250pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16_000R: SceGxmTextureFormat = 167776256;
2251pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16_111R: SceGxmTextureFormat = 167780352;
2252pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16_RRRR: SceGxmTextureFormat = 167784448;
2253pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16_0RRR: SceGxmTextureFormat = 167788544;
2254pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16_1RRR: SceGxmTextureFormat = 167792640;
2255pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16_R000: SceGxmTextureFormat = 167796736;
2256pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16_R111: SceGxmTextureFormat = 167800832;
2257pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16_R: SceGxmTextureFormat = 167772160;
2258pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16_000R: SceGxmTextureFormat = 184553472;
2259pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16_111R: SceGxmTextureFormat = 184557568;
2260pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16_RRRR: SceGxmTextureFormat = 184561664;
2261pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16_0RRR: SceGxmTextureFormat = 184565760;
2262pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16_1RRR: SceGxmTextureFormat = 184569856;
2263pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16_R000: SceGxmTextureFormat = 184573952;
2264pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16_R111: SceGxmTextureFormat = 184578048;
2265pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16_R: SceGxmTextureFormat = 184549376;
2266pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8U8U8_ABGR: SceGxmTextureFormat = 201326592;
2267pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8U8U8_ARGB: SceGxmTextureFormat = 201330688;
2268pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8U8U8_RGBA: SceGxmTextureFormat = 201334784;
2269pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8U8U8_BGRA: SceGxmTextureFormat = 201338880;
2270pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1BGR: SceGxmTextureFormat = 201342976;
2271pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1RGB: SceGxmTextureFormat = 201347072;
2272pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8U8X8_RGB1: SceGxmTextureFormat = 201351168;
2273pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8U8X8_BGR1: SceGxmTextureFormat = 201355264;
2274pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8S8S8_ABGR: SceGxmTextureFormat = 218103808;
2275pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8S8S8_ARGB: SceGxmTextureFormat = 218107904;
2276pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8S8S8_RGBA: SceGxmTextureFormat = 218112000;
2277pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8S8S8_BGRA: SceGxmTextureFormat = 218116096;
2278pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X8S8S8S8_1BGR: SceGxmTextureFormat = 218120192;
2279pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X8S8S8S8_1RGB: SceGxmTextureFormat = 218124288;
2280pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8S8X8_RGB1: SceGxmTextureFormat = 218128384;
2281pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8S8X8_BGR1: SceGxmTextureFormat = 218132480;
2282pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U2U10U10U10_ABGR: SceGxmTextureFormat =
2283    234881024;
2284pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U2U10U10U10_ARGB: SceGxmTextureFormat =
2285    234885120;
2286pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U10U10U10U2_RGBA: SceGxmTextureFormat =
2287    234889216;
2288pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U10U10U10U2_BGRA: SceGxmTextureFormat =
2289    234893312;
2290pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X2U10U10U10_1BGR: SceGxmTextureFormat =
2291    234897408;
2292pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X2U10U10U10_1RGB: SceGxmTextureFormat =
2293    234901504;
2294pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U10U10U10X2_RGB1: SceGxmTextureFormat =
2295    234905600;
2296pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U10U10U10X2_BGR1: SceGxmTextureFormat =
2297    234909696;
2298pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16U16_00GR: SceGxmTextureFormat = 251662336;
2299pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16U16_GRRR: SceGxmTextureFormat = 251666432;
2300pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16U16_RGGG: SceGxmTextureFormat = 251670528;
2301pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16U16_GRGR: SceGxmTextureFormat = 251674624;
2302pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16U16_00RG: SceGxmTextureFormat = 251678720;
2303pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16U16_GR: SceGxmTextureFormat = 251658240;
2304pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16S16_00GR: SceGxmTextureFormat = 268439552;
2305pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16S16_GRRR: SceGxmTextureFormat = 268443648;
2306pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16S16_RGGG: SceGxmTextureFormat = 268447744;
2307pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16S16_GRGR: SceGxmTextureFormat = 268451840;
2308pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16S16_00RG: SceGxmTextureFormat = 268455936;
2309pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16S16_GR: SceGxmTextureFormat = 268435456;
2310pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16F16_00GR: SceGxmTextureFormat = 285216768;
2311pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16F16_GRRR: SceGxmTextureFormat = 285220864;
2312pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16F16_RGGG: SceGxmTextureFormat = 285224960;
2313pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16F16_GRGR: SceGxmTextureFormat = 285229056;
2314pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16F16_00RG: SceGxmTextureFormat = 285233152;
2315pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16F16_GR: SceGxmTextureFormat = 285212672;
2316pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32_000R: SceGxmTextureFormat = 301993984;
2317pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32_111R: SceGxmTextureFormat = 301998080;
2318pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32_RRRR: SceGxmTextureFormat = 302002176;
2319pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32_0RRR: SceGxmTextureFormat = 302006272;
2320pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32_1RRR: SceGxmTextureFormat = 302010368;
2321pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32_R000: SceGxmTextureFormat = 302014464;
2322pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32_R111: SceGxmTextureFormat = 302018560;
2323pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32_R: SceGxmTextureFormat = 301989888;
2324pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32M_000R: SceGxmTextureFormat = 318771200;
2325pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32M_111R: SceGxmTextureFormat = 318775296;
2326pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32M_RRRR: SceGxmTextureFormat = 318779392;
2327pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32M_0RRR: SceGxmTextureFormat = 318783488;
2328pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32M_1RRR: SceGxmTextureFormat = 318787584;
2329pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32M_R000: SceGxmTextureFormat = 318791680;
2330pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32M_R111: SceGxmTextureFormat = 318795776;
2331pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32M_R: SceGxmTextureFormat = 318767104;
2332pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X8S8S8U8_1BGR: SceGxmTextureFormat = 335544320;
2333pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X8U8S8S8_1RGB: SceGxmTextureFormat = 335548416;
2334pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X8U24_SD: SceGxmTextureFormat = 352321536;
2335pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U24X8_DS: SceGxmTextureFormat = 352325632;
2336pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32_000R: SceGxmTextureFormat = 385880064;
2337pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32_111R: SceGxmTextureFormat = 385884160;
2338pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32_RRRR: SceGxmTextureFormat = 385888256;
2339pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32_0RRR: SceGxmTextureFormat = 385892352;
2340pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32_1RRR: SceGxmTextureFormat = 385896448;
2341pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32_R000: SceGxmTextureFormat = 385900544;
2342pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32_R111: SceGxmTextureFormat = 385904640;
2343pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32_R: SceGxmTextureFormat = 385875968;
2344pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S32_000R: SceGxmTextureFormat = 402657280;
2345pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S32_111R: SceGxmTextureFormat = 402661376;
2346pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S32_RRRR: SceGxmTextureFormat = 402665472;
2347pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S32_0RRR: SceGxmTextureFormat = 402669568;
2348pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S32_1RRR: SceGxmTextureFormat = 402673664;
2349pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S32_R000: SceGxmTextureFormat = 402677760;
2350pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S32_R111: SceGxmTextureFormat = 402681856;
2351pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S32_R: SceGxmTextureFormat = 402653184;
2352pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SE5M9M9M9_BGR: SceGxmTextureFormat = 419430400;
2353pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SE5M9M9M9_RGB: SceGxmTextureFormat = 419434496;
2354pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F10F11F11_BGR: SceGxmTextureFormat = 436207616;
2355pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F11F11F10_RGB: SceGxmTextureFormat = 436211712;
2356pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16F16F16F16_ABGR: SceGxmTextureFormat =
2357    452984832;
2358pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16F16F16F16_ARGB: SceGxmTextureFormat =
2359    452988928;
2360pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16F16F16F16_RGBA: SceGxmTextureFormat =
2361    452993024;
2362pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16F16F16F16_BGRA: SceGxmTextureFormat =
2363    452997120;
2364pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X16F16F16F16_1BGR: SceGxmTextureFormat =
2365    453001216;
2366pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X16F16F16F16_1RGB: SceGxmTextureFormat =
2367    453005312;
2368pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16F16F16X16_RGB1: SceGxmTextureFormat =
2369    453009408;
2370pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F16F16F16X16_BGR1: SceGxmTextureFormat =
2371    453013504;
2372pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16U16U16U16_ABGR: SceGxmTextureFormat =
2373    469762048;
2374pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16U16U16U16_ARGB: SceGxmTextureFormat =
2375    469766144;
2376pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16U16U16U16_RGBA: SceGxmTextureFormat =
2377    469770240;
2378pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16U16U16U16_BGRA: SceGxmTextureFormat =
2379    469774336;
2380pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X16U16U16U16_1BGR: SceGxmTextureFormat =
2381    469778432;
2382pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X16U16U16U16_1RGB: SceGxmTextureFormat =
2383    469782528;
2384pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16U16U16X16_RGB1: SceGxmTextureFormat =
2385    469786624;
2386pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U16U16U16X16_BGR1: SceGxmTextureFormat =
2387    469790720;
2388pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16S16S16S16_ABGR: SceGxmTextureFormat =
2389    486539264;
2390pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16S16S16S16_ARGB: SceGxmTextureFormat =
2391    486543360;
2392pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16S16S16S16_RGBA: SceGxmTextureFormat =
2393    486547456;
2394pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16S16S16S16_BGRA: SceGxmTextureFormat =
2395    486551552;
2396pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X16S16S16S16_1BGR: SceGxmTextureFormat =
2397    486555648;
2398pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X16S16S16S16_1RGB: SceGxmTextureFormat =
2399    486559744;
2400pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16S16S16X16_RGB1: SceGxmTextureFormat =
2401    486563840;
2402pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S16S16S16X16_BGR1: SceGxmTextureFormat =
2403    486567936;
2404pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32F32_00GR: SceGxmTextureFormat = 503320576;
2405pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32F32_GRRR: SceGxmTextureFormat = 503324672;
2406pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32F32_RGGG: SceGxmTextureFormat = 503328768;
2407pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32F32_GRGR: SceGxmTextureFormat = 503332864;
2408pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32F32_00RG: SceGxmTextureFormat = 503336960;
2409pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F32F32_GR: SceGxmTextureFormat = 503316480;
2410pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32U32_00GR: SceGxmTextureFormat = 520097792;
2411pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32U32_GRRR: SceGxmTextureFormat = 520101888;
2412pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32U32_RGGG: SceGxmTextureFormat = 520105984;
2413pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32U32_GRGR: SceGxmTextureFormat = 520110080;
2414pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32U32_00RG: SceGxmTextureFormat = 520114176;
2415pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U32U32_GR: SceGxmTextureFormat = 520093696;
2416pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_PVRT2BPP_ABGR: SceGxmTextureFormat =
2417    2147483648;
2418pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_PVRT2BPP_1BGR: SceGxmTextureFormat =
2419    2147500032;
2420pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_PVRT4BPP_ABGR: SceGxmTextureFormat =
2421    2164260864;
2422pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_PVRT4BPP_1BGR: SceGxmTextureFormat =
2423    2164277248;
2424pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_PVRTII2BPP_ABGR: SceGxmTextureFormat =
2425    2181038080;
2426pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_PVRTII2BPP_1BGR: SceGxmTextureFormat =
2427    2181054464;
2428pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_PVRTII4BPP_ABGR: SceGxmTextureFormat =
2429    2197815296;
2430pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_PVRTII4BPP_1BGR: SceGxmTextureFormat =
2431    2197831680;
2432pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_ETC1_1BGR: SceGxmTextureFormat = 2214592512;
2433pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC1_ABGR: SceGxmTextureFormat = 2231369728;
2434pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC1_1BGR: SceGxmTextureFormat = 2231386112;
2435pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC2_ABGR: SceGxmTextureFormat = 2248146944;
2436pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC2_1BGR: SceGxmTextureFormat = 2248163328;
2437pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC3_ABGR: SceGxmTextureFormat = 2264924160;
2438pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC3_1BGR: SceGxmTextureFormat = 2264940544;
2439pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC4_000R: SceGxmTextureFormat = 2281705472;
2440pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC4_111R: SceGxmTextureFormat = 2281709568;
2441pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC4_RRRR: SceGxmTextureFormat = 2281713664;
2442pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC4_0RRR: SceGxmTextureFormat = 2281717760;
2443pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC4_1RRR: SceGxmTextureFormat = 2281721856;
2444pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC4_R000: SceGxmTextureFormat = 2281725952;
2445pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC4_R111: SceGxmTextureFormat = 2281730048;
2446pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC4_R: SceGxmTextureFormat = 2281701376;
2447pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC4_000R: SceGxmTextureFormat = 2298482688;
2448pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC4_111R: SceGxmTextureFormat = 2298486784;
2449pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC4_RRRR: SceGxmTextureFormat = 2298490880;
2450pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC4_0RRR: SceGxmTextureFormat = 2298494976;
2451pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC4_1RRR: SceGxmTextureFormat = 2298499072;
2452pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC4_R000: SceGxmTextureFormat = 2298503168;
2453pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC4_R111: SceGxmTextureFormat = 2298507264;
2454pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC4_R: SceGxmTextureFormat = 2298478592;
2455pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC5_00GR: SceGxmTextureFormat = 2315259904;
2456pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC5_GRRR: SceGxmTextureFormat = 2315264000;
2457pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC5_RGGG: SceGxmTextureFormat = 2315268096;
2458pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC5_GRGR: SceGxmTextureFormat = 2315272192;
2459pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC5_00RG: SceGxmTextureFormat = 2315276288;
2460pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC5_GR: SceGxmTextureFormat = 2315255808;
2461pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC5_00GR: SceGxmTextureFormat = 2332037120;
2462pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC5_GRRR: SceGxmTextureFormat = 2332041216;
2463pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC5_RGGG: SceGxmTextureFormat = 2332045312;
2464pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC5_GRGR: SceGxmTextureFormat = 2332049408;
2465pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC5_00RG: SceGxmTextureFormat = 2332053504;
2466pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_SBC5_GR: SceGxmTextureFormat = 2332033024;
2467pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_YUV420P2_CSC0: SceGxmTextureFormat =
2468    2415919104;
2469pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_YVU420P2_CSC0: SceGxmTextureFormat =
2470    2415923200;
2471pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_YUV420P2_CSC1: SceGxmTextureFormat =
2472    2415927296;
2473pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_YVU420P2_CSC1: SceGxmTextureFormat =
2474    2415931392;
2475pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_YUV420P3_CSC0: SceGxmTextureFormat =
2476    2432696320;
2477pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_YVU420P3_CSC0: SceGxmTextureFormat =
2478    2432700416;
2479pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_YUV420P3_CSC1: SceGxmTextureFormat =
2480    2432704512;
2481pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_YVU420P3_CSC1: SceGxmTextureFormat =
2482    2432708608;
2483pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_YUYV422_CSC0: SceGxmTextureFormat = 2449473536;
2484pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_YVYU422_CSC0: SceGxmTextureFormat = 2449477632;
2485pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UYVY422_CSC0: SceGxmTextureFormat = 2449481728;
2486pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_VYUY422_CSC0: SceGxmTextureFormat = 2449485824;
2487pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_YUYV422_CSC1: SceGxmTextureFormat = 2449489920;
2488pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_YVYU422_CSC1: SceGxmTextureFormat = 2449494016;
2489pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UYVY422_CSC1: SceGxmTextureFormat = 2449498112;
2490pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_VYUY422_CSC1: SceGxmTextureFormat = 2449502208;
2491pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P4_ABGR: SceGxmTextureFormat = 2483027968;
2492pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P4_ARGB: SceGxmTextureFormat = 2483032064;
2493pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P4_RGBA: SceGxmTextureFormat = 2483036160;
2494pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P4_BGRA: SceGxmTextureFormat = 2483040256;
2495pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P4_1BGR: SceGxmTextureFormat = 2483044352;
2496pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P4_1RGB: SceGxmTextureFormat = 2483048448;
2497pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P4_RGB1: SceGxmTextureFormat = 2483052544;
2498pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P4_BGR1: SceGxmTextureFormat = 2483056640;
2499pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P8_ABGR: SceGxmTextureFormat = 2499805184;
2500pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P8_ARGB: SceGxmTextureFormat = 2499809280;
2501pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P8_RGBA: SceGxmTextureFormat = 2499813376;
2502pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P8_BGRA: SceGxmTextureFormat = 2499817472;
2503pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P8_1BGR: SceGxmTextureFormat = 2499821568;
2504pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P8_1RGB: SceGxmTextureFormat = 2499825664;
2505pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P8_RGB1: SceGxmTextureFormat = 2499829760;
2506pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_P8_BGR1: SceGxmTextureFormat = 2499833856;
2507pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8U8_BGR: SceGxmTextureFormat = 2550136832;
2508pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U8U8U8_RGB: SceGxmTextureFormat = 2550140928;
2509pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8S8_BGR: SceGxmTextureFormat = 2566914048;
2510pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_S8S8S8_RGB: SceGxmTextureFormat = 2566918144;
2511pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U2F10F10F10_ABGR: SceGxmTextureFormat =
2512    2583691264;
2513pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_U2F10F10F10_ARGB: SceGxmTextureFormat =
2514    2583695360;
2515pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F10F10F10U2_RGBA: SceGxmTextureFormat =
2516    2583699456;
2517pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F10F10F10U2_BGRA: SceGxmTextureFormat =
2518    2583703552;
2519pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X2F10F10F10_1BGR: SceGxmTextureFormat =
2520    2583707648;
2521pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_X2F10F10F10_1RGB: SceGxmTextureFormat =
2522    2583711744;
2523pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F10F10F10X2_RGB1: SceGxmTextureFormat =
2524    2583715840;
2525pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_F10F10F10X2_BGR1: SceGxmTextureFormat =
2526    2583719936;
2527pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_L8: SceGxmTextureFormat = 20480;
2528pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_A8: SceGxmTextureFormat = 24576;
2529pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_R8: SceGxmTextureFormat = 4096;
2530pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_A4R4G4B4: SceGxmTextureFormat = 33558528;
2531pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_A1R5G5B5: SceGxmTextureFormat = 67112960;
2532pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_R5G6B5: SceGxmTextureFormat = 83890176;
2533pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_A8L8: SceGxmTextureFormat = 117448704;
2534pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_L8A8: SceGxmTextureFormat = 117452800;
2535pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_G8R8: SceGxmTextureFormat = 117444608;
2536pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_L16: SceGxmTextureFormat = 151015424;
2537pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_A16: SceGxmTextureFormat = 151019520;
2538pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_R16: SceGxmTextureFormat = 150999040;
2539pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_D16: SceGxmTextureFormat = 150994944;
2540pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_LF16: SceGxmTextureFormat = 184569856;
2541pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_AF16: SceGxmTextureFormat = 184573952;
2542pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_RF16: SceGxmTextureFormat = 184553472;
2543pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_A8R8G8B8: SceGxmTextureFormat = 201330688;
2544pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_A8B8G8R8: SceGxmTextureFormat = 201326592;
2545pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_AF16LF16: SceGxmTextureFormat = 285220864;
2546pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_LF16AF16: SceGxmTextureFormat = 285224960;
2547pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_GF16RF16: SceGxmTextureFormat = 285216768;
2548pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_LF32M: SceGxmTextureFormat = 318787584;
2549pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_AF32M: SceGxmTextureFormat = 318791680;
2550pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_RF32M: SceGxmTextureFormat = 318771200;
2551pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_DF32M: SceGxmTextureFormat = 318767104;
2552pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_VYUY: SceGxmTextureFormat = 2449485824;
2553pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_YVYU: SceGxmTextureFormat = 2449477632;
2554pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC1: SceGxmTextureFormat = 2231369728;
2555pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC2: SceGxmTextureFormat = 2248146944;
2556pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_UBC3: SceGxmTextureFormat = 2264924160;
2557pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_PVRT2BPP: SceGxmTextureFormat = 2147483648;
2558pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_PVRT4BPP: SceGxmTextureFormat = 2164260864;
2559pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_PVRTII2BPP: SceGxmTextureFormat = 2181038080;
2560pub const SceGxmTextureFormat_SCE_GXM_TEXTURE_FORMAT_PVRTII4BPP: SceGxmTextureFormat = 2197815296;
2561pub type SceGxmTextureFormat = ::std::os::raw::c_uint;
2562#[doc = "!< Swizzled memory layout with power of two width and height"]
2563pub const SceGxmTextureType_SCE_GXM_TEXTURE_SWIZZLED: SceGxmTextureType = 0;
2564#[doc = "!< Cube memory layout with power of two width and height"]
2565pub const SceGxmTextureType_SCE_GXM_TEXTURE_CUBE: SceGxmTextureType = 1073741824;
2566#[doc = "!< Linear memory layout"]
2567pub const SceGxmTextureType_SCE_GXM_TEXTURE_LINEAR: SceGxmTextureType = 1610612736;
2568#[doc = "!< Tiled memory layout"]
2569pub const SceGxmTextureType_SCE_GXM_TEXTURE_TILED: SceGxmTextureType = 2147483648;
2570#[doc = "!< Swizzled memory layout with arbitrary width and height"]
2571pub const SceGxmTextureType_SCE_GXM_TEXTURE_SWIZZLED_ARBITRARY: SceGxmTextureType = 2684354560;
2572#[doc = "!< Linear memory layout with arbitrary stride"]
2573pub const SceGxmTextureType_SCE_GXM_TEXTURE_LINEAR_STRIDED: SceGxmTextureType = 3221225472;
2574#[doc = "!< Cube memory layout with arbitrary width and height."]
2575pub const SceGxmTextureType_SCE_GXM_TEXTURE_CUBE_ARBITRARY: SceGxmTextureType = 3758096384;
2576#[doc = " Texture memory layouts."]
2577pub type SceGxmTextureType = ::std::os::raw::c_uint;
2578pub const SceGxmTextureFilter_SCE_GXM_TEXTURE_FILTER_POINT: SceGxmTextureFilter = 0;
2579pub const SceGxmTextureFilter_SCE_GXM_TEXTURE_FILTER_LINEAR: SceGxmTextureFilter = 1;
2580pub const SceGxmTextureFilter_SCE_GXM_TEXTURE_FILTER_MIPMAP_LINEAR: SceGxmTextureFilter = 2;
2581pub const SceGxmTextureFilter_SCE_GXM_TEXTURE_FILTER_MIPMAP_POINT: SceGxmTextureFilter = 3;
2582pub type SceGxmTextureFilter = ::std::os::raw::c_uint;
2583pub const SceGxmTextureMipFilter_SCE_GXM_TEXTURE_MIP_FILTER_DISABLED: SceGxmTextureMipFilter = 0;
2584pub const SceGxmTextureMipFilter_SCE_GXM_TEXTURE_MIP_FILTER_ENABLED: SceGxmTextureMipFilter = 512;
2585pub type SceGxmTextureMipFilter = ::std::os::raw::c_uint;
2586pub const SceGxmTextureAddrMode_SCE_GXM_TEXTURE_ADDR_REPEAT: SceGxmTextureAddrMode = 0;
2587pub const SceGxmTextureAddrMode_SCE_GXM_TEXTURE_ADDR_MIRROR: SceGxmTextureAddrMode = 1;
2588pub const SceGxmTextureAddrMode_SCE_GXM_TEXTURE_ADDR_CLAMP: SceGxmTextureAddrMode = 2;
2589pub const SceGxmTextureAddrMode_SCE_GXM_TEXTURE_ADDR_MIRROR_CLAMP: SceGxmTextureAddrMode = 3;
2590pub const SceGxmTextureAddrMode_SCE_GXM_TEXTURE_ADDR_REPEAT_IGNORE_BORDER: SceGxmTextureAddrMode =
2591    4;
2592pub const SceGxmTextureAddrMode_SCE_GXM_TEXTURE_ADDR_CLAMP_FULL_BORDER: SceGxmTextureAddrMode = 5;
2593pub const SceGxmTextureAddrMode_SCE_GXM_TEXTURE_ADDR_CLAMP_IGNORE_BORDER: SceGxmTextureAddrMode = 6;
2594pub const SceGxmTextureAddrMode_SCE_GXM_TEXTURE_ADDR_CLAMP_HALF_BORDER: SceGxmTextureAddrMode = 7;
2595pub type SceGxmTextureAddrMode = ::std::os::raw::c_uint;
2596pub const SceGxmTextureGammaMode_SCE_GXM_TEXTURE_GAMMA_NONE: SceGxmTextureGammaMode = 0;
2597pub const SceGxmTextureGammaMode_SCE_GXM_TEXTURE_GAMMA_R: SceGxmTextureGammaMode = 134217728;
2598pub const SceGxmTextureGammaMode_SCE_GXM_TEXTURE_GAMMA_GR: SceGxmTextureGammaMode = 402653184;
2599pub const SceGxmTextureGammaMode_SCE_GXM_TEXTURE_GAMMA_BGR: SceGxmTextureGammaMode = 134217728;
2600pub type SceGxmTextureGammaMode = ::std::os::raw::c_uint;
2601pub const SceGxmTextureNormalizeMode_SCE_GXM_TEXTURE_NORMALIZE_DISABLED:
2602    SceGxmTextureNormalizeMode = 0;
2603pub const SceGxmTextureNormalizeMode_SCE_GXM_TEXTURE_NORMALIZE_ENABLED: SceGxmTextureNormalizeMode =
2604    2147483648;
2605pub type SceGxmTextureNormalizeMode = ::std::os::raw::c_uint;
2606#[doc = "!< 16-bit unsigned integers"]
2607pub const SceGxmIndexFormat_SCE_GXM_INDEX_FORMAT_U16: SceGxmIndexFormat = 0;
2608#[doc = "!< 32-bit unsigned integers"]
2609pub const SceGxmIndexFormat_SCE_GXM_INDEX_FORMAT_U32: SceGxmIndexFormat = 16777216;
2610#[doc = " Indices formats."]
2611pub type SceGxmIndexFormat = ::std::os::raw::c_uint;
2612#[doc = "!< 16-bit indexing. Values must be lower than 64000."]
2613pub const SceGxmIndexSource_SCE_GXM_INDEX_SOURCE_INDEX_16BIT: SceGxmIndexSource = 0;
2614#[doc = "!< 32-bit indexing."]
2615pub const SceGxmIndexSource_SCE_GXM_INDEX_SOURCE_INDEX_32BIT: SceGxmIndexSource = 1;
2616#[doc = "!< 16-bit indexing for instanced draws. Values must be lower than 64000."]
2617pub const SceGxmIndexSource_SCE_GXM_INDEX_SOURCE_INSTANCE_16BIT: SceGxmIndexSource = 2;
2618#[doc = "!< 32-bit indexing for instanced draws."]
2619pub const SceGxmIndexSource_SCE_GXM_INDEX_SOURCE_INSTANCE_32BIT: SceGxmIndexSource = 3;
2620#[doc = " Vertex stream indexing formats."]
2621pub type SceGxmIndexSource = ::std::os::raw::c_uint;
2622#[doc = "!< Disabled"]
2623pub const SceGxmFragmentProgramMode_SCE_GXM_FRAGMENT_PROGRAM_DISABLED: SceGxmFragmentProgramMode =
2624    2097152;
2625#[doc = "!< Enabled"]
2626pub const SceGxmFragmentProgramMode_SCE_GXM_FRAGMENT_PROGRAM_ENABLED: SceGxmFragmentProgramMode = 0;
2627#[doc = " Fragment program states."]
2628pub type SceGxmFragmentProgramMode = ::std::os::raw::c_uint;
2629#[doc = "!< Disabled"]
2630pub const SceGxmDepthWriteMode_SCE_GXM_DEPTH_WRITE_DISABLED: SceGxmDepthWriteMode = 1048576;
2631#[doc = "!< Enabled"]
2632pub const SceGxmDepthWriteMode_SCE_GXM_DEPTH_WRITE_ENABLED: SceGxmDepthWriteMode = 0;
2633#[doc = " Depth write states."]
2634pub type SceGxmDepthWriteMode = ::std::os::raw::c_uint;
2635pub const SceGxmLineFillLastPixelMode_SCE_GXM_LINE_FILL_LAST_PIXEL_DISABLED:
2636    SceGxmLineFillLastPixelMode = 0;
2637pub const SceGxmLineFillLastPixelMode_SCE_GXM_LINE_FILL_LAST_PIXEL_ENABLED:
2638    SceGxmLineFillLastPixelMode = 524288;
2639pub type SceGxmLineFillLastPixelMode = ::std::os::raw::c_uint;
2640#[doc = "!< Disabled"]
2641pub const SceGxmTwoSidedMode_SCE_GXM_TWO_SIDED_DISABLED: SceGxmTwoSidedMode = 0;
2642#[doc = "!< Enabled"]
2643pub const SceGxmTwoSidedMode_SCE_GXM_TWO_SIDED_ENABLED: SceGxmTwoSidedMode = 2048;
2644#[doc = " Two sided rendering states."]
2645pub type SceGxmTwoSidedMode = ::std::os::raw::c_uint;
2646pub const SceGxmWClampMode_SCE_GXM_WCLAMP_MODE_DISABLED: SceGxmWClampMode = 0;
2647pub const SceGxmWClampMode_SCE_GXM_WCLAMP_MODE_ENABLED: SceGxmWClampMode = 32768;
2648pub type SceGxmWClampMode = ::std::os::raw::c_uint;
2649#[doc = "!< Disabled"]
2650pub const SceGxmViewportMode_SCE_GXM_VIEWPORT_DISABLED: SceGxmViewportMode = 65536;
2651#[doc = "!< Enabled"]
2652pub const SceGxmViewportMode_SCE_GXM_VIEWPORT_ENABLED: SceGxmViewportMode = 0;
2653#[doc = " W-clamp states"]
2654pub type SceGxmViewportMode = ::std::os::raw::c_uint;
2655#[doc = "!< Disabled"]
2656pub const SceGxmWBufferMode_SCE_GXM_WBUFFER_DISABLED: SceGxmWBufferMode = 0;
2657#[doc = "!< Enabled"]
2658pub const SceGxmWBufferMode_SCE_GXM_WBUFFER_ENABLED: SceGxmWBufferMode = 16384;
2659#[doc = " W-buffer mode states"]
2660pub type SceGxmWBufferMode = ::std::os::raw::c_uint;
2661pub const SceGxmDepthStencilForceLoadMode_SCE_GXM_DEPTH_STENCIL_FORCE_LOAD_DISABLED:
2662    SceGxmDepthStencilForceLoadMode = 0;
2663pub const SceGxmDepthStencilForceLoadMode_SCE_GXM_DEPTH_STENCIL_FORCE_LOAD_ENABLED:
2664    SceGxmDepthStencilForceLoadMode = 2;
2665pub type SceGxmDepthStencilForceLoadMode = ::std::os::raw::c_uint;
2666pub const SceGxmDepthStencilForceStoreMode_SCE_GXM_DEPTH_STENCIL_FORCE_STORE_DISABLED:
2667    SceGxmDepthStencilForceStoreMode = 0;
2668pub const SceGxmDepthStencilForceStoreMode_SCE_GXM_DEPTH_STENCIL_FORCE_STORE_ENABLED:
2669    SceGxmDepthStencilForceStoreMode = 4;
2670pub type SceGxmDepthStencilForceStoreMode = ::std::os::raw::c_uint;
2671pub const SceGxmSceneFlags_SCE_GXM_SCENE_FRAGMENT_SET_DEPENDENCY: SceGxmSceneFlags = 1;
2672pub const SceGxmSceneFlags_SCE_GXM_SCENE_VERTEX_WAIT_FOR_DEPENDENCY: SceGxmSceneFlags = 2;
2673pub const SceGxmSceneFlags_SCE_GXM_SCENE_FRAGMENT_TRANSFER_SYNC: SceGxmSceneFlags = 4;
2674pub const SceGxmSceneFlags_SCE_GXM_SCENE_VERTEX_TRANSFER_SYNC: SceGxmSceneFlags = 8;
2675pub type SceGxmSceneFlags = ::std::os::raw::c_uint;
2676pub const SceGxmMidSceneFlags_SCE_GXM_MIDSCENE_PRESERVE_DEFAULT_UNIFORM_BUFFERS:
2677    SceGxmMidSceneFlags = 1;
2678pub type SceGxmMidSceneFlags = ::std::os::raw::c_uint;
2679pub const SceGxmColorSurfaceScaleMode_SCE_GXM_COLOR_SURFACE_SCALE_NONE:
2680    SceGxmColorSurfaceScaleMode = 0;
2681pub const SceGxmColorSurfaceScaleMode_SCE_GXM_COLOR_SURFACE_SCALE_MSAA_DOWNSCALE:
2682    SceGxmColorSurfaceScaleMode = 1;
2683pub type SceGxmColorSurfaceScaleMode = ::std::os::raw::c_uint;
2684pub const SceGxmOutputRegisterSize_SCE_GXM_OUTPUT_REGISTER_SIZE_32BIT: SceGxmOutputRegisterSize = 0;
2685pub const SceGxmOutputRegisterSize_SCE_GXM_OUTPUT_REGISTER_SIZE_64BIT: SceGxmOutputRegisterSize = 1;
2686pub type SceGxmOutputRegisterSize = ::std::os::raw::c_uint;
2687pub const SceGxmVisibilityTestMode_SCE_GXM_VISIBILITY_TEST_DISABLED: SceGxmVisibilityTestMode = 0;
2688pub const SceGxmVisibilityTestMode_SCE_GXM_VISIBILITY_TEST_ENABLED: SceGxmVisibilityTestMode =
2689    16384;
2690pub type SceGxmVisibilityTestMode = ::std::os::raw::c_uint;
2691pub const SceGxmVisibilityTestOp_SCE_GXM_VISIBILITY_TEST_OP_INCREMENT: SceGxmVisibilityTestOp = 0;
2692pub const SceGxmVisibilityTestOp_SCE_GXM_VISIBILITY_TEST_OP_SET: SceGxmVisibilityTestOp = 262144;
2693pub type SceGxmVisibilityTestOp = ::std::os::raw::c_uint;
2694pub const SceGxmYuvProfile_SCE_GXM_YUV_PROFILE_BT601_STANDARD: SceGxmYuvProfile = 0;
2695pub const SceGxmYuvProfile_SCE_GXM_YUV_PROFILE_BT709_STANDARD: SceGxmYuvProfile = 1;
2696pub const SceGxmYuvProfile_SCE_GXM_YUV_PROFILE_BT601_FULL_RANGE: SceGxmYuvProfile = 2;
2697pub const SceGxmYuvProfile_SCE_GXM_YUV_PROFILE_BT709_FULL_RANGE: SceGxmYuvProfile = 3;
2698pub type SceGxmYuvProfile = ::std::os::raw::c_uint;
2699pub const SceGxmBlendFunc_SCE_GXM_BLEND_FUNC_NONE: SceGxmBlendFunc = 0;
2700pub const SceGxmBlendFunc_SCE_GXM_BLEND_FUNC_ADD: SceGxmBlendFunc = 1;
2701pub const SceGxmBlendFunc_SCE_GXM_BLEND_FUNC_SUBTRACT: SceGxmBlendFunc = 2;
2702pub const SceGxmBlendFunc_SCE_GXM_BLEND_FUNC_REVERSE_SUBTRACT: SceGxmBlendFunc = 3;
2703pub const SceGxmBlendFunc_SCE_GXM_BLEND_FUNC_MIN: SceGxmBlendFunc = 4;
2704pub const SceGxmBlendFunc_SCE_GXM_BLEND_FUNC_MAX: SceGxmBlendFunc = 5;
2705pub type SceGxmBlendFunc = ::std::os::raw::c_uint;
2706pub const SceGxmBlendFactor_SCE_GXM_BLEND_FACTOR_ZERO: SceGxmBlendFactor = 0;
2707pub const SceGxmBlendFactor_SCE_GXM_BLEND_FACTOR_ONE: SceGxmBlendFactor = 1;
2708pub const SceGxmBlendFactor_SCE_GXM_BLEND_FACTOR_SRC_COLOR: SceGxmBlendFactor = 2;
2709pub const SceGxmBlendFactor_SCE_GXM_BLEND_FACTOR_ONE_MINUS_SRC_COLOR: SceGxmBlendFactor = 3;
2710pub const SceGxmBlendFactor_SCE_GXM_BLEND_FACTOR_SRC_ALPHA: SceGxmBlendFactor = 4;
2711pub const SceGxmBlendFactor_SCE_GXM_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA: SceGxmBlendFactor = 5;
2712pub const SceGxmBlendFactor_SCE_GXM_BLEND_FACTOR_DST_COLOR: SceGxmBlendFactor = 6;
2713pub const SceGxmBlendFactor_SCE_GXM_BLEND_FACTOR_ONE_MINUS_DST_COLOR: SceGxmBlendFactor = 7;
2714pub const SceGxmBlendFactor_SCE_GXM_BLEND_FACTOR_DST_ALPHA: SceGxmBlendFactor = 8;
2715pub const SceGxmBlendFactor_SCE_GXM_BLEND_FACTOR_ONE_MINUS_DST_ALPHA: SceGxmBlendFactor = 9;
2716pub const SceGxmBlendFactor_SCE_GXM_BLEND_FACTOR_SRC_ALPHA_SATURATE: SceGxmBlendFactor = 10;
2717pub const SceGxmBlendFactor_SCE_GXM_BLEND_FACTOR_DST_ALPHA_SATURATE: SceGxmBlendFactor = 11;
2718pub type SceGxmBlendFactor = ::std::os::raw::c_uint;
2719pub const SceGxmColorMask_SCE_GXM_COLOR_MASK_NONE: SceGxmColorMask = 0;
2720pub const SceGxmColorMask_SCE_GXM_COLOR_MASK_A: SceGxmColorMask = 1;
2721pub const SceGxmColorMask_SCE_GXM_COLOR_MASK_R: SceGxmColorMask = 2;
2722pub const SceGxmColorMask_SCE_GXM_COLOR_MASK_G: SceGxmColorMask = 4;
2723pub const SceGxmColorMask_SCE_GXM_COLOR_MASK_B: SceGxmColorMask = 8;
2724pub const SceGxmColorMask_SCE_GXM_COLOR_MASK_ALL: SceGxmColorMask = 15;
2725pub type SceGxmColorMask = ::std::os::raw::c_uint;
2726pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_U8_R: SceGxmTransferFormat = 0;
2727pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_U4U4U4U4_ABGR: SceGxmTransferFormat = 65536;
2728pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_U1U5U5U5_ABGR: SceGxmTransferFormat = 131072;
2729pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_U5U6U5_BGR: SceGxmTransferFormat = 196608;
2730pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_U8U8_GR: SceGxmTransferFormat = 262144;
2731pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_U8U8U8_BGR: SceGxmTransferFormat = 327680;
2732pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_U8U8U8U8_ABGR: SceGxmTransferFormat = 393216;
2733pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_VYUY422: SceGxmTransferFormat = 458752;
2734pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_YVYU422: SceGxmTransferFormat = 524288;
2735pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_UYVY422: SceGxmTransferFormat = 589824;
2736pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_YUYV422: SceGxmTransferFormat = 655360;
2737pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_U2U10U10U10_ABGR: SceGxmTransferFormat =
2738    851968;
2739pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_RAW16: SceGxmTransferFormat = 983040;
2740pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_RAW32: SceGxmTransferFormat = 1114112;
2741pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_RAW64: SceGxmTransferFormat = 1179648;
2742pub const SceGxmTransferFormat_SCE_GXM_TRANSFER_FORMAT_RAW128: SceGxmTransferFormat = 1245184;
2743pub type SceGxmTransferFormat = ::std::os::raw::c_uint;
2744pub const SceGxmTransferFlags_SCE_GXM_TRANSFER_FRAGMENT_SYNC: SceGxmTransferFlags = 1;
2745pub const SceGxmTransferFlags_SCE_GXM_TRANSFER_VERTEX_SYNC: SceGxmTransferFlags = 2;
2746pub type SceGxmTransferFlags = ::std::os::raw::c_uint;
2747pub const SceGxmTransferColorKeyMode_SCE_GXM_TRANSFER_COLORKEY_NONE: SceGxmTransferColorKeyMode = 0;
2748pub const SceGxmTransferColorKeyMode_SCE_GXM_TRANSFER_COLORKEY_PASS: SceGxmTransferColorKeyMode = 1;
2749pub const SceGxmTransferColorKeyMode_SCE_GXM_TRANSFER_COLORKEY_REJECT: SceGxmTransferColorKeyMode =
2750    2;
2751pub type SceGxmTransferColorKeyMode = ::std::os::raw::c_uint;
2752#[doc = "!< Linear memory layout."]
2753pub const SceGxmTransferType_SCE_GXM_TRANSFER_LINEAR: SceGxmTransferType = 0;
2754#[doc = "!< Tiled memory layout."]
2755pub const SceGxmTransferType_SCE_GXM_TRANSFER_TILED: SceGxmTransferType = 4194304;
2756#[doc = "!< Swizzled memory layout."]
2757pub const SceGxmTransferType_SCE_GXM_TRANSFER_SWIZZLED: SceGxmTransferType = 8388608;
2758#[doc = " Transfer operation memory layouts"]
2759pub type SceGxmTransferType = ::std::os::raw::c_uint;
2760#[repr(C)]
2761#[derive(Debug, Copy, Clone)]
2762pub struct SceGxmBlendInfo {
2763    #[doc = "!< Color Mask (One of ::SceGxmColorMask)."]
2764    pub colorMask: u8,
2765    pub _bitfield_align_1: [u8; 0],
2766    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>,
2767}
2768#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2769const _: () = {
2770    ["Size of SceGxmBlendInfo"][::std::mem::size_of::<SceGxmBlendInfo>() - 4usize];
2771    ["Alignment of SceGxmBlendInfo"][::std::mem::align_of::<SceGxmBlendInfo>() - 1usize];
2772    ["Offset of field: SceGxmBlendInfo::colorMask"]
2773        [::std::mem::offset_of!(SceGxmBlendInfo, colorMask) - 0usize];
2774};
2775impl SceGxmBlendInfo {
2776    #[inline]
2777    pub fn colorFunc(&self) -> u8 {
2778        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) }
2779    }
2780    #[inline]
2781    pub fn set_colorFunc(&mut self, val: u8) {
2782        unsafe {
2783            let val: u8 = ::std::mem::transmute(val);
2784            self._bitfield_1.set(0usize, 4u8, val as u64)
2785        }
2786    }
2787    #[inline]
2788    pub unsafe fn colorFunc_raw(this: *const Self) -> u8 {
2789        unsafe {
2790            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2791                ::std::ptr::addr_of!((*this)._bitfield_1),
2792                0usize,
2793                4u8,
2794            ) as u8)
2795        }
2796    }
2797    #[inline]
2798    pub unsafe fn set_colorFunc_raw(this: *mut Self, val: u8) {
2799        unsafe {
2800            let val: u8 = ::std::mem::transmute(val);
2801            <__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2802                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2803                0usize,
2804                4u8,
2805                val as u64,
2806            )
2807        }
2808    }
2809    #[inline]
2810    pub fn alphaFunc(&self) -> u8 {
2811        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
2812    }
2813    #[inline]
2814    pub fn set_alphaFunc(&mut self, val: u8) {
2815        unsafe {
2816            let val: u8 = ::std::mem::transmute(val);
2817            self._bitfield_1.set(4usize, 4u8, val as u64)
2818        }
2819    }
2820    #[inline]
2821    pub unsafe fn alphaFunc_raw(this: *const Self) -> u8 {
2822        unsafe {
2823            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2824                ::std::ptr::addr_of!((*this)._bitfield_1),
2825                4usize,
2826                4u8,
2827            ) as u8)
2828        }
2829    }
2830    #[inline]
2831    pub unsafe fn set_alphaFunc_raw(this: *mut Self, val: u8) {
2832        unsafe {
2833            let val: u8 = ::std::mem::transmute(val);
2834            <__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2835                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2836                4usize,
2837                4u8,
2838                val as u64,
2839            )
2840        }
2841    }
2842    #[inline]
2843    pub fn colorSrc(&self) -> u8 {
2844        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 4u8) as u8) }
2845    }
2846    #[inline]
2847    pub fn set_colorSrc(&mut self, val: u8) {
2848        unsafe {
2849            let val: u8 = ::std::mem::transmute(val);
2850            self._bitfield_1.set(8usize, 4u8, val as u64)
2851        }
2852    }
2853    #[inline]
2854    pub unsafe fn colorSrc_raw(this: *const Self) -> u8 {
2855        unsafe {
2856            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2857                ::std::ptr::addr_of!((*this)._bitfield_1),
2858                8usize,
2859                4u8,
2860            ) as u8)
2861        }
2862    }
2863    #[inline]
2864    pub unsafe fn set_colorSrc_raw(this: *mut Self, val: u8) {
2865        unsafe {
2866            let val: u8 = ::std::mem::transmute(val);
2867            <__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2868                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2869                8usize,
2870                4u8,
2871                val as u64,
2872            )
2873        }
2874    }
2875    #[inline]
2876    pub fn colorDst(&self) -> u8 {
2877        unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 4u8) as u8) }
2878    }
2879    #[inline]
2880    pub fn set_colorDst(&mut self, val: u8) {
2881        unsafe {
2882            let val: u8 = ::std::mem::transmute(val);
2883            self._bitfield_1.set(12usize, 4u8, val as u64)
2884        }
2885    }
2886    #[inline]
2887    pub unsafe fn colorDst_raw(this: *const Self) -> u8 {
2888        unsafe {
2889            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2890                ::std::ptr::addr_of!((*this)._bitfield_1),
2891                12usize,
2892                4u8,
2893            ) as u8)
2894        }
2895    }
2896    #[inline]
2897    pub unsafe fn set_colorDst_raw(this: *mut Self, val: u8) {
2898        unsafe {
2899            let val: u8 = ::std::mem::transmute(val);
2900            <__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2901                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2902                12usize,
2903                4u8,
2904                val as u64,
2905            )
2906        }
2907    }
2908    #[inline]
2909    pub fn alphaSrc(&self) -> u8 {
2910        unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 4u8) as u8) }
2911    }
2912    #[inline]
2913    pub fn set_alphaSrc(&mut self, val: u8) {
2914        unsafe {
2915            let val: u8 = ::std::mem::transmute(val);
2916            self._bitfield_1.set(16usize, 4u8, val as u64)
2917        }
2918    }
2919    #[inline]
2920    pub unsafe fn alphaSrc_raw(this: *const Self) -> u8 {
2921        unsafe {
2922            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2923                ::std::ptr::addr_of!((*this)._bitfield_1),
2924                16usize,
2925                4u8,
2926            ) as u8)
2927        }
2928    }
2929    #[inline]
2930    pub unsafe fn set_alphaSrc_raw(this: *mut Self, val: u8) {
2931        unsafe {
2932            let val: u8 = ::std::mem::transmute(val);
2933            <__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2934                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2935                16usize,
2936                4u8,
2937                val as u64,
2938            )
2939        }
2940    }
2941    #[inline]
2942    pub fn alphaDst(&self) -> u8 {
2943        unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 4u8) as u8) }
2944    }
2945    #[inline]
2946    pub fn set_alphaDst(&mut self, val: u8) {
2947        unsafe {
2948            let val: u8 = ::std::mem::transmute(val);
2949            self._bitfield_1.set(20usize, 4u8, val as u64)
2950        }
2951    }
2952    #[inline]
2953    pub unsafe fn alphaDst_raw(this: *const Self) -> u8 {
2954        unsafe {
2955            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2956                ::std::ptr::addr_of!((*this)._bitfield_1),
2957                20usize,
2958                4u8,
2959            ) as u8)
2960        }
2961    }
2962    #[inline]
2963    pub unsafe fn set_alphaDst_raw(this: *mut Self, val: u8) {
2964        unsafe {
2965            let val: u8 = ::std::mem::transmute(val);
2966            <__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2967                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2968                20usize,
2969                4u8,
2970                val as u64,
2971            )
2972        }
2973    }
2974    #[inline]
2975    pub fn new_bitfield_1(
2976        colorFunc: u8,
2977        alphaFunc: u8,
2978        colorSrc: u8,
2979        colorDst: u8,
2980        alphaSrc: u8,
2981        alphaDst: u8,
2982    ) -> __BindgenBitfieldUnit<[u8; 3usize]> {
2983        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default();
2984        __bindgen_bitfield_unit.set(0usize, 4u8, {
2985            let colorFunc: u8 = unsafe { ::std::mem::transmute(colorFunc) };
2986            colorFunc as u64
2987        });
2988        __bindgen_bitfield_unit.set(4usize, 4u8, {
2989            let alphaFunc: u8 = unsafe { ::std::mem::transmute(alphaFunc) };
2990            alphaFunc as u64
2991        });
2992        __bindgen_bitfield_unit.set(8usize, 4u8, {
2993            let colorSrc: u8 = unsafe { ::std::mem::transmute(colorSrc) };
2994            colorSrc as u64
2995        });
2996        __bindgen_bitfield_unit.set(12usize, 4u8, {
2997            let colorDst: u8 = unsafe { ::std::mem::transmute(colorDst) };
2998            colorDst as u64
2999        });
3000        __bindgen_bitfield_unit.set(16usize, 4u8, {
3001            let alphaSrc: u8 = unsafe { ::std::mem::transmute(alphaSrc) };
3002            alphaSrc as u64
3003        });
3004        __bindgen_bitfield_unit.set(20usize, 4u8, {
3005            let alphaDst: u8 = unsafe { ::std::mem::transmute(alphaDst) };
3006            alphaDst as u64
3007        });
3008        __bindgen_bitfield_unit
3009    }
3010}
3011#[repr(C)]
3012#[derive(Debug, Copy, Clone)]
3013pub struct SceGxmRenderTarget {
3014    _unused: [u8; 0],
3015}
3016#[repr(C)]
3017#[derive(Debug, Copy, Clone)]
3018pub struct SceGxmSyncObject {
3019    _unused: [u8; 0],
3020}
3021#[repr(C)]
3022#[derive(Debug, Copy, Clone)]
3023pub struct SceGxmVertexAttribute {
3024    #[doc = "!< Vertex stream index."]
3025    pub streamIndex: u16,
3026    #[doc = "!< Offset for the stream data in bytes."]
3027    pub offset: u16,
3028    #[doc = "!< Stream data type (One of ::SceGxmAttributeFormat)."]
3029    pub format: u8,
3030    #[doc = "!< Number of components for the stream data."]
3031    pub componentCount: u8,
3032    #[doc = "!< The register index in the vertex shader to link stream to."]
3033    pub regIndex: u16,
3034}
3035#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3036const _: () = {
3037    ["Size of SceGxmVertexAttribute"][::std::mem::size_of::<SceGxmVertexAttribute>() - 8usize];
3038    ["Alignment of SceGxmVertexAttribute"]
3039        [::std::mem::align_of::<SceGxmVertexAttribute>() - 2usize];
3040    ["Offset of field: SceGxmVertexAttribute::streamIndex"]
3041        [::std::mem::offset_of!(SceGxmVertexAttribute, streamIndex) - 0usize];
3042    ["Offset of field: SceGxmVertexAttribute::offset"]
3043        [::std::mem::offset_of!(SceGxmVertexAttribute, offset) - 2usize];
3044    ["Offset of field: SceGxmVertexAttribute::format"]
3045        [::std::mem::offset_of!(SceGxmVertexAttribute, format) - 4usize];
3046    ["Offset of field: SceGxmVertexAttribute::componentCount"]
3047        [::std::mem::offset_of!(SceGxmVertexAttribute, componentCount) - 5usize];
3048    ["Offset of field: SceGxmVertexAttribute::regIndex"]
3049        [::std::mem::offset_of!(SceGxmVertexAttribute, regIndex) - 6usize];
3050};
3051#[repr(C)]
3052#[derive(Debug, Copy, Clone)]
3053pub struct SceGxmVertexStream {
3054    #[doc = "!< Stride (in bytes) between each element of the stream."]
3055    pub stride: u16,
3056    #[doc = "!< Indexing mode (One of ::SceGxmIndexSource)."]
3057    pub indexSource: u16,
3058}
3059#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3060const _: () = {
3061    ["Size of SceGxmVertexStream"][::std::mem::size_of::<SceGxmVertexStream>() - 4usize];
3062    ["Alignment of SceGxmVertexStream"][::std::mem::align_of::<SceGxmVertexStream>() - 2usize];
3063    ["Offset of field: SceGxmVertexStream::stride"]
3064        [::std::mem::offset_of!(SceGxmVertexStream, stride) - 0usize];
3065    ["Offset of field: SceGxmVertexStream::indexSource"]
3066        [::std::mem::offset_of!(SceGxmVertexStream, indexSource) - 2usize];
3067};
3068#[doc = "! Texture struct"]
3069#[repr(C)]
3070#[derive(Copy, Clone)]
3071pub struct SceGxmTexture {
3072    pub __bindgen_anon_1: SceGxmTexture__bindgen_ty_1,
3073    pub __bindgen_anon_2: SceGxmTexture__bindgen_ty_2,
3074    pub _bitfield_align_1: [u32; 0],
3075    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
3076}
3077#[repr(C)]
3078#[derive(Copy, Clone)]
3079pub union SceGxmTexture__bindgen_ty_1 {
3080    pub generic: SceGxmTexture__bindgen_ty_1__bindgen_ty_1,
3081    pub linear_strided: SceGxmTexture__bindgen_ty_1__bindgen_ty_2,
3082}
3083#[repr(C)]
3084#[repr(align(4))]
3085#[derive(Debug, Copy, Clone)]
3086pub struct SceGxmTexture__bindgen_ty_1__bindgen_ty_1 {
3087    pub _bitfield_align_1: [u8; 0],
3088    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
3089}
3090#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3091const _: () = {
3092    ["Size of SceGxmTexture__bindgen_ty_1__bindgen_ty_1"]
3093        [::std::mem::size_of::<SceGxmTexture__bindgen_ty_1__bindgen_ty_1>() - 4usize];
3094    ["Alignment of SceGxmTexture__bindgen_ty_1__bindgen_ty_1"]
3095        [::std::mem::align_of::<SceGxmTexture__bindgen_ty_1__bindgen_ty_1>() - 4usize];
3096};
3097impl SceGxmTexture__bindgen_ty_1__bindgen_ty_1 {
3098    #[inline]
3099    pub fn unk0(&self) -> u32 {
3100        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3101    }
3102    #[inline]
3103    pub fn set_unk0(&mut self, val: u32) {
3104        unsafe {
3105            let val: u32 = ::std::mem::transmute(val);
3106            self._bitfield_1.set(0usize, 1u8, val as u64)
3107        }
3108    }
3109    #[inline]
3110    pub unsafe fn unk0_raw(this: *const Self) -> u32 {
3111        unsafe {
3112            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3113                ::std::ptr::addr_of!((*this)._bitfield_1),
3114                0usize,
3115                1u8,
3116            ) as u32)
3117        }
3118    }
3119    #[inline]
3120    pub unsafe fn set_unk0_raw(this: *mut Self, val: u32) {
3121        unsafe {
3122            let val: u32 = ::std::mem::transmute(val);
3123            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3124                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3125                0usize,
3126                1u8,
3127                val as u64,
3128            )
3129        }
3130    }
3131    #[inline]
3132    pub fn stride_ext(&self) -> u32 {
3133        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) }
3134    }
3135    #[inline]
3136    pub fn set_stride_ext(&mut self, val: u32) {
3137        unsafe {
3138            let val: u32 = ::std::mem::transmute(val);
3139            self._bitfield_1.set(1usize, 2u8, val as u64)
3140        }
3141    }
3142    #[inline]
3143    pub unsafe fn stride_ext_raw(this: *const Self) -> u32 {
3144        unsafe {
3145            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3146                ::std::ptr::addr_of!((*this)._bitfield_1),
3147                1usize,
3148                2u8,
3149            ) as u32)
3150        }
3151    }
3152    #[inline]
3153    pub unsafe fn set_stride_ext_raw(this: *mut Self, val: u32) {
3154        unsafe {
3155            let val: u32 = ::std::mem::transmute(val);
3156            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3157                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3158                1usize,
3159                2u8,
3160                val as u64,
3161            )
3162        }
3163    }
3164    #[inline]
3165    pub fn vaddr_mode(&self) -> u32 {
3166        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 3u8) as u32) }
3167    }
3168    #[inline]
3169    pub fn set_vaddr_mode(&mut self, val: u32) {
3170        unsafe {
3171            let val: u32 = ::std::mem::transmute(val);
3172            self._bitfield_1.set(3usize, 3u8, val as u64)
3173        }
3174    }
3175    #[inline]
3176    pub unsafe fn vaddr_mode_raw(this: *const Self) -> u32 {
3177        unsafe {
3178            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3179                ::std::ptr::addr_of!((*this)._bitfield_1),
3180                3usize,
3181                3u8,
3182            ) as u32)
3183        }
3184    }
3185    #[inline]
3186    pub unsafe fn set_vaddr_mode_raw(this: *mut Self, val: u32) {
3187        unsafe {
3188            let val: u32 = ::std::mem::transmute(val);
3189            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3190                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3191                3usize,
3192                3u8,
3193                val as u64,
3194            )
3195        }
3196    }
3197    #[inline]
3198    pub fn uaddr_mode(&self) -> u32 {
3199        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 3u8) as u32) }
3200    }
3201    #[inline]
3202    pub fn set_uaddr_mode(&mut self, val: u32) {
3203        unsafe {
3204            let val: u32 = ::std::mem::transmute(val);
3205            self._bitfield_1.set(6usize, 3u8, val as u64)
3206        }
3207    }
3208    #[inline]
3209    pub unsafe fn uaddr_mode_raw(this: *const Self) -> u32 {
3210        unsafe {
3211            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3212                ::std::ptr::addr_of!((*this)._bitfield_1),
3213                6usize,
3214                3u8,
3215            ) as u32)
3216        }
3217    }
3218    #[inline]
3219    pub unsafe fn set_uaddr_mode_raw(this: *mut Self, val: u32) {
3220        unsafe {
3221            let val: u32 = ::std::mem::transmute(val);
3222            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3223                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3224                6usize,
3225                3u8,
3226                val as u64,
3227            )
3228        }
3229    }
3230    #[inline]
3231    pub fn mip_filter(&self) -> u32 {
3232        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
3233    }
3234    #[inline]
3235    pub fn set_mip_filter(&mut self, val: u32) {
3236        unsafe {
3237            let val: u32 = ::std::mem::transmute(val);
3238            self._bitfield_1.set(9usize, 1u8, val as u64)
3239        }
3240    }
3241    #[inline]
3242    pub unsafe fn mip_filter_raw(this: *const Self) -> u32 {
3243        unsafe {
3244            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3245                ::std::ptr::addr_of!((*this)._bitfield_1),
3246                9usize,
3247                1u8,
3248            ) as u32)
3249        }
3250    }
3251    #[inline]
3252    pub unsafe fn set_mip_filter_raw(this: *mut Self, val: u32) {
3253        unsafe {
3254            let val: u32 = ::std::mem::transmute(val);
3255            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3256                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3257                9usize,
3258                1u8,
3259                val as u64,
3260            )
3261        }
3262    }
3263    #[inline]
3264    pub fn min_filter(&self) -> u32 {
3265        unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u32) }
3266    }
3267    #[inline]
3268    pub fn set_min_filter(&mut self, val: u32) {
3269        unsafe {
3270            let val: u32 = ::std::mem::transmute(val);
3271            self._bitfield_1.set(10usize, 2u8, val as u64)
3272        }
3273    }
3274    #[inline]
3275    pub unsafe fn min_filter_raw(this: *const Self) -> u32 {
3276        unsafe {
3277            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3278                ::std::ptr::addr_of!((*this)._bitfield_1),
3279                10usize,
3280                2u8,
3281            ) as u32)
3282        }
3283    }
3284    #[inline]
3285    pub unsafe fn set_min_filter_raw(this: *mut Self, val: u32) {
3286        unsafe {
3287            let val: u32 = ::std::mem::transmute(val);
3288            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3289                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3290                10usize,
3291                2u8,
3292                val as u64,
3293            )
3294        }
3295    }
3296    #[inline]
3297    pub fn mag_filter(&self) -> u32 {
3298        unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 2u8) as u32) }
3299    }
3300    #[inline]
3301    pub fn set_mag_filter(&mut self, val: u32) {
3302        unsafe {
3303            let val: u32 = ::std::mem::transmute(val);
3304            self._bitfield_1.set(12usize, 2u8, val as u64)
3305        }
3306    }
3307    #[inline]
3308    pub unsafe fn mag_filter_raw(this: *const Self) -> u32 {
3309        unsafe {
3310            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3311                ::std::ptr::addr_of!((*this)._bitfield_1),
3312                12usize,
3313                2u8,
3314            ) as u32)
3315        }
3316    }
3317    #[inline]
3318    pub unsafe fn set_mag_filter_raw(this: *mut Self, val: u32) {
3319        unsafe {
3320            let val: u32 = ::std::mem::transmute(val);
3321            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3322                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3323                12usize,
3324                2u8,
3325                val as u64,
3326            )
3327        }
3328    }
3329    #[inline]
3330    pub fn unk1(&self) -> u32 {
3331        unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 3u8) as u32) }
3332    }
3333    #[inline]
3334    pub fn set_unk1(&mut self, val: u32) {
3335        unsafe {
3336            let val: u32 = ::std::mem::transmute(val);
3337            self._bitfield_1.set(14usize, 3u8, val as u64)
3338        }
3339    }
3340    #[inline]
3341    pub unsafe fn unk1_raw(this: *const Self) -> u32 {
3342        unsafe {
3343            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3344                ::std::ptr::addr_of!((*this)._bitfield_1),
3345                14usize,
3346                3u8,
3347            ) as u32)
3348        }
3349    }
3350    #[inline]
3351    pub unsafe fn set_unk1_raw(this: *mut Self, val: u32) {
3352        unsafe {
3353            let val: u32 = ::std::mem::transmute(val);
3354            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3355                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3356                14usize,
3357                3u8,
3358                val as u64,
3359            )
3360        }
3361    }
3362    #[inline]
3363    pub fn mip_count(&self) -> u32 {
3364        unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 4u8) as u32) }
3365    }
3366    #[inline]
3367    pub fn set_mip_count(&mut self, val: u32) {
3368        unsafe {
3369            let val: u32 = ::std::mem::transmute(val);
3370            self._bitfield_1.set(17usize, 4u8, val as u64)
3371        }
3372    }
3373    #[inline]
3374    pub unsafe fn mip_count_raw(this: *const Self) -> u32 {
3375        unsafe {
3376            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3377                ::std::ptr::addr_of!((*this)._bitfield_1),
3378                17usize,
3379                4u8,
3380            ) as u32)
3381        }
3382    }
3383    #[inline]
3384    pub unsafe fn set_mip_count_raw(this: *mut Self, val: u32) {
3385        unsafe {
3386            let val: u32 = ::std::mem::transmute(val);
3387            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3388                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3389                17usize,
3390                4u8,
3391                val as u64,
3392            )
3393        }
3394    }
3395    #[inline]
3396    pub fn lod_bias(&self) -> u32 {
3397        unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 6u8) as u32) }
3398    }
3399    #[inline]
3400    pub fn set_lod_bias(&mut self, val: u32) {
3401        unsafe {
3402            let val: u32 = ::std::mem::transmute(val);
3403            self._bitfield_1.set(21usize, 6u8, val as u64)
3404        }
3405    }
3406    #[inline]
3407    pub unsafe fn lod_bias_raw(this: *const Self) -> u32 {
3408        unsafe {
3409            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3410                ::std::ptr::addr_of!((*this)._bitfield_1),
3411                21usize,
3412                6u8,
3413            ) as u32)
3414        }
3415    }
3416    #[inline]
3417    pub unsafe fn set_lod_bias_raw(this: *mut Self, val: u32) {
3418        unsafe {
3419            let val: u32 = ::std::mem::transmute(val);
3420            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3421                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3422                21usize,
3423                6u8,
3424                val as u64,
3425            )
3426        }
3427    }
3428    #[inline]
3429    pub fn gamma_mode(&self) -> u32 {
3430        unsafe { ::std::mem::transmute(self._bitfield_1.get(27usize, 2u8) as u32) }
3431    }
3432    #[inline]
3433    pub fn set_gamma_mode(&mut self, val: u32) {
3434        unsafe {
3435            let val: u32 = ::std::mem::transmute(val);
3436            self._bitfield_1.set(27usize, 2u8, val as u64)
3437        }
3438    }
3439    #[inline]
3440    pub unsafe fn gamma_mode_raw(this: *const Self) -> u32 {
3441        unsafe {
3442            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3443                ::std::ptr::addr_of!((*this)._bitfield_1),
3444                27usize,
3445                2u8,
3446            ) as u32)
3447        }
3448    }
3449    #[inline]
3450    pub unsafe fn set_gamma_mode_raw(this: *mut Self, val: u32) {
3451        unsafe {
3452            let val: u32 = ::std::mem::transmute(val);
3453            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3454                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3455                27usize,
3456                2u8,
3457                val as u64,
3458            )
3459        }
3460    }
3461    #[inline]
3462    pub fn unk2(&self) -> u32 {
3463        unsafe { ::std::mem::transmute(self._bitfield_1.get(29usize, 2u8) as u32) }
3464    }
3465    #[inline]
3466    pub fn set_unk2(&mut self, val: u32) {
3467        unsafe {
3468            let val: u32 = ::std::mem::transmute(val);
3469            self._bitfield_1.set(29usize, 2u8, val as u64)
3470        }
3471    }
3472    #[inline]
3473    pub unsafe fn unk2_raw(this: *const Self) -> u32 {
3474        unsafe {
3475            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3476                ::std::ptr::addr_of!((*this)._bitfield_1),
3477                29usize,
3478                2u8,
3479            ) as u32)
3480        }
3481    }
3482    #[inline]
3483    pub unsafe fn set_unk2_raw(this: *mut Self, val: u32) {
3484        unsafe {
3485            let val: u32 = ::std::mem::transmute(val);
3486            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3487                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3488                29usize,
3489                2u8,
3490                val as u64,
3491            )
3492        }
3493    }
3494    #[inline]
3495    pub fn format0(&self) -> u32 {
3496        unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) }
3497    }
3498    #[inline]
3499    pub fn set_format0(&mut self, val: u32) {
3500        unsafe {
3501            let val: u32 = ::std::mem::transmute(val);
3502            self._bitfield_1.set(31usize, 1u8, val as u64)
3503        }
3504    }
3505    #[inline]
3506    pub unsafe fn format0_raw(this: *const Self) -> u32 {
3507        unsafe {
3508            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3509                ::std::ptr::addr_of!((*this)._bitfield_1),
3510                31usize,
3511                1u8,
3512            ) as u32)
3513        }
3514    }
3515    #[inline]
3516    pub unsafe fn set_format0_raw(this: *mut Self, val: u32) {
3517        unsafe {
3518            let val: u32 = ::std::mem::transmute(val);
3519            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3520                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3521                31usize,
3522                1u8,
3523                val as u64,
3524            )
3525        }
3526    }
3527    #[inline]
3528    pub fn new_bitfield_1(
3529        unk0: u32,
3530        stride_ext: u32,
3531        vaddr_mode: u32,
3532        uaddr_mode: u32,
3533        mip_filter: u32,
3534        min_filter: u32,
3535        mag_filter: u32,
3536        unk1: u32,
3537        mip_count: u32,
3538        lod_bias: u32,
3539        gamma_mode: u32,
3540        unk2: u32,
3541        format0: u32,
3542    ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
3543        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
3544        __bindgen_bitfield_unit.set(0usize, 1u8, {
3545            let unk0: u32 = unsafe { ::std::mem::transmute(unk0) };
3546            unk0 as u64
3547        });
3548        __bindgen_bitfield_unit.set(1usize, 2u8, {
3549            let stride_ext: u32 = unsafe { ::std::mem::transmute(stride_ext) };
3550            stride_ext as u64
3551        });
3552        __bindgen_bitfield_unit.set(3usize, 3u8, {
3553            let vaddr_mode: u32 = unsafe { ::std::mem::transmute(vaddr_mode) };
3554            vaddr_mode as u64
3555        });
3556        __bindgen_bitfield_unit.set(6usize, 3u8, {
3557            let uaddr_mode: u32 = unsafe { ::std::mem::transmute(uaddr_mode) };
3558            uaddr_mode as u64
3559        });
3560        __bindgen_bitfield_unit.set(9usize, 1u8, {
3561            let mip_filter: u32 = unsafe { ::std::mem::transmute(mip_filter) };
3562            mip_filter as u64
3563        });
3564        __bindgen_bitfield_unit.set(10usize, 2u8, {
3565            let min_filter: u32 = unsafe { ::std::mem::transmute(min_filter) };
3566            min_filter as u64
3567        });
3568        __bindgen_bitfield_unit.set(12usize, 2u8, {
3569            let mag_filter: u32 = unsafe { ::std::mem::transmute(mag_filter) };
3570            mag_filter as u64
3571        });
3572        __bindgen_bitfield_unit.set(14usize, 3u8, {
3573            let unk1: u32 = unsafe { ::std::mem::transmute(unk1) };
3574            unk1 as u64
3575        });
3576        __bindgen_bitfield_unit.set(17usize, 4u8, {
3577            let mip_count: u32 = unsafe { ::std::mem::transmute(mip_count) };
3578            mip_count as u64
3579        });
3580        __bindgen_bitfield_unit.set(21usize, 6u8, {
3581            let lod_bias: u32 = unsafe { ::std::mem::transmute(lod_bias) };
3582            lod_bias as u64
3583        });
3584        __bindgen_bitfield_unit.set(27usize, 2u8, {
3585            let gamma_mode: u32 = unsafe { ::std::mem::transmute(gamma_mode) };
3586            gamma_mode as u64
3587        });
3588        __bindgen_bitfield_unit.set(29usize, 2u8, {
3589            let unk2: u32 = unsafe { ::std::mem::transmute(unk2) };
3590            unk2 as u64
3591        });
3592        __bindgen_bitfield_unit.set(31usize, 1u8, {
3593            let format0: u32 = unsafe { ::std::mem::transmute(format0) };
3594            format0 as u64
3595        });
3596        __bindgen_bitfield_unit
3597    }
3598}
3599#[repr(C)]
3600#[repr(align(4))]
3601#[derive(Debug, Copy, Clone)]
3602pub struct SceGxmTexture__bindgen_ty_1__bindgen_ty_2 {
3603    pub _bitfield_align_1: [u16; 0],
3604    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
3605}
3606#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3607const _: () = {
3608    ["Size of SceGxmTexture__bindgen_ty_1__bindgen_ty_2"]
3609        [::std::mem::size_of::<SceGxmTexture__bindgen_ty_1__bindgen_ty_2>() - 4usize];
3610    ["Alignment of SceGxmTexture__bindgen_ty_1__bindgen_ty_2"]
3611        [::std::mem::align_of::<SceGxmTexture__bindgen_ty_1__bindgen_ty_2>() - 4usize];
3612};
3613impl SceGxmTexture__bindgen_ty_1__bindgen_ty_2 {
3614    #[inline]
3615    pub fn unk0(&self) -> u32 {
3616        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3617    }
3618    #[inline]
3619    pub fn set_unk0(&mut self, val: u32) {
3620        unsafe {
3621            let val: u32 = ::std::mem::transmute(val);
3622            self._bitfield_1.set(0usize, 1u8, val as u64)
3623        }
3624    }
3625    #[inline]
3626    pub unsafe fn unk0_raw(this: *const Self) -> u32 {
3627        unsafe {
3628            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3629                ::std::ptr::addr_of!((*this)._bitfield_1),
3630                0usize,
3631                1u8,
3632            ) as u32)
3633        }
3634    }
3635    #[inline]
3636    pub unsafe fn set_unk0_raw(this: *mut Self, val: u32) {
3637        unsafe {
3638            let val: u32 = ::std::mem::transmute(val);
3639            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3640                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3641                0usize,
3642                1u8,
3643                val as u64,
3644            )
3645        }
3646    }
3647    #[inline]
3648    pub fn stride_ext(&self) -> u32 {
3649        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) }
3650    }
3651    #[inline]
3652    pub fn set_stride_ext(&mut self, val: u32) {
3653        unsafe {
3654            let val: u32 = ::std::mem::transmute(val);
3655            self._bitfield_1.set(1usize, 2u8, val as u64)
3656        }
3657    }
3658    #[inline]
3659    pub unsafe fn stride_ext_raw(this: *const Self) -> u32 {
3660        unsafe {
3661            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3662                ::std::ptr::addr_of!((*this)._bitfield_1),
3663                1usize,
3664                2u8,
3665            ) as u32)
3666        }
3667    }
3668    #[inline]
3669    pub unsafe fn set_stride_ext_raw(this: *mut Self, val: u32) {
3670        unsafe {
3671            let val: u32 = ::std::mem::transmute(val);
3672            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3673                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3674                1usize,
3675                2u8,
3676                val as u64,
3677            )
3678        }
3679    }
3680    #[inline]
3681    pub fn vaddr_mode(&self) -> u32 {
3682        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 3u8) as u32) }
3683    }
3684    #[inline]
3685    pub fn set_vaddr_mode(&mut self, val: u32) {
3686        unsafe {
3687            let val: u32 = ::std::mem::transmute(val);
3688            self._bitfield_1.set(3usize, 3u8, val as u64)
3689        }
3690    }
3691    #[inline]
3692    pub unsafe fn vaddr_mode_raw(this: *const Self) -> u32 {
3693        unsafe {
3694            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3695                ::std::ptr::addr_of!((*this)._bitfield_1),
3696                3usize,
3697                3u8,
3698            ) as u32)
3699        }
3700    }
3701    #[inline]
3702    pub unsafe fn set_vaddr_mode_raw(this: *mut Self, val: u32) {
3703        unsafe {
3704            let val: u32 = ::std::mem::transmute(val);
3705            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3706                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3707                3usize,
3708                3u8,
3709                val as u64,
3710            )
3711        }
3712    }
3713    #[inline]
3714    pub fn uaddr_mode(&self) -> u32 {
3715        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 3u8) as u32) }
3716    }
3717    #[inline]
3718    pub fn set_uaddr_mode(&mut self, val: u32) {
3719        unsafe {
3720            let val: u32 = ::std::mem::transmute(val);
3721            self._bitfield_1.set(6usize, 3u8, val as u64)
3722        }
3723    }
3724    #[inline]
3725    pub unsafe fn uaddr_mode_raw(this: *const Self) -> u32 {
3726        unsafe {
3727            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3728                ::std::ptr::addr_of!((*this)._bitfield_1),
3729                6usize,
3730                3u8,
3731            ) as u32)
3732        }
3733    }
3734    #[inline]
3735    pub unsafe fn set_uaddr_mode_raw(this: *mut Self, val: u32) {
3736        unsafe {
3737            let val: u32 = ::std::mem::transmute(val);
3738            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3739                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3740                6usize,
3741                3u8,
3742                val as u64,
3743            )
3744        }
3745    }
3746    #[inline]
3747    pub fn stride_low(&self) -> u32 {
3748        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 3u8) as u32) }
3749    }
3750    #[inline]
3751    pub fn set_stride_low(&mut self, val: u32) {
3752        unsafe {
3753            let val: u32 = ::std::mem::transmute(val);
3754            self._bitfield_1.set(9usize, 3u8, val as u64)
3755        }
3756    }
3757    #[inline]
3758    pub unsafe fn stride_low_raw(this: *const Self) -> u32 {
3759        unsafe {
3760            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3761                ::std::ptr::addr_of!((*this)._bitfield_1),
3762                9usize,
3763                3u8,
3764            ) as u32)
3765        }
3766    }
3767    #[inline]
3768    pub unsafe fn set_stride_low_raw(this: *mut Self, val: u32) {
3769        unsafe {
3770            let val: u32 = ::std::mem::transmute(val);
3771            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3772                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3773                9usize,
3774                3u8,
3775                val as u64,
3776            )
3777        }
3778    }
3779    #[inline]
3780    pub fn mag_filter(&self) -> u32 {
3781        unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 2u8) as u32) }
3782    }
3783    #[inline]
3784    pub fn set_mag_filter(&mut self, val: u32) {
3785        unsafe {
3786            let val: u32 = ::std::mem::transmute(val);
3787            self._bitfield_1.set(12usize, 2u8, val as u64)
3788        }
3789    }
3790    #[inline]
3791    pub unsafe fn mag_filter_raw(this: *const Self) -> u32 {
3792        unsafe {
3793            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3794                ::std::ptr::addr_of!((*this)._bitfield_1),
3795                12usize,
3796                2u8,
3797            ) as u32)
3798        }
3799    }
3800    #[inline]
3801    pub unsafe fn set_mag_filter_raw(this: *mut Self, val: u32) {
3802        unsafe {
3803            let val: u32 = ::std::mem::transmute(val);
3804            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3805                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3806                12usize,
3807                2u8,
3808                val as u64,
3809            )
3810        }
3811    }
3812    #[inline]
3813    pub fn unk1(&self) -> u32 {
3814        unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 3u8) as u32) }
3815    }
3816    #[inline]
3817    pub fn set_unk1(&mut self, val: u32) {
3818        unsafe {
3819            let val: u32 = ::std::mem::transmute(val);
3820            self._bitfield_1.set(14usize, 3u8, val as u64)
3821        }
3822    }
3823    #[inline]
3824    pub unsafe fn unk1_raw(this: *const Self) -> u32 {
3825        unsafe {
3826            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3827                ::std::ptr::addr_of!((*this)._bitfield_1),
3828                14usize,
3829                3u8,
3830            ) as u32)
3831        }
3832    }
3833    #[inline]
3834    pub unsafe fn set_unk1_raw(this: *mut Self, val: u32) {
3835        unsafe {
3836            let val: u32 = ::std::mem::transmute(val);
3837            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3838                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3839                14usize,
3840                3u8,
3841                val as u64,
3842            )
3843        }
3844    }
3845    #[inline]
3846    pub fn stride(&self) -> u32 {
3847        unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 10u8) as u32) }
3848    }
3849    #[inline]
3850    pub fn set_stride(&mut self, val: u32) {
3851        unsafe {
3852            let val: u32 = ::std::mem::transmute(val);
3853            self._bitfield_1.set(17usize, 10u8, val as u64)
3854        }
3855    }
3856    #[inline]
3857    pub unsafe fn stride_raw(this: *const Self) -> u32 {
3858        unsafe {
3859            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3860                ::std::ptr::addr_of!((*this)._bitfield_1),
3861                17usize,
3862                10u8,
3863            ) as u32)
3864        }
3865    }
3866    #[inline]
3867    pub unsafe fn set_stride_raw(this: *mut Self, val: u32) {
3868        unsafe {
3869            let val: u32 = ::std::mem::transmute(val);
3870            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3871                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3872                17usize,
3873                10u8,
3874                val as u64,
3875            )
3876        }
3877    }
3878    #[inline]
3879    pub fn gamma_mode(&self) -> u32 {
3880        unsafe { ::std::mem::transmute(self._bitfield_1.get(27usize, 2u8) as u32) }
3881    }
3882    #[inline]
3883    pub fn set_gamma_mode(&mut self, val: u32) {
3884        unsafe {
3885            let val: u32 = ::std::mem::transmute(val);
3886            self._bitfield_1.set(27usize, 2u8, val as u64)
3887        }
3888    }
3889    #[inline]
3890    pub unsafe fn gamma_mode_raw(this: *const Self) -> u32 {
3891        unsafe {
3892            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3893                ::std::ptr::addr_of!((*this)._bitfield_1),
3894                27usize,
3895                2u8,
3896            ) as u32)
3897        }
3898    }
3899    #[inline]
3900    pub unsafe fn set_gamma_mode_raw(this: *mut Self, val: u32) {
3901        unsafe {
3902            let val: u32 = ::std::mem::transmute(val);
3903            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3904                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3905                27usize,
3906                2u8,
3907                val as u64,
3908            )
3909        }
3910    }
3911    #[inline]
3912    pub fn unk2(&self) -> u32 {
3913        unsafe { ::std::mem::transmute(self._bitfield_1.get(29usize, 2u8) as u32) }
3914    }
3915    #[inline]
3916    pub fn set_unk2(&mut self, val: u32) {
3917        unsafe {
3918            let val: u32 = ::std::mem::transmute(val);
3919            self._bitfield_1.set(29usize, 2u8, val as u64)
3920        }
3921    }
3922    #[inline]
3923    pub unsafe fn unk2_raw(this: *const Self) -> u32 {
3924        unsafe {
3925            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3926                ::std::ptr::addr_of!((*this)._bitfield_1),
3927                29usize,
3928                2u8,
3929            ) as u32)
3930        }
3931    }
3932    #[inline]
3933    pub unsafe fn set_unk2_raw(this: *mut Self, val: u32) {
3934        unsafe {
3935            let val: u32 = ::std::mem::transmute(val);
3936            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3937                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3938                29usize,
3939                2u8,
3940                val as u64,
3941            )
3942        }
3943    }
3944    #[inline]
3945    pub fn format0(&self) -> u32 {
3946        unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) }
3947    }
3948    #[inline]
3949    pub fn set_format0(&mut self, val: u32) {
3950        unsafe {
3951            let val: u32 = ::std::mem::transmute(val);
3952            self._bitfield_1.set(31usize, 1u8, val as u64)
3953        }
3954    }
3955    #[inline]
3956    pub unsafe fn format0_raw(this: *const Self) -> u32 {
3957        unsafe {
3958            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3959                ::std::ptr::addr_of!((*this)._bitfield_1),
3960                31usize,
3961                1u8,
3962            ) as u32)
3963        }
3964    }
3965    #[inline]
3966    pub unsafe fn set_format0_raw(this: *mut Self, val: u32) {
3967        unsafe {
3968            let val: u32 = ::std::mem::transmute(val);
3969            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3970                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3971                31usize,
3972                1u8,
3973                val as u64,
3974            )
3975        }
3976    }
3977    #[inline]
3978    pub fn new_bitfield_1(
3979        unk0: u32,
3980        stride_ext: u32,
3981        vaddr_mode: u32,
3982        uaddr_mode: u32,
3983        stride_low: u32,
3984        mag_filter: u32,
3985        unk1: u32,
3986        stride: u32,
3987        gamma_mode: u32,
3988        unk2: u32,
3989        format0: u32,
3990    ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
3991        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
3992        __bindgen_bitfield_unit.set(0usize, 1u8, {
3993            let unk0: u32 = unsafe { ::std::mem::transmute(unk0) };
3994            unk0 as u64
3995        });
3996        __bindgen_bitfield_unit.set(1usize, 2u8, {
3997            let stride_ext: u32 = unsafe { ::std::mem::transmute(stride_ext) };
3998            stride_ext as u64
3999        });
4000        __bindgen_bitfield_unit.set(3usize, 3u8, {
4001            let vaddr_mode: u32 = unsafe { ::std::mem::transmute(vaddr_mode) };
4002            vaddr_mode as u64
4003        });
4004        __bindgen_bitfield_unit.set(6usize, 3u8, {
4005            let uaddr_mode: u32 = unsafe { ::std::mem::transmute(uaddr_mode) };
4006            uaddr_mode as u64
4007        });
4008        __bindgen_bitfield_unit.set(9usize, 3u8, {
4009            let stride_low: u32 = unsafe { ::std::mem::transmute(stride_low) };
4010            stride_low as u64
4011        });
4012        __bindgen_bitfield_unit.set(12usize, 2u8, {
4013            let mag_filter: u32 = unsafe { ::std::mem::transmute(mag_filter) };
4014            mag_filter as u64
4015        });
4016        __bindgen_bitfield_unit.set(14usize, 3u8, {
4017            let unk1: u32 = unsafe { ::std::mem::transmute(unk1) };
4018            unk1 as u64
4019        });
4020        __bindgen_bitfield_unit.set(17usize, 10u8, {
4021            let stride: u32 = unsafe { ::std::mem::transmute(stride) };
4022            stride as u64
4023        });
4024        __bindgen_bitfield_unit.set(27usize, 2u8, {
4025            let gamma_mode: u32 = unsafe { ::std::mem::transmute(gamma_mode) };
4026            gamma_mode as u64
4027        });
4028        __bindgen_bitfield_unit.set(29usize, 2u8, {
4029            let unk2: u32 = unsafe { ::std::mem::transmute(unk2) };
4030            unk2 as u64
4031        });
4032        __bindgen_bitfield_unit.set(31usize, 1u8, {
4033            let format0: u32 = unsafe { ::std::mem::transmute(format0) };
4034            format0 as u64
4035        });
4036        __bindgen_bitfield_unit
4037    }
4038}
4039#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4040const _: () = {
4041    ["Size of SceGxmTexture__bindgen_ty_1"]
4042        [::std::mem::size_of::<SceGxmTexture__bindgen_ty_1>() - 4usize];
4043    ["Alignment of SceGxmTexture__bindgen_ty_1"]
4044        [::std::mem::align_of::<SceGxmTexture__bindgen_ty_1>() - 4usize];
4045    ["Offset of field: SceGxmTexture__bindgen_ty_1::generic"]
4046        [::std::mem::offset_of!(SceGxmTexture__bindgen_ty_1, generic) - 0usize];
4047    ["Offset of field: SceGxmTexture__bindgen_ty_1::linear_strided"]
4048        [::std::mem::offset_of!(SceGxmTexture__bindgen_ty_1, linear_strided) - 0usize];
4049};
4050#[repr(C)]
4051#[derive(Copy, Clone)]
4052pub union SceGxmTexture__bindgen_ty_2 {
4053    pub generic2: SceGxmTexture__bindgen_ty_2__bindgen_ty_1,
4054    pub swizzled_cube: SceGxmTexture__bindgen_ty_2__bindgen_ty_2,
4055}
4056#[repr(C)]
4057#[repr(align(4))]
4058#[derive(Debug, Copy, Clone)]
4059pub struct SceGxmTexture__bindgen_ty_2__bindgen_ty_1 {
4060    pub _bitfield_align_1: [u16; 0],
4061    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
4062}
4063#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4064const _: () = {
4065    ["Size of SceGxmTexture__bindgen_ty_2__bindgen_ty_1"]
4066        [::std::mem::size_of::<SceGxmTexture__bindgen_ty_2__bindgen_ty_1>() - 4usize];
4067    ["Alignment of SceGxmTexture__bindgen_ty_2__bindgen_ty_1"]
4068        [::std::mem::align_of::<SceGxmTexture__bindgen_ty_2__bindgen_ty_1>() - 4usize];
4069};
4070impl SceGxmTexture__bindgen_ty_2__bindgen_ty_1 {
4071    #[inline]
4072    pub fn height(&self) -> u32 {
4073        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u32) }
4074    }
4075    #[inline]
4076    pub fn set_height(&mut self, val: u32) {
4077        unsafe {
4078            let val: u32 = ::std::mem::transmute(val);
4079            self._bitfield_1.set(0usize, 12u8, val as u64)
4080        }
4081    }
4082    #[inline]
4083    pub unsafe fn height_raw(this: *const Self) -> u32 {
4084        unsafe {
4085            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4086                ::std::ptr::addr_of!((*this)._bitfield_1),
4087                0usize,
4088                12u8,
4089            ) as u32)
4090        }
4091    }
4092    #[inline]
4093    pub unsafe fn set_height_raw(this: *mut Self, val: u32) {
4094        unsafe {
4095            let val: u32 = ::std::mem::transmute(val);
4096            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4097                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4098                0usize,
4099                12u8,
4100                val as u64,
4101            )
4102        }
4103    }
4104    #[inline]
4105    pub fn width(&self) -> u32 {
4106        unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 12u8) as u32) }
4107    }
4108    #[inline]
4109    pub fn set_width(&mut self, val: u32) {
4110        unsafe {
4111            let val: u32 = ::std::mem::transmute(val);
4112            self._bitfield_1.set(12usize, 12u8, val as u64)
4113        }
4114    }
4115    #[inline]
4116    pub unsafe fn width_raw(this: *const Self) -> u32 {
4117        unsafe {
4118            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4119                ::std::ptr::addr_of!((*this)._bitfield_1),
4120                12usize,
4121                12u8,
4122            ) as u32)
4123        }
4124    }
4125    #[inline]
4126    pub unsafe fn set_width_raw(this: *mut Self, val: u32) {
4127        unsafe {
4128            let val: u32 = ::std::mem::transmute(val);
4129            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4130                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4131                12usize,
4132                12u8,
4133                val as u64,
4134            )
4135        }
4136    }
4137    #[inline]
4138    pub fn base_format(&self) -> u32 {
4139        unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 5u8) as u32) }
4140    }
4141    #[inline]
4142    pub fn set_base_format(&mut self, val: u32) {
4143        unsafe {
4144            let val: u32 = ::std::mem::transmute(val);
4145            self._bitfield_1.set(24usize, 5u8, val as u64)
4146        }
4147    }
4148    #[inline]
4149    pub unsafe fn base_format_raw(this: *const Self) -> u32 {
4150        unsafe {
4151            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4152                ::std::ptr::addr_of!((*this)._bitfield_1),
4153                24usize,
4154                5u8,
4155            ) as u32)
4156        }
4157    }
4158    #[inline]
4159    pub unsafe fn set_base_format_raw(this: *mut Self, val: u32) {
4160        unsafe {
4161            let val: u32 = ::std::mem::transmute(val);
4162            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4163                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4164                24usize,
4165                5u8,
4166                val as u64,
4167            )
4168        }
4169    }
4170    #[inline]
4171    pub fn type_(&self) -> u32 {
4172        unsafe { ::std::mem::transmute(self._bitfield_1.get(29usize, 3u8) as u32) }
4173    }
4174    #[inline]
4175    pub fn set_type(&mut self, val: u32) {
4176        unsafe {
4177            let val: u32 = ::std::mem::transmute(val);
4178            self._bitfield_1.set(29usize, 3u8, val as u64)
4179        }
4180    }
4181    #[inline]
4182    pub unsafe fn type__raw(this: *const Self) -> u32 {
4183        unsafe {
4184            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4185                ::std::ptr::addr_of!((*this)._bitfield_1),
4186                29usize,
4187                3u8,
4188            ) as u32)
4189        }
4190    }
4191    #[inline]
4192    pub unsafe fn set_type_raw(this: *mut Self, val: u32) {
4193        unsafe {
4194            let val: u32 = ::std::mem::transmute(val);
4195            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4196                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4197                29usize,
4198                3u8,
4199                val as u64,
4200            )
4201        }
4202    }
4203    #[inline]
4204    pub fn new_bitfield_1(
4205        height: u32,
4206        width: u32,
4207        base_format: u32,
4208        type_: u32,
4209    ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
4210        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
4211        __bindgen_bitfield_unit.set(0usize, 12u8, {
4212            let height: u32 = unsafe { ::std::mem::transmute(height) };
4213            height as u64
4214        });
4215        __bindgen_bitfield_unit.set(12usize, 12u8, {
4216            let width: u32 = unsafe { ::std::mem::transmute(width) };
4217            width as u64
4218        });
4219        __bindgen_bitfield_unit.set(24usize, 5u8, {
4220            let base_format: u32 = unsafe { ::std::mem::transmute(base_format) };
4221            base_format as u64
4222        });
4223        __bindgen_bitfield_unit.set(29usize, 3u8, {
4224            let type_: u32 = unsafe { ::std::mem::transmute(type_) };
4225            type_ as u64
4226        });
4227        __bindgen_bitfield_unit
4228    }
4229}
4230#[repr(C)]
4231#[repr(align(4))]
4232#[derive(Debug, Copy, Clone)]
4233pub struct SceGxmTexture__bindgen_ty_2__bindgen_ty_2 {
4234    pub _bitfield_align_1: [u16; 0],
4235    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
4236}
4237#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4238const _: () = {
4239    ["Size of SceGxmTexture__bindgen_ty_2__bindgen_ty_2"]
4240        [::std::mem::size_of::<SceGxmTexture__bindgen_ty_2__bindgen_ty_2>() - 4usize];
4241    ["Alignment of SceGxmTexture__bindgen_ty_2__bindgen_ty_2"]
4242        [::std::mem::align_of::<SceGxmTexture__bindgen_ty_2__bindgen_ty_2>() - 4usize];
4243};
4244impl SceGxmTexture__bindgen_ty_2__bindgen_ty_2 {
4245    #[inline]
4246    pub fn height_pot(&self) -> u32 {
4247        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
4248    }
4249    #[inline]
4250    pub fn set_height_pot(&mut self, val: u32) {
4251        unsafe {
4252            let val: u32 = ::std::mem::transmute(val);
4253            self._bitfield_1.set(0usize, 4u8, val as u64)
4254        }
4255    }
4256    #[inline]
4257    pub unsafe fn height_pot_raw(this: *const Self) -> u32 {
4258        unsafe {
4259            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4260                ::std::ptr::addr_of!((*this)._bitfield_1),
4261                0usize,
4262                4u8,
4263            ) as u32)
4264        }
4265    }
4266    #[inline]
4267    pub unsafe fn set_height_pot_raw(this: *mut Self, val: u32) {
4268        unsafe {
4269            let val: u32 = ::std::mem::transmute(val);
4270            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4271                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4272                0usize,
4273                4u8,
4274                val as u64,
4275            )
4276        }
4277    }
4278    #[inline]
4279    pub fn reserved0(&self) -> u32 {
4280        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 12u8) as u32) }
4281    }
4282    #[inline]
4283    pub fn set_reserved0(&mut self, val: u32) {
4284        unsafe {
4285            let val: u32 = ::std::mem::transmute(val);
4286            self._bitfield_1.set(4usize, 12u8, val as u64)
4287        }
4288    }
4289    #[inline]
4290    pub unsafe fn reserved0_raw(this: *const Self) -> u32 {
4291        unsafe {
4292            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4293                ::std::ptr::addr_of!((*this)._bitfield_1),
4294                4usize,
4295                12u8,
4296            ) as u32)
4297        }
4298    }
4299    #[inline]
4300    pub unsafe fn set_reserved0_raw(this: *mut Self, val: u32) {
4301        unsafe {
4302            let val: u32 = ::std::mem::transmute(val);
4303            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4304                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4305                4usize,
4306                12u8,
4307                val as u64,
4308            )
4309        }
4310    }
4311    #[inline]
4312    pub fn width_pot(&self) -> u32 {
4313        unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 4u8) as u32) }
4314    }
4315    #[inline]
4316    pub fn set_width_pot(&mut self, val: u32) {
4317        unsafe {
4318            let val: u32 = ::std::mem::transmute(val);
4319            self._bitfield_1.set(16usize, 4u8, val as u64)
4320        }
4321    }
4322    #[inline]
4323    pub unsafe fn width_pot_raw(this: *const Self) -> u32 {
4324        unsafe {
4325            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4326                ::std::ptr::addr_of!((*this)._bitfield_1),
4327                16usize,
4328                4u8,
4329            ) as u32)
4330        }
4331    }
4332    #[inline]
4333    pub unsafe fn set_width_pot_raw(this: *mut Self, val: u32) {
4334        unsafe {
4335            let val: u32 = ::std::mem::transmute(val);
4336            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4337                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4338                16usize,
4339                4u8,
4340                val as u64,
4341            )
4342        }
4343    }
4344    #[inline]
4345    pub fn reserved1(&self) -> u32 {
4346        unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 4u8) as u32) }
4347    }
4348    #[inline]
4349    pub fn set_reserved1(&mut self, val: u32) {
4350        unsafe {
4351            let val: u32 = ::std::mem::transmute(val);
4352            self._bitfield_1.set(20usize, 4u8, val as u64)
4353        }
4354    }
4355    #[inline]
4356    pub unsafe fn reserved1_raw(this: *const Self) -> u32 {
4357        unsafe {
4358            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4359                ::std::ptr::addr_of!((*this)._bitfield_1),
4360                20usize,
4361                4u8,
4362            ) as u32)
4363        }
4364    }
4365    #[inline]
4366    pub unsafe fn set_reserved1_raw(this: *mut Self, val: u32) {
4367        unsafe {
4368            let val: u32 = ::std::mem::transmute(val);
4369            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4370                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4371                20usize,
4372                4u8,
4373                val as u64,
4374            )
4375        }
4376    }
4377    #[inline]
4378    pub fn base_format(&self) -> u32 {
4379        unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 5u8) as u32) }
4380    }
4381    #[inline]
4382    pub fn set_base_format(&mut self, val: u32) {
4383        unsafe {
4384            let val: u32 = ::std::mem::transmute(val);
4385            self._bitfield_1.set(24usize, 5u8, val as u64)
4386        }
4387    }
4388    #[inline]
4389    pub unsafe fn base_format_raw(this: *const Self) -> u32 {
4390        unsafe {
4391            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4392                ::std::ptr::addr_of!((*this)._bitfield_1),
4393                24usize,
4394                5u8,
4395            ) as u32)
4396        }
4397    }
4398    #[inline]
4399    pub unsafe fn set_base_format_raw(this: *mut Self, val: u32) {
4400        unsafe {
4401            let val: u32 = ::std::mem::transmute(val);
4402            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4403                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4404                24usize,
4405                5u8,
4406                val as u64,
4407            )
4408        }
4409    }
4410    #[inline]
4411    pub fn type_(&self) -> u32 {
4412        unsafe { ::std::mem::transmute(self._bitfield_1.get(29usize, 3u8) as u32) }
4413    }
4414    #[inline]
4415    pub fn set_type(&mut self, val: u32) {
4416        unsafe {
4417            let val: u32 = ::std::mem::transmute(val);
4418            self._bitfield_1.set(29usize, 3u8, val as u64)
4419        }
4420    }
4421    #[inline]
4422    pub unsafe fn type__raw(this: *const Self) -> u32 {
4423        unsafe {
4424            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4425                ::std::ptr::addr_of!((*this)._bitfield_1),
4426                29usize,
4427                3u8,
4428            ) as u32)
4429        }
4430    }
4431    #[inline]
4432    pub unsafe fn set_type_raw(this: *mut Self, val: u32) {
4433        unsafe {
4434            let val: u32 = ::std::mem::transmute(val);
4435            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4436                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4437                29usize,
4438                3u8,
4439                val as u64,
4440            )
4441        }
4442    }
4443    #[inline]
4444    pub fn new_bitfield_1(
4445        height_pot: u32,
4446        reserved0: u32,
4447        width_pot: u32,
4448        reserved1: u32,
4449        base_format: u32,
4450        type_: u32,
4451    ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
4452        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
4453        __bindgen_bitfield_unit.set(0usize, 4u8, {
4454            let height_pot: u32 = unsafe { ::std::mem::transmute(height_pot) };
4455            height_pot as u64
4456        });
4457        __bindgen_bitfield_unit.set(4usize, 12u8, {
4458            let reserved0: u32 = unsafe { ::std::mem::transmute(reserved0) };
4459            reserved0 as u64
4460        });
4461        __bindgen_bitfield_unit.set(16usize, 4u8, {
4462            let width_pot: u32 = unsafe { ::std::mem::transmute(width_pot) };
4463            width_pot as u64
4464        });
4465        __bindgen_bitfield_unit.set(20usize, 4u8, {
4466            let reserved1: u32 = unsafe { ::std::mem::transmute(reserved1) };
4467            reserved1 as u64
4468        });
4469        __bindgen_bitfield_unit.set(24usize, 5u8, {
4470            let base_format: u32 = unsafe { ::std::mem::transmute(base_format) };
4471            base_format as u64
4472        });
4473        __bindgen_bitfield_unit.set(29usize, 3u8, {
4474            let type_: u32 = unsafe { ::std::mem::transmute(type_) };
4475            type_ as u64
4476        });
4477        __bindgen_bitfield_unit
4478    }
4479}
4480#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4481const _: () = {
4482    ["Size of SceGxmTexture__bindgen_ty_2"]
4483        [::std::mem::size_of::<SceGxmTexture__bindgen_ty_2>() - 4usize];
4484    ["Alignment of SceGxmTexture__bindgen_ty_2"]
4485        [::std::mem::align_of::<SceGxmTexture__bindgen_ty_2>() - 4usize];
4486    ["Offset of field: SceGxmTexture__bindgen_ty_2::generic2"]
4487        [::std::mem::offset_of!(SceGxmTexture__bindgen_ty_2, generic2) - 0usize];
4488    ["Offset of field: SceGxmTexture__bindgen_ty_2::swizzled_cube"]
4489        [::std::mem::offset_of!(SceGxmTexture__bindgen_ty_2, swizzled_cube) - 0usize];
4490};
4491#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4492const _: () = {
4493    ["Size of SceGxmTexture"][::std::mem::size_of::<SceGxmTexture>() - 16usize];
4494    ["Alignment of SceGxmTexture"][::std::mem::align_of::<SceGxmTexture>() - 4usize];
4495};
4496impl SceGxmTexture {
4497    #[inline]
4498    pub fn lod_min0(&self) -> u32 {
4499        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
4500    }
4501    #[inline]
4502    pub fn set_lod_min0(&mut self, val: u32) {
4503        unsafe {
4504            let val: u32 = ::std::mem::transmute(val);
4505            self._bitfield_1.set(0usize, 2u8, val as u64)
4506        }
4507    }
4508    #[inline]
4509    pub unsafe fn lod_min0_raw(this: *const Self) -> u32 {
4510        unsafe {
4511            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
4512                ::std::ptr::addr_of!((*this)._bitfield_1),
4513                0usize,
4514                2u8,
4515            ) as u32)
4516        }
4517    }
4518    #[inline]
4519    pub unsafe fn set_lod_min0_raw(this: *mut Self, val: u32) {
4520        unsafe {
4521            let val: u32 = ::std::mem::transmute(val);
4522            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
4523                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4524                0usize,
4525                2u8,
4526                val as u64,
4527            )
4528        }
4529    }
4530    #[inline]
4531    pub fn data_addr(&self) -> u32 {
4532        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) }
4533    }
4534    #[inline]
4535    pub fn set_data_addr(&mut self, val: u32) {
4536        unsafe {
4537            let val: u32 = ::std::mem::transmute(val);
4538            self._bitfield_1.set(2usize, 30u8, val as u64)
4539        }
4540    }
4541    #[inline]
4542    pub unsafe fn data_addr_raw(this: *const Self) -> u32 {
4543        unsafe {
4544            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
4545                ::std::ptr::addr_of!((*this)._bitfield_1),
4546                2usize,
4547                30u8,
4548            ) as u32)
4549        }
4550    }
4551    #[inline]
4552    pub unsafe fn set_data_addr_raw(this: *mut Self, val: u32) {
4553        unsafe {
4554            let val: u32 = ::std::mem::transmute(val);
4555            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
4556                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4557                2usize,
4558                30u8,
4559                val as u64,
4560            )
4561        }
4562    }
4563    #[inline]
4564    pub fn palette_addr(&self) -> u32 {
4565        unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 26u8) as u32) }
4566    }
4567    #[inline]
4568    pub fn set_palette_addr(&mut self, val: u32) {
4569        unsafe {
4570            let val: u32 = ::std::mem::transmute(val);
4571            self._bitfield_1.set(32usize, 26u8, val as u64)
4572        }
4573    }
4574    #[inline]
4575    pub unsafe fn palette_addr_raw(this: *const Self) -> u32 {
4576        unsafe {
4577            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
4578                ::std::ptr::addr_of!((*this)._bitfield_1),
4579                32usize,
4580                26u8,
4581            ) as u32)
4582        }
4583    }
4584    #[inline]
4585    pub unsafe fn set_palette_addr_raw(this: *mut Self, val: u32) {
4586        unsafe {
4587            let val: u32 = ::std::mem::transmute(val);
4588            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
4589                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4590                32usize,
4591                26u8,
4592                val as u64,
4593            )
4594        }
4595    }
4596    #[inline]
4597    pub fn lod_min1(&self) -> u32 {
4598        unsafe { ::std::mem::transmute(self._bitfield_1.get(58usize, 2u8) as u32) }
4599    }
4600    #[inline]
4601    pub fn set_lod_min1(&mut self, val: u32) {
4602        unsafe {
4603            let val: u32 = ::std::mem::transmute(val);
4604            self._bitfield_1.set(58usize, 2u8, val as u64)
4605        }
4606    }
4607    #[inline]
4608    pub unsafe fn lod_min1_raw(this: *const Self) -> u32 {
4609        unsafe {
4610            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
4611                ::std::ptr::addr_of!((*this)._bitfield_1),
4612                58usize,
4613                2u8,
4614            ) as u32)
4615        }
4616    }
4617    #[inline]
4618    pub unsafe fn set_lod_min1_raw(this: *mut Self, val: u32) {
4619        unsafe {
4620            let val: u32 = ::std::mem::transmute(val);
4621            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
4622                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4623                58usize,
4624                2u8,
4625                val as u64,
4626            )
4627        }
4628    }
4629    #[inline]
4630    pub fn swizzle_format(&self) -> u32 {
4631        unsafe { ::std::mem::transmute(self._bitfield_1.get(60usize, 3u8) as u32) }
4632    }
4633    #[inline]
4634    pub fn set_swizzle_format(&mut self, val: u32) {
4635        unsafe {
4636            let val: u32 = ::std::mem::transmute(val);
4637            self._bitfield_1.set(60usize, 3u8, val as u64)
4638        }
4639    }
4640    #[inline]
4641    pub unsafe fn swizzle_format_raw(this: *const Self) -> u32 {
4642        unsafe {
4643            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
4644                ::std::ptr::addr_of!((*this)._bitfield_1),
4645                60usize,
4646                3u8,
4647            ) as u32)
4648        }
4649    }
4650    #[inline]
4651    pub unsafe fn set_swizzle_format_raw(this: *mut Self, val: u32) {
4652        unsafe {
4653            let val: u32 = ::std::mem::transmute(val);
4654            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
4655                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4656                60usize,
4657                3u8,
4658                val as u64,
4659            )
4660        }
4661    }
4662    #[inline]
4663    pub fn normalize_mode(&self) -> u32 {
4664        unsafe { ::std::mem::transmute(self._bitfield_1.get(63usize, 1u8) as u32) }
4665    }
4666    #[inline]
4667    pub fn set_normalize_mode(&mut self, val: u32) {
4668        unsafe {
4669            let val: u32 = ::std::mem::transmute(val);
4670            self._bitfield_1.set(63usize, 1u8, val as u64)
4671        }
4672    }
4673    #[inline]
4674    pub unsafe fn normalize_mode_raw(this: *const Self) -> u32 {
4675        unsafe {
4676            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
4677                ::std::ptr::addr_of!((*this)._bitfield_1),
4678                63usize,
4679                1u8,
4680            ) as u32)
4681        }
4682    }
4683    #[inline]
4684    pub unsafe fn set_normalize_mode_raw(this: *mut Self, val: u32) {
4685        unsafe {
4686            let val: u32 = ::std::mem::transmute(val);
4687            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
4688                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4689                63usize,
4690                1u8,
4691                val as u64,
4692            )
4693        }
4694    }
4695    #[inline]
4696    pub fn new_bitfield_1(
4697        lod_min0: u32,
4698        data_addr: u32,
4699        palette_addr: u32,
4700        lod_min1: u32,
4701        swizzle_format: u32,
4702        normalize_mode: u32,
4703    ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
4704        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
4705        __bindgen_bitfield_unit.set(0usize, 2u8, {
4706            let lod_min0: u32 = unsafe { ::std::mem::transmute(lod_min0) };
4707            lod_min0 as u64
4708        });
4709        __bindgen_bitfield_unit.set(2usize, 30u8, {
4710            let data_addr: u32 = unsafe { ::std::mem::transmute(data_addr) };
4711            data_addr as u64
4712        });
4713        __bindgen_bitfield_unit.set(32usize, 26u8, {
4714            let palette_addr: u32 = unsafe { ::std::mem::transmute(palette_addr) };
4715            palette_addr as u64
4716        });
4717        __bindgen_bitfield_unit.set(58usize, 2u8, {
4718            let lod_min1: u32 = unsafe { ::std::mem::transmute(lod_min1) };
4719            lod_min1 as u64
4720        });
4721        __bindgen_bitfield_unit.set(60usize, 3u8, {
4722            let swizzle_format: u32 = unsafe { ::std::mem::transmute(swizzle_format) };
4723            swizzle_format as u64
4724        });
4725        __bindgen_bitfield_unit.set(63usize, 1u8, {
4726            let normalize_mode: u32 = unsafe { ::std::mem::transmute(normalize_mode) };
4727            normalize_mode as u64
4728        });
4729        __bindgen_bitfield_unit
4730    }
4731}
4732#[repr(C)]
4733#[derive(Debug, Copy, Clone)]
4734pub struct SceGxmCommandList {
4735    #[doc = "!< Internal control words."]
4736    pub words: [u32; 8usize],
4737}
4738#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4739const _: () = {
4740    ["Size of SceGxmCommandList"][::std::mem::size_of::<SceGxmCommandList>() - 32usize];
4741    ["Alignment of SceGxmCommandList"][::std::mem::align_of::<SceGxmCommandList>() - 4usize];
4742    ["Offset of field: SceGxmCommandList::words"]
4743        [::std::mem::offset_of!(SceGxmCommandList, words) - 0usize];
4744};
4745#[repr(C)]
4746#[derive(Copy, Clone)]
4747pub struct SceGxmColorSurface {
4748    pub pbeSidebandWord: ::std::os::raw::c_uint,
4749    pub pbeEmitWords: [::std::os::raw::c_uint; 6usize],
4750    pub outputRegisterSize: ::std::os::raw::c_uint,
4751    pub backgroundTex: SceGxmTexture,
4752}
4753#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4754const _: () = {
4755    ["Size of SceGxmColorSurface"][::std::mem::size_of::<SceGxmColorSurface>() - 48usize];
4756    ["Alignment of SceGxmColorSurface"][::std::mem::align_of::<SceGxmColorSurface>() - 4usize];
4757    ["Offset of field: SceGxmColorSurface::pbeSidebandWord"]
4758        [::std::mem::offset_of!(SceGxmColorSurface, pbeSidebandWord) - 0usize];
4759    ["Offset of field: SceGxmColorSurface::pbeEmitWords"]
4760        [::std::mem::offset_of!(SceGxmColorSurface, pbeEmitWords) - 4usize];
4761    ["Offset of field: SceGxmColorSurface::outputRegisterSize"]
4762        [::std::mem::offset_of!(SceGxmColorSurface, outputRegisterSize) - 28usize];
4763    ["Offset of field: SceGxmColorSurface::backgroundTex"]
4764        [::std::mem::offset_of!(SceGxmColorSurface, backgroundTex) - 32usize];
4765};
4766#[repr(C)]
4767#[derive(Debug, Copy, Clone)]
4768pub struct SceGxmDepthStencilSurface {
4769    pub zlsControl: ::std::os::raw::c_uint,
4770    pub depthData: *mut ::std::os::raw::c_void,
4771    pub stencilData: *mut ::std::os::raw::c_void,
4772    pub backgroundDepth: f32,
4773    pub backgroundControl: ::std::os::raw::c_uint,
4774}
4775#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4776const _: () = {
4777    ["Size of SceGxmDepthStencilSurface"]
4778        [::std::mem::size_of::<SceGxmDepthStencilSurface>() - 20usize];
4779    ["Alignment of SceGxmDepthStencilSurface"]
4780        [::std::mem::align_of::<SceGxmDepthStencilSurface>() - 4usize];
4781    ["Offset of field: SceGxmDepthStencilSurface::zlsControl"]
4782        [::std::mem::offset_of!(SceGxmDepthStencilSurface, zlsControl) - 0usize];
4783    ["Offset of field: SceGxmDepthStencilSurface::depthData"]
4784        [::std::mem::offset_of!(SceGxmDepthStencilSurface, depthData) - 4usize];
4785    ["Offset of field: SceGxmDepthStencilSurface::stencilData"]
4786        [::std::mem::offset_of!(SceGxmDepthStencilSurface, stencilData) - 8usize];
4787    ["Offset of field: SceGxmDepthStencilSurface::backgroundDepth"]
4788        [::std::mem::offset_of!(SceGxmDepthStencilSurface, backgroundDepth) - 12usize];
4789    ["Offset of field: SceGxmDepthStencilSurface::backgroundControl"]
4790        [::std::mem::offset_of!(SceGxmDepthStencilSurface, backgroundControl) - 16usize];
4791};
4792#[repr(C)]
4793#[derive(Debug, Copy, Clone)]
4794pub struct SceGxmNotification {
4795    pub address: *mut ::std::os::raw::c_uint,
4796    pub value: ::std::os::raw::c_uint,
4797}
4798#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4799const _: () = {
4800    ["Size of SceGxmNotification"][::std::mem::size_of::<SceGxmNotification>() - 8usize];
4801    ["Alignment of SceGxmNotification"][::std::mem::align_of::<SceGxmNotification>() - 4usize];
4802    ["Offset of field: SceGxmNotification::address"]
4803        [::std::mem::offset_of!(SceGxmNotification, address) - 0usize];
4804    ["Offset of field: SceGxmNotification::value"]
4805        [::std::mem::offset_of!(SceGxmNotification, value) - 4usize];
4806};
4807#[repr(C)]
4808#[derive(Debug, Copy, Clone)]
4809pub struct SceGxmValidRegion {
4810    #[doc = "!< Maximum X value of the region in pixels."]
4811    pub xMax: u32,
4812    #[doc = "!< Maximum Y value of the region in pixels."]
4813    pub yMax: u32,
4814}
4815#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4816const _: () = {
4817    ["Size of SceGxmValidRegion"][::std::mem::size_of::<SceGxmValidRegion>() - 8usize];
4818    ["Alignment of SceGxmValidRegion"][::std::mem::align_of::<SceGxmValidRegion>() - 4usize];
4819    ["Offset of field: SceGxmValidRegion::xMax"]
4820        [::std::mem::offset_of!(SceGxmValidRegion, xMax) - 0usize];
4821    ["Offset of field: SceGxmValidRegion::yMax"]
4822        [::std::mem::offset_of!(SceGxmValidRegion, yMax) - 4usize];
4823};
4824#[repr(C)]
4825#[derive(Debug, Copy, Clone)]
4826pub struct SceGxmContext {
4827    _unused: [u8; 0],
4828}
4829#[repr(C)]
4830#[derive(Debug, Copy, Clone)]
4831pub struct SceGxmContextParams {
4832    pub hostMem: *mut ::std::os::raw::c_void,
4833    pub hostMemSize: SceSize,
4834    pub vdmRingBufferMem: *mut ::std::os::raw::c_void,
4835    pub vdmRingBufferMemSize: SceSize,
4836    pub vertexRingBufferMem: *mut ::std::os::raw::c_void,
4837    pub vertexRingBufferMemSize: SceSize,
4838    pub fragmentRingBufferMem: *mut ::std::os::raw::c_void,
4839    pub fragmentRingBufferMemSize: SceSize,
4840    pub fragmentUsseRingBufferMem: *mut ::std::os::raw::c_void,
4841    pub fragmentUsseRingBufferMemSize: SceSize,
4842    pub fragmentUsseRingBufferOffset: ::std::os::raw::c_uint,
4843}
4844#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4845const _: () = {
4846    ["Size of SceGxmContextParams"][::std::mem::size_of::<SceGxmContextParams>() - 44usize];
4847    ["Alignment of SceGxmContextParams"][::std::mem::align_of::<SceGxmContextParams>() - 4usize];
4848    ["Offset of field: SceGxmContextParams::hostMem"]
4849        [::std::mem::offset_of!(SceGxmContextParams, hostMem) - 0usize];
4850    ["Offset of field: SceGxmContextParams::hostMemSize"]
4851        [::std::mem::offset_of!(SceGxmContextParams, hostMemSize) - 4usize];
4852    ["Offset of field: SceGxmContextParams::vdmRingBufferMem"]
4853        [::std::mem::offset_of!(SceGxmContextParams, vdmRingBufferMem) - 8usize];
4854    ["Offset of field: SceGxmContextParams::vdmRingBufferMemSize"]
4855        [::std::mem::offset_of!(SceGxmContextParams, vdmRingBufferMemSize) - 12usize];
4856    ["Offset of field: SceGxmContextParams::vertexRingBufferMem"]
4857        [::std::mem::offset_of!(SceGxmContextParams, vertexRingBufferMem) - 16usize];
4858    ["Offset of field: SceGxmContextParams::vertexRingBufferMemSize"]
4859        [::std::mem::offset_of!(SceGxmContextParams, vertexRingBufferMemSize) - 20usize];
4860    ["Offset of field: SceGxmContextParams::fragmentRingBufferMem"]
4861        [::std::mem::offset_of!(SceGxmContextParams, fragmentRingBufferMem) - 24usize];
4862    ["Offset of field: SceGxmContextParams::fragmentRingBufferMemSize"]
4863        [::std::mem::offset_of!(SceGxmContextParams, fragmentRingBufferMemSize) - 28usize];
4864    ["Offset of field: SceGxmContextParams::fragmentUsseRingBufferMem"]
4865        [::std::mem::offset_of!(SceGxmContextParams, fragmentUsseRingBufferMem) - 32usize];
4866    ["Offset of field: SceGxmContextParams::fragmentUsseRingBufferMemSize"]
4867        [::std::mem::offset_of!(SceGxmContextParams, fragmentUsseRingBufferMemSize) - 36usize];
4868    ["Offset of field: SceGxmContextParams::fragmentUsseRingBufferOffset"]
4869        [::std::mem::offset_of!(SceGxmContextParams, fragmentUsseRingBufferOffset) - 40usize];
4870};
4871#[repr(C)]
4872#[derive(Debug, Copy, Clone)]
4873pub struct SceGxmDeferredContextParams {
4874    pub hostMem: *mut ::std::os::raw::c_void,
4875    pub hostMemSize: SceSize,
4876    pub vdmCallback: ::std::option::Option<
4877        unsafe extern "C" fn(
4878            args: *mut ::std::os::raw::c_void,
4879            requestedSize: SceSize,
4880            size: *mut SceSize,
4881        ) -> *mut ::std::os::raw::c_void,
4882    >,
4883    pub vertexCallback: ::std::option::Option<
4884        unsafe extern "C" fn(
4885            args: *mut ::std::os::raw::c_void,
4886            requestedSize: SceSize,
4887            size: *mut SceSize,
4888        ) -> *mut ::std::os::raw::c_void,
4889    >,
4890    pub fragmentCallback: ::std::option::Option<
4891        unsafe extern "C" fn(
4892            args: *mut ::std::os::raw::c_void,
4893            requestedSize: SceSize,
4894            size: *mut SceSize,
4895        ) -> *mut ::std::os::raw::c_void,
4896    >,
4897    pub callbackData: *mut ::std::os::raw::c_void,
4898    pub vdmRingBufferMem: *mut ::std::os::raw::c_void,
4899    pub vdmRingBufferMemSize: SceSize,
4900    pub vertexRingBufferMem: *mut ::std::os::raw::c_void,
4901    pub vertexRingBufferMemSize: SceSize,
4902    pub fragmentRingBufferMem: *mut ::std::os::raw::c_void,
4903    pub fragmentRingBufferMemSize: SceSize,
4904}
4905#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4906const _: () = {
4907    ["Size of SceGxmDeferredContextParams"]
4908        [::std::mem::size_of::<SceGxmDeferredContextParams>() - 48usize];
4909    ["Alignment of SceGxmDeferredContextParams"]
4910        [::std::mem::align_of::<SceGxmDeferredContextParams>() - 4usize];
4911    ["Offset of field: SceGxmDeferredContextParams::hostMem"]
4912        [::std::mem::offset_of!(SceGxmDeferredContextParams, hostMem) - 0usize];
4913    ["Offset of field: SceGxmDeferredContextParams::hostMemSize"]
4914        [::std::mem::offset_of!(SceGxmDeferredContextParams, hostMemSize) - 4usize];
4915    ["Offset of field: SceGxmDeferredContextParams::vdmCallback"]
4916        [::std::mem::offset_of!(SceGxmDeferredContextParams, vdmCallback) - 8usize];
4917    ["Offset of field: SceGxmDeferredContextParams::vertexCallback"]
4918        [::std::mem::offset_of!(SceGxmDeferredContextParams, vertexCallback) - 12usize];
4919    ["Offset of field: SceGxmDeferredContextParams::fragmentCallback"]
4920        [::std::mem::offset_of!(SceGxmDeferredContextParams, fragmentCallback) - 16usize];
4921    ["Offset of field: SceGxmDeferredContextParams::callbackData"]
4922        [::std::mem::offset_of!(SceGxmDeferredContextParams, callbackData) - 20usize];
4923    ["Offset of field: SceGxmDeferredContextParams::vdmRingBufferMem"]
4924        [::std::mem::offset_of!(SceGxmDeferredContextParams, vdmRingBufferMem) - 24usize];
4925    ["Offset of field: SceGxmDeferredContextParams::vdmRingBufferMemSize"]
4926        [::std::mem::offset_of!(SceGxmDeferredContextParams, vdmRingBufferMemSize) - 28usize];
4927    ["Offset of field: SceGxmDeferredContextParams::vertexRingBufferMem"]
4928        [::std::mem::offset_of!(SceGxmDeferredContextParams, vertexRingBufferMem) - 32usize];
4929    ["Offset of field: SceGxmDeferredContextParams::vertexRingBufferMemSize"]
4930        [::std::mem::offset_of!(SceGxmDeferredContextParams, vertexRingBufferMemSize) - 36usize];
4931    ["Offset of field: SceGxmDeferredContextParams::fragmentRingBufferMem"]
4932        [::std::mem::offset_of!(SceGxmDeferredContextParams, fragmentRingBufferMem) - 40usize];
4933    ["Offset of field: SceGxmDeferredContextParams::fragmentRingBufferMemSize"]
4934        [::std::mem::offset_of!(SceGxmDeferredContextParams, fragmentRingBufferMemSize) - 44usize];
4935};
4936#[repr(C)]
4937#[derive(Debug, Copy, Clone)]
4938pub struct SceGxmVertexProgram {
4939    _unused: [u8; 0],
4940}
4941#[repr(C)]
4942#[derive(Debug, Copy, Clone)]
4943pub struct SceGxmFragmentProgram {
4944    _unused: [u8; 0],
4945}
4946pub const SceGxmPrecomputedWordCount_SCE_GXM_PRECOMPUTED_VERTEX_STATE_WORD_COUNT:
4947    SceGxmPrecomputedWordCount = 7;
4948pub const SceGxmPrecomputedWordCount_SCE_GXM_PRECOMPUTED_FRAGMENT_STATE_WORD_COUNT:
4949    SceGxmPrecomputedWordCount = 9;
4950pub const SceGxmPrecomputedWordCount_SCE_GXM_PRECOMPUTED_DRAW_WORD_COUNT:
4951    SceGxmPrecomputedWordCount = 11;
4952pub type SceGxmPrecomputedWordCount = ::std::os::raw::c_uint;
4953#[repr(C)]
4954#[derive(Debug, Copy, Clone)]
4955pub struct SceGxmPrecomputedVertexState {
4956    pub data: [::std::os::raw::c_uint; 7usize],
4957}
4958#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4959const _: () = {
4960    ["Size of SceGxmPrecomputedVertexState"]
4961        [::std::mem::size_of::<SceGxmPrecomputedVertexState>() - 28usize];
4962    ["Alignment of SceGxmPrecomputedVertexState"]
4963        [::std::mem::align_of::<SceGxmPrecomputedVertexState>() - 4usize];
4964    ["Offset of field: SceGxmPrecomputedVertexState::data"]
4965        [::std::mem::offset_of!(SceGxmPrecomputedVertexState, data) - 0usize];
4966};
4967#[repr(C)]
4968#[derive(Debug, Copy, Clone)]
4969pub struct SceGxmPrecomputedFragmentState {
4970    pub data: [::std::os::raw::c_uint; 9usize],
4971}
4972#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4973const _: () = {
4974    ["Size of SceGxmPrecomputedFragmentState"]
4975        [::std::mem::size_of::<SceGxmPrecomputedFragmentState>() - 36usize];
4976    ["Alignment of SceGxmPrecomputedFragmentState"]
4977        [::std::mem::align_of::<SceGxmPrecomputedFragmentState>() - 4usize];
4978    ["Offset of field: SceGxmPrecomputedFragmentState::data"]
4979        [::std::mem::offset_of!(SceGxmPrecomputedFragmentState, data) - 0usize];
4980};
4981#[repr(C)]
4982#[derive(Debug, Copy, Clone)]
4983pub struct SceGxmPrecomputedDraw {
4984    pub data: [::std::os::raw::c_uint; 11usize],
4985}
4986#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4987const _: () = {
4988    ["Size of SceGxmPrecomputedDraw"][::std::mem::size_of::<SceGxmPrecomputedDraw>() - 44usize];
4989    ["Alignment of SceGxmPrecomputedDraw"]
4990        [::std::mem::align_of::<SceGxmPrecomputedDraw>() - 4usize];
4991    ["Offset of field: SceGxmPrecomputedDraw::data"]
4992        [::std::mem::offset_of!(SceGxmPrecomputedDraw, data) - 0usize];
4993};
4994#[repr(C)]
4995#[derive(Debug, Copy, Clone)]
4996pub struct SceGxmProgram {
4997    _unused: [u8; 0],
4998}
4999#[repr(C)]
5000#[derive(Debug, Copy, Clone)]
5001pub struct SceGxmProgramParameter {
5002    _unused: [u8; 0],
5003}
5004#[doc = "!< Vertex shader program"]
5005pub const SceGxmProgramType_SCE_GXM_VERTEX_PROGRAM: SceGxmProgramType = 0;
5006#[doc = "!< Fragment shader program"]
5007pub const SceGxmProgramType_SCE_GXM_FRAGMENT_PROGRAM: SceGxmProgramType = 1;
5008pub type SceGxmProgramType = ::std::os::raw::c_uint;
5009#[doc = "!< Vertex attribute input"]
5010pub const SceGxmParameterCategory_SCE_GXM_PARAMETER_CATEGORY_ATTRIBUTE: SceGxmParameterCategory = 0;
5011#[doc = "!< Uniform"]
5012pub const SceGxmParameterCategory_SCE_GXM_PARAMETER_CATEGORY_UNIFORM: SceGxmParameterCategory = 1;
5013#[doc = "!< Sampler"]
5014pub const SceGxmParameterCategory_SCE_GXM_PARAMETER_CATEGORY_SAMPLER: SceGxmParameterCategory = 2;
5015#[doc = "!< Uniform buffer"]
5016pub const SceGxmParameterCategory_SCE_GXM_PARAMETER_CATEGORY_UNIFORM_BUFFER:
5017    SceGxmParameterCategory = 3;
5018pub type SceGxmParameterCategory = ::std::os::raw::c_uint;
5019pub const SceGxmParameterType_SCE_GXM_PARAMETER_TYPE_F32: SceGxmParameterType = 0;
5020pub const SceGxmParameterType_SCE_GXM_PARAMETER_TYPE_F16: SceGxmParameterType = 1;
5021pub const SceGxmParameterType_SCE_GXM_PARAMETER_TYPE_C10: SceGxmParameterType = 2;
5022pub const SceGxmParameterType_SCE_GXM_PARAMETER_TYPE_U32: SceGxmParameterType = 3;
5023pub const SceGxmParameterType_SCE_GXM_PARAMETER_TYPE_S32: SceGxmParameterType = 4;
5024pub const SceGxmParameterType_SCE_GXM_PARAMETER_TYPE_U16: SceGxmParameterType = 5;
5025pub const SceGxmParameterType_SCE_GXM_PARAMETER_TYPE_S16: SceGxmParameterType = 6;
5026pub const SceGxmParameterType_SCE_GXM_PARAMETER_TYPE_U8: SceGxmParameterType = 7;
5027pub const SceGxmParameterType_SCE_GXM_PARAMETER_TYPE_S8: SceGxmParameterType = 8;
5028pub const SceGxmParameterType_SCE_GXM_PARAMETER_TYPE_AGGREGATE: SceGxmParameterType = 9;
5029pub type SceGxmParameterType = ::std::os::raw::c_uint;
5030pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_NONE: SceGxmParameterSemantic = 0;
5031pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_ATTR: SceGxmParameterSemantic = 1;
5032pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_BCOL: SceGxmParameterSemantic = 2;
5033pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_BINORMAL: SceGxmParameterSemantic = 3;
5034pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_BLENDINDICES: SceGxmParameterSemantic =
5035    4;
5036pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_BLENDWEIGHT: SceGxmParameterSemantic =
5037    5;
5038pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_COLOR: SceGxmParameterSemantic = 6;
5039pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_DIFFUSE: SceGxmParameterSemantic = 7;
5040pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_FOGCOORD: SceGxmParameterSemantic = 8;
5041pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_NORMAL: SceGxmParameterSemantic = 9;
5042pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_POINTSIZE: SceGxmParameterSemantic =
5043    10;
5044pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_POSITION: SceGxmParameterSemantic = 11;
5045pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_SPECULAR: SceGxmParameterSemantic = 12;
5046pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_TANGENT: SceGxmParameterSemantic = 13;
5047pub const SceGxmParameterSemantic_SCE_GXM_PARAMETER_SEMANTIC_TEXCOORD: SceGxmParameterSemantic = 14;
5048pub type SceGxmParameterSemantic = ::std::os::raw::c_uint;
5049#[repr(C)]
5050#[derive(Debug, Copy, Clone)]
5051pub struct SceGxmShaderPatcher {
5052    _unused: [u8; 0],
5053}
5054#[repr(C)]
5055#[derive(Debug, Copy, Clone)]
5056pub struct SceGxmRegisteredProgram {
5057    _unused: [u8; 0],
5058}
5059pub type SceGxmShaderPatcherId = *mut SceGxmRegisteredProgram;
5060pub type SceGxmShaderPatcherHostAllocCallback = ::std::option::Option<
5061    unsafe extern "C" fn(
5062        userData: *mut ::std::os::raw::c_void,
5063        size: SceSize,
5064    ) -> *mut ::std::os::raw::c_void,
5065>;
5066pub type SceGxmShaderPatcherHostFreeCallback = ::std::option::Option<
5067    unsafe extern "C" fn(userData: *mut ::std::os::raw::c_void, mem: *mut ::std::os::raw::c_void),
5068>;
5069pub type SceGxmShaderPatcherBufferAllocCallback = ::std::option::Option<
5070    unsafe extern "C" fn(
5071        userData: *mut ::std::os::raw::c_void,
5072        size: SceSize,
5073    ) -> *mut ::std::os::raw::c_void,
5074>;
5075pub type SceGxmShaderPatcherBufferFreeCallback = ::std::option::Option<
5076    unsafe extern "C" fn(userData: *mut ::std::os::raw::c_void, mem: *mut ::std::os::raw::c_void),
5077>;
5078pub type SceGxmShaderPatcherUsseAllocCallback = ::std::option::Option<
5079    unsafe extern "C" fn(
5080        userData: *mut ::std::os::raw::c_void,
5081        size: SceSize,
5082        usseOffset: *mut ::std::os::raw::c_uint,
5083    ) -> *mut ::std::os::raw::c_void,
5084>;
5085pub type SceGxmShaderPatcherUsseFreeCallback = ::std::option::Option<
5086    unsafe extern "C" fn(userData: *mut ::std::os::raw::c_void, mem: *mut ::std::os::raw::c_void),
5087>;
5088#[repr(C)]
5089#[derive(Debug, Copy, Clone)]
5090pub struct SceGxmShaderPatcherParams {
5091    pub userData: *mut ::std::os::raw::c_void,
5092    pub hostAllocCallback: SceGxmShaderPatcherHostAllocCallback,
5093    pub hostFreeCallback: SceGxmShaderPatcherHostFreeCallback,
5094    pub bufferAllocCallback: SceGxmShaderPatcherBufferAllocCallback,
5095    pub bufferFreeCallback: SceGxmShaderPatcherBufferFreeCallback,
5096    pub bufferMem: *mut ::std::os::raw::c_void,
5097    pub bufferMemSize: SceSize,
5098    pub vertexUsseAllocCallback: SceGxmShaderPatcherUsseAllocCallback,
5099    pub vertexUsseFreeCallback: SceGxmShaderPatcherUsseFreeCallback,
5100    pub vertexUsseMem: *mut ::std::os::raw::c_void,
5101    pub vertexUsseMemSize: SceSize,
5102    pub vertexUsseOffset: ::std::os::raw::c_uint,
5103    pub fragmentUsseAllocCallback: SceGxmShaderPatcherUsseAllocCallback,
5104    pub fragmentUsseFreeCallback: SceGxmShaderPatcherUsseFreeCallback,
5105    pub fragmentUsseMem: *mut ::std::os::raw::c_void,
5106    pub fragmentUsseMemSize: SceSize,
5107    pub fragmentUsseOffset: ::std::os::raw::c_uint,
5108}
5109#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5110const _: () = {
5111    ["Size of SceGxmShaderPatcherParams"]
5112        [::std::mem::size_of::<SceGxmShaderPatcherParams>() - 68usize];
5113    ["Alignment of SceGxmShaderPatcherParams"]
5114        [::std::mem::align_of::<SceGxmShaderPatcherParams>() - 4usize];
5115    ["Offset of field: SceGxmShaderPatcherParams::userData"]
5116        [::std::mem::offset_of!(SceGxmShaderPatcherParams, userData) - 0usize];
5117    ["Offset of field: SceGxmShaderPatcherParams::hostAllocCallback"]
5118        [::std::mem::offset_of!(SceGxmShaderPatcherParams, hostAllocCallback) - 4usize];
5119    ["Offset of field: SceGxmShaderPatcherParams::hostFreeCallback"]
5120        [::std::mem::offset_of!(SceGxmShaderPatcherParams, hostFreeCallback) - 8usize];
5121    ["Offset of field: SceGxmShaderPatcherParams::bufferAllocCallback"]
5122        [::std::mem::offset_of!(SceGxmShaderPatcherParams, bufferAllocCallback) - 12usize];
5123    ["Offset of field: SceGxmShaderPatcherParams::bufferFreeCallback"]
5124        [::std::mem::offset_of!(SceGxmShaderPatcherParams, bufferFreeCallback) - 16usize];
5125    ["Offset of field: SceGxmShaderPatcherParams::bufferMem"]
5126        [::std::mem::offset_of!(SceGxmShaderPatcherParams, bufferMem) - 20usize];
5127    ["Offset of field: SceGxmShaderPatcherParams::bufferMemSize"]
5128        [::std::mem::offset_of!(SceGxmShaderPatcherParams, bufferMemSize) - 24usize];
5129    ["Offset of field: SceGxmShaderPatcherParams::vertexUsseAllocCallback"]
5130        [::std::mem::offset_of!(SceGxmShaderPatcherParams, vertexUsseAllocCallback) - 28usize];
5131    ["Offset of field: SceGxmShaderPatcherParams::vertexUsseFreeCallback"]
5132        [::std::mem::offset_of!(SceGxmShaderPatcherParams, vertexUsseFreeCallback) - 32usize];
5133    ["Offset of field: SceGxmShaderPatcherParams::vertexUsseMem"]
5134        [::std::mem::offset_of!(SceGxmShaderPatcherParams, vertexUsseMem) - 36usize];
5135    ["Offset of field: SceGxmShaderPatcherParams::vertexUsseMemSize"]
5136        [::std::mem::offset_of!(SceGxmShaderPatcherParams, vertexUsseMemSize) - 40usize];
5137    ["Offset of field: SceGxmShaderPatcherParams::vertexUsseOffset"]
5138        [::std::mem::offset_of!(SceGxmShaderPatcherParams, vertexUsseOffset) - 44usize];
5139    ["Offset of field: SceGxmShaderPatcherParams::fragmentUsseAllocCallback"]
5140        [::std::mem::offset_of!(SceGxmShaderPatcherParams, fragmentUsseAllocCallback) - 48usize];
5141    ["Offset of field: SceGxmShaderPatcherParams::fragmentUsseFreeCallback"]
5142        [::std::mem::offset_of!(SceGxmShaderPatcherParams, fragmentUsseFreeCallback) - 52usize];
5143    ["Offset of field: SceGxmShaderPatcherParams::fragmentUsseMem"]
5144        [::std::mem::offset_of!(SceGxmShaderPatcherParams, fragmentUsseMem) - 56usize];
5145    ["Offset of field: SceGxmShaderPatcherParams::fragmentUsseMemSize"]
5146        [::std::mem::offset_of!(SceGxmShaderPatcherParams, fragmentUsseMemSize) - 60usize];
5147    ["Offset of field: SceGxmShaderPatcherParams::fragmentUsseOffset"]
5148        [::std::mem::offset_of!(SceGxmShaderPatcherParams, fragmentUsseOffset) - 64usize];
5149};
5150pub const SceGxmRenderTargetFlags_SCE_GXM_RENDER_TARGET_CUSTOM_MULTISAMPLE_LOCATIONS:
5151    SceGxmRenderTargetFlags = 1;
5152pub type SceGxmRenderTargetFlags = ::std::os::raw::c_uint;
5153#[repr(C)]
5154#[derive(Debug, Copy, Clone)]
5155pub struct SceGxmRenderTargetParams {
5156    #[doc = "!< Bitwise combined flags from ::SceGxmRenderTargetFlags."]
5157    pub flags: u32,
5158    #[doc = "!< The width of the render target in pixels."]
5159    pub width: u16,
5160    #[doc = "!< The height of the render target in pixels."]
5161    pub height: u16,
5162    #[doc = "!< The expected number of scenes per frame, in the range [1,SCE_GXM_MAX_SCENES_PER_RENDERTARGET]."]
5163    pub scenesPerFrame: u16,
5164    #[doc = "!< Multisample mode to use (One of ::SceGxmMultisampleMode)."]
5165    pub multisampleMode: u16,
5166    #[doc = "!< If enabled in the flags, the multisample locations to use."]
5167    pub multisampleLocations: u32,
5168    #[doc = "!< The uncached LPDDR memblock for the render target GPU data structures or SCE_UID_INVALID_UID to specify memory should be allocated in sceGxm."]
5169    pub driverMemBlock: SceUID,
5170}
5171#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5172const _: () = {
5173    ["Size of SceGxmRenderTargetParams"]
5174        [::std::mem::size_of::<SceGxmRenderTargetParams>() - 20usize];
5175    ["Alignment of SceGxmRenderTargetParams"]
5176        [::std::mem::align_of::<SceGxmRenderTargetParams>() - 4usize];
5177    ["Offset of field: SceGxmRenderTargetParams::flags"]
5178        [::std::mem::offset_of!(SceGxmRenderTargetParams, flags) - 0usize];
5179    ["Offset of field: SceGxmRenderTargetParams::width"]
5180        [::std::mem::offset_of!(SceGxmRenderTargetParams, width) - 4usize];
5181    ["Offset of field: SceGxmRenderTargetParams::height"]
5182        [::std::mem::offset_of!(SceGxmRenderTargetParams, height) - 6usize];
5183    ["Offset of field: SceGxmRenderTargetParams::scenesPerFrame"]
5184        [::std::mem::offset_of!(SceGxmRenderTargetParams, scenesPerFrame) - 8usize];
5185    ["Offset of field: SceGxmRenderTargetParams::multisampleMode"]
5186        [::std::mem::offset_of!(SceGxmRenderTargetParams, multisampleMode) - 10usize];
5187    ["Offset of field: SceGxmRenderTargetParams::multisampleLocations"]
5188        [::std::mem::offset_of!(SceGxmRenderTargetParams, multisampleLocations) - 12usize];
5189    ["Offset of field: SceGxmRenderTargetParams::driverMemBlock"]
5190        [::std::mem::offset_of!(SceGxmRenderTargetParams, driverMemBlock) - 16usize];
5191};
5192unsafe extern "C" {
5193    #[doc = " Initialize sceGxm library.\n\n @param[in] params - Pointer to a ::SceGxmInitializeParams structure.\n\n @return 0 on success, < 0 on error.\n @note - flags field in the params struct must be set to SCE_GXM_INITIALIZE_FLAG_DEFAULT."]
5194    pub fn sceGxmInitialize(params: *const SceGxmInitializeParams) -> ::std::os::raw::c_int;
5195}
5196unsafe extern "C" {
5197    #[doc = " Initialize sceGxm library with extra flags support.\n\n @param[in] params - Pointer to a ::SceGxmInitializeParams structure.\n\n @return 0 on success, < 0 on error."]
5198    pub fn sceGxmVshInitialize(params: *const SceGxmInitializeParams) -> ::std::os::raw::c_int;
5199}
5200unsafe extern "C" {
5201    #[doc = " Terminate sceGxm library.\n\n @return 0 on success, < 0 on error."]
5202    pub fn sceGxmTerminate() -> ::std::os::raw::c_int;
5203}
5204unsafe extern "C" {
5205    pub fn sceGxmGetNotificationRegion() -> *mut ::std::os::raw::c_uint;
5206}
5207unsafe extern "C" {
5208    pub fn sceGxmNotificationWait(notification: *const SceGxmNotification)
5209    -> ::std::os::raw::c_int;
5210}
5211unsafe extern "C" {
5212    #[doc = " Map memory region for GPU usage.\n\n @param[in] base - Base address of the memory region to map.\n @param[in] size - Size in bytes of the memory region to map.\n @param[in] attr - GPU read/write privileges to assign to the memory region.\n\n @return 0 on success, < 0 on error."]
5213    pub fn sceGxmMapMemory(
5214        base: *mut ::std::os::raw::c_void,
5215        size: SceSize,
5216        attr: SceGxmMemoryAttribFlags,
5217    ) -> ::std::os::raw::c_int;
5218}
5219unsafe extern "C" {
5220    #[doc = " Unmap memory region for GPU usage.\n\n @param[in] base - Base address of the memory region to unmap.\n\n @return 0 on success, < 0 on error."]
5221    pub fn sceGxmUnmapMemory(base: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
5222}
5223unsafe extern "C" {
5224    #[doc = " Map memory region for vertex USSE code usage.\n\n @param[in] base - Base address of the memory region to map.\n @param[in] size - Size in bytes of the memory region to map.\n @param[out] offset - Resulting offset for the given memory region, to be used with ::sceGxmShaderPatcherCreate.\n\n @return 0 on success, < 0 on error."]
5225    pub fn sceGxmMapVertexUsseMemory(
5226        base: *mut ::std::os::raw::c_void,
5227        size: SceSize,
5228        offset: *mut ::std::os::raw::c_uint,
5229    ) -> ::std::os::raw::c_int;
5230}
5231unsafe extern "C" {
5232    #[doc = " Unmap memory region for vertex USSE code usage.\n\n @param[in] base - Base address of the memory region to unmap.\n\n @return 0 on success, < 0 on error."]
5233    pub fn sceGxmUnmapVertexUsseMemory(base: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
5234}
5235unsafe extern "C" {
5236    #[doc = " Map memory region for fragment USSE code usage.\n\n @param[in] base - Base address of the memory region to map.\n @param[in] size - Size in bytes of the memory region to map.\n @param[out] offset - Resulting offset for the given memory region, to be used with ::sceGxmShaderPatcherCreate.\n\n @return 0 on success, < 0 on error."]
5237    pub fn sceGxmMapFragmentUsseMemory(
5238        base: *mut ::std::os::raw::c_void,
5239        size: SceSize,
5240        offset: *mut ::std::os::raw::c_uint,
5241    ) -> ::std::os::raw::c_int;
5242}
5243unsafe extern "C" {
5244    #[doc = " Unmap memory region for fragment USSE code usage.\n\n @param[in] base - Base address of the memory region to unmap.\n\n @return 0 on success, < 0 on error."]
5245    pub fn sceGxmUnmapFragmentUsseMemory(
5246        base: *mut ::std::os::raw::c_void,
5247    ) -> ::std::os::raw::c_int;
5248}
5249unsafe extern "C" {
5250    #[doc = " Add a new display swap request to the display queue.\n\n @param[in] oldBuffer - Synchronization object associated to the previous frame buffer.\n @param[in] newBuffer - Synchronization object associated to the new incoming frame buffer.\n @param[in] callbackData - Data to send to the display swap callback.\n\n @return 0 on success, < 0 on error."]
5251    pub fn sceGxmDisplayQueueAddEntry(
5252        oldBuffer: *mut SceGxmSyncObject,
5253        newBuffer: *mut SceGxmSyncObject,
5254        callbackData: *const ::std::os::raw::c_void,
5255    ) -> ::std::os::raw::c_int;
5256}
5257unsafe extern "C" {
5258    #[doc = " Wait until all pending display swaps finished.\n\n @return 0 on success, < 0 on error."]
5259    pub fn sceGxmDisplayQueueFinish() -> ::std::os::raw::c_int;
5260}
5261unsafe extern "C" {
5262    #[doc = " Create a new synchronization object.\n\n @param[out] syncObject - Pointer to the newly created synchronization object.\n\n @return 0 on success, < 0 on error."]
5263    pub fn sceGxmSyncObjectCreate(syncObject: *mut *mut SceGxmSyncObject) -> ::std::os::raw::c_int;
5264}
5265unsafe extern "C" {
5266    #[doc = " Destroy a synchronization object.\n\n @param[in] syncObject - Pointer to the synchronization object to destroy.\n\n @return 0 on success, < 0 on error."]
5267    pub fn sceGxmSyncObjectDestroy(syncObject: *mut SceGxmSyncObject) -> ::std::os::raw::c_int;
5268}
5269unsafe extern "C" {
5270    #[doc = " Create a sceGxm context for immediate draw calls.\n\n @param[in] params - Pointer to a ::SceGxmContextParams structure.\n @param[out] context - Pointer to the created sceGxm context.\n\n @return 0 on success, < 0 on error."]
5271    pub fn sceGxmCreateContext(
5272        params: *const SceGxmContextParams,
5273        context: *mut *mut SceGxmContext,
5274    ) -> ::std::os::raw::c_int;
5275}
5276unsafe extern "C" {
5277    #[doc = " Destroy a sceGxm context for immediate draw calls.\n\n @param[in] context - Pointer to the context to destroy.\n\n @return 0 on success, < 0 on error."]
5278    pub fn sceGxmDestroyContext(context: *mut SceGxmContext) -> ::std::os::raw::c_int;
5279}
5280unsafe extern "C" {
5281    #[doc = " Create a sceGxm context for deferred draw calls.\n\n @param[in] params - Pointer to a ::SceGxmDeferredContextParams structure.\n @param[out] context - Pointer to the created sceGxm context.\n\n @return 0 on success, < 0 on error."]
5282    pub fn sceGxmCreateDeferredContext(
5283        params: *const SceGxmDeferredContextParams,
5284        context: *mut *mut SceGxmContext,
5285    ) -> ::std::os::raw::c_int;
5286}
5287unsafe extern "C" {
5288    #[doc = " Destroy a sceGxm context for deferred draw calls.\n\n @param[in] context - Pointer to the context to destroy.\n\n @return 0 on success, < 0 on error."]
5289    pub fn sceGxmDestroyDeferredContext(context: *mut SceGxmContext) -> ::std::os::raw::c_int;
5290}
5291unsafe extern "C" {
5292    #[doc = " Enables debug validation during execution.\n\n @param[in] context - The sceGxm context whether to enable validation.\n @param[in] enable - Whether to enable or disable validation.\n\n @return 0 on success, < 0 on error.\n @note This function has effect only when debug version of sceGxm is being used."]
5293    pub fn sceGxmSetValidationEnable(context: *mut SceGxmContext, enable: SceBool);
5294}
5295unsafe extern "C" {
5296    #[doc = " Set the currently active vertex shader program.\n\n @param[in] context - The sceGxm context to use.\n @param[in] vertexProgram - The vertex shader program to activate.\n\n @return 0 on success, < 0 on error."]
5297    pub fn sceGxmSetVertexProgram(
5298        context: *mut SceGxmContext,
5299        vertexProgram: *const SceGxmVertexProgram,
5300    );
5301}
5302unsafe extern "C" {
5303    #[doc = " Set the currently active fragment shader program.\n\n @param[in] context - The sceGxm context to use.\n @param[in] fragmentProgram - The fragment shader program to activate.\n\n @return 0 on success, < 0 on error."]
5304    pub fn sceGxmSetFragmentProgram(
5305        context: *mut SceGxmContext,
5306        fragmentProgram: *const SceGxmFragmentProgram,
5307    );
5308}
5309unsafe extern "C" {
5310    pub fn sceGxmReserveVertexDefaultUniformBuffer(
5311        context: *mut SceGxmContext,
5312        uniformBuffer: *mut *mut ::std::os::raw::c_void,
5313    ) -> ::std::os::raw::c_int;
5314}
5315unsafe extern "C" {
5316    pub fn sceGxmReserveFragmentDefaultUniformBuffer(
5317        context: *mut SceGxmContext,
5318        uniformBuffer: *mut *mut ::std::os::raw::c_void,
5319    ) -> ::std::os::raw::c_int;
5320}
5321unsafe extern "C" {
5322    pub fn sceGxmSetVertexDefaultUniformBuffer(
5323        context: *mut SceGxmContext,
5324        uniformBuffer: *const ::std::os::raw::c_void,
5325    ) -> ::std::os::raw::c_int;
5326}
5327unsafe extern "C" {
5328    pub fn sceGxmSetFragmentDefaultUniformBuffer(
5329        context: *mut SceGxmContext,
5330        uniformBuffer: *const ::std::os::raw::c_void,
5331    ) -> ::std::os::raw::c_int;
5332}
5333unsafe extern "C" {
5334    #[doc = " Set an active vertex stream for future draw calls.\n\n @param[in] context - The sceGxm context to use.\n @param[in] streamIndex - The vertex stream index to bind.\n @param[in] streamData - The data to pass on the given vertex stream.\n\n @return 0 on success, < 0 on error."]
5335    pub fn sceGxmSetVertexStream(
5336        context: *mut SceGxmContext,
5337        streamIndex: ::std::os::raw::c_uint,
5338        streamData: *const ::std::os::raw::c_void,
5339    ) -> ::std::os::raw::c_int;
5340}
5341unsafe extern "C" {
5342    #[doc = " Set an active texture for vertex shader stage for future draw calls.\n\n @param[in] context - The sceGxm context to use.\n @param[in] textureIndex - The texture unit to bind.\n @param[in] texture - The texture to bind to the given texture unit.\n\n @return 0 on success, < 0 on error."]
5343    pub fn sceGxmSetVertexTexture(
5344        context: *mut SceGxmContext,
5345        textureIndex: ::std::os::raw::c_uint,
5346        texture: *const SceGxmTexture,
5347    ) -> ::std::os::raw::c_int;
5348}
5349unsafe extern "C" {
5350    #[doc = " Set an active texture for fragment shader stage for future draw calls.\n\n @param[in] context - The sceGxm context to use.\n @param[in] textureIndex - The texture unit to bind.\n @param[in] texture - The texture to bind to the given texture unit.\n\n @return 0 on success, < 0 on error."]
5351    pub fn sceGxmSetFragmentTexture(
5352        context: *mut SceGxmContext,
5353        textureIndex: ::std::os::raw::c_uint,
5354        texture: *const SceGxmTexture,
5355    ) -> ::std::os::raw::c_int;
5356}
5357unsafe extern "C" {
5358    pub fn sceGxmSetVertexUniformBuffer(
5359        context: *mut SceGxmContext,
5360        bufferIndex: ::std::os::raw::c_uint,
5361        bufferData: *const ::std::os::raw::c_void,
5362    ) -> ::std::os::raw::c_int;
5363}
5364unsafe extern "C" {
5365    pub fn sceGxmSetFragmentUniformBuffer(
5366        context: *mut SceGxmContext,
5367        bufferIndex: ::std::os::raw::c_uint,
5368        bufferData: *const ::std::os::raw::c_void,
5369    ) -> ::std::os::raw::c_int;
5370}
5371unsafe extern "C" {
5372    pub fn sceGxmSetPrecomputedFragmentState(
5373        context: *mut SceGxmContext,
5374        precomputedState: *const SceGxmPrecomputedFragmentState,
5375    );
5376}
5377unsafe extern "C" {
5378    pub fn sceGxmSetPrecomputedVertexState(
5379        context: *mut SceGxmContext,
5380        precomputedState: *const SceGxmPrecomputedVertexState,
5381    );
5382}
5383unsafe extern "C" {
5384    pub fn sceGxmDrawPrecomputed(
5385        context: *mut SceGxmContext,
5386        precomputedDraw: *const SceGxmPrecomputedDraw,
5387    ) -> ::std::os::raw::c_int;
5388}
5389unsafe extern "C" {
5390    pub fn sceGxmDraw(
5391        context: *mut SceGxmContext,
5392        primType: SceGxmPrimitiveType,
5393        indexType: SceGxmIndexFormat,
5394        indexData: *const ::std::os::raw::c_void,
5395        indexCount: ::std::os::raw::c_uint,
5396    ) -> ::std::os::raw::c_int;
5397}
5398unsafe extern "C" {
5399    pub fn sceGxmDrawInstanced(
5400        context: *mut SceGxmContext,
5401        primType: SceGxmPrimitiveType,
5402        indexType: SceGxmIndexFormat,
5403        indexData: *const ::std::os::raw::c_void,
5404        indexCount: ::std::os::raw::c_uint,
5405        indexWrap: ::std::os::raw::c_uint,
5406    ) -> ::std::os::raw::c_int;
5407}
5408unsafe extern "C" {
5409    pub fn sceGxmSetVisibilityBuffer(
5410        context: *mut SceGxmContext,
5411        bufferBase: *mut ::std::os::raw::c_void,
5412        stridePerCore: ::std::os::raw::c_uint,
5413    ) -> ::std::os::raw::c_int;
5414}
5415unsafe extern "C" {
5416    pub fn sceGxmBeginScene(
5417        context: *mut SceGxmContext,
5418        flags: ::std::os::raw::c_uint,
5419        renderTarget: *const SceGxmRenderTarget,
5420        validRegion: *const SceGxmValidRegion,
5421        vertexSyncObject: *mut SceGxmSyncObject,
5422        fragmentSyncObject: *mut SceGxmSyncObject,
5423        colorSurface: *const SceGxmColorSurface,
5424        depthStencil: *const SceGxmDepthStencilSurface,
5425    ) -> ::std::os::raw::c_int;
5426}
5427unsafe extern "C" {
5428    pub fn sceGxmMidSceneFlush(
5429        context: *mut SceGxmContext,
5430        flags: ::std::os::raw::c_uint,
5431        vertexSyncObject: *mut SceGxmSyncObject,
5432        vertexNotification: *const SceGxmNotification,
5433    ) -> ::std::os::raw::c_int;
5434}
5435unsafe extern "C" {
5436    pub fn sceGxmEndScene(
5437        context: *mut SceGxmContext,
5438        vertexNotification: *const SceGxmNotification,
5439        fragmentNotification: *const SceGxmNotification,
5440    ) -> ::std::os::raw::c_int;
5441}
5442unsafe extern "C" {
5443    #[doc = " Init generation of a new command list.\n\n @param[in] context - The sceGxm context to use.\n\n @return 0 on success, < 0 on error."]
5444    pub fn sceGxmBeginCommandList(context: *mut SceGxmContext) -> ::std::os::raw::c_int;
5445}
5446unsafe extern "C" {
5447    #[doc = " Execute a command list.\n\n @param[in] context - The sceGxm context to use.\n @param[in] list - The command list to execute.\n\n @return 0 on success, < 0 on error."]
5448    pub fn sceGxmExecuteCommandList(
5449        context: *mut SceGxmContext,
5450        list: *mut SceGxmCommandList,
5451    ) -> ::std::os::raw::c_int;
5452}
5453unsafe extern "C" {
5454    #[doc = " Finalize the generation of a new command list.\n\n @param[in] context - The sceGxm context to use.\n @param[out] list - The finalized command list. Can be executed with ::sceGxmExecuteCommandList.\n\n @return 0 on success, < 0 on error."]
5455    pub fn sceGxmEndCommandList(
5456        context: *mut SceGxmContext,
5457        list: *mut SceGxmCommandList,
5458    ) -> ::std::os::raw::c_int;
5459}
5460unsafe extern "C" {
5461    pub fn sceGxmSetFrontDepthFunc(context: *mut SceGxmContext, depthFunc: SceGxmDepthFunc);
5462}
5463unsafe extern "C" {
5464    pub fn sceGxmSetBackDepthFunc(context: *mut SceGxmContext, depthFunc: SceGxmDepthFunc);
5465}
5466unsafe extern "C" {
5467    pub fn sceGxmSetFrontFragmentProgramEnable(
5468        context: *mut SceGxmContext,
5469        enable: SceGxmFragmentProgramMode,
5470    );
5471}
5472unsafe extern "C" {
5473    pub fn sceGxmSetBackFragmentProgramEnable(
5474        context: *mut SceGxmContext,
5475        enable: SceGxmFragmentProgramMode,
5476    );
5477}
5478unsafe extern "C" {
5479    pub fn sceGxmSetFrontDepthWriteEnable(
5480        context: *mut SceGxmContext,
5481        enable: SceGxmDepthWriteMode,
5482    );
5483}
5484unsafe extern "C" {
5485    pub fn sceGxmSetBackDepthWriteEnable(context: *mut SceGxmContext, enable: SceGxmDepthWriteMode);
5486}
5487unsafe extern "C" {
5488    pub fn sceGxmSetFrontLineFillLastPixelEnable(
5489        context: *mut SceGxmContext,
5490        enable: SceGxmLineFillLastPixelMode,
5491    );
5492}
5493unsafe extern "C" {
5494    pub fn sceGxmSetBackLineFillLastPixelEnable(
5495        context: *mut SceGxmContext,
5496        enable: SceGxmLineFillLastPixelMode,
5497    );
5498}
5499unsafe extern "C" {
5500    pub fn sceGxmSetFrontStencilRef(context: *mut SceGxmContext, sref: ::std::os::raw::c_uint);
5501}
5502unsafe extern "C" {
5503    pub fn sceGxmSetBackStencilRef(context: *mut SceGxmContext, sref: ::std::os::raw::c_uint);
5504}
5505unsafe extern "C" {
5506    pub fn sceGxmSetFrontPointLineWidth(context: *mut SceGxmContext, width: ::std::os::raw::c_uint);
5507}
5508unsafe extern "C" {
5509    pub fn sceGxmSetBackPointLineWidth(context: *mut SceGxmContext, width: ::std::os::raw::c_uint);
5510}
5511unsafe extern "C" {
5512    pub fn sceGxmSetFrontPolygonMode(context: *mut SceGxmContext, mode: SceGxmPolygonMode);
5513}
5514unsafe extern "C" {
5515    pub fn sceGxmSetBackPolygonMode(context: *mut SceGxmContext, mode: SceGxmPolygonMode);
5516}
5517unsafe extern "C" {
5518    pub fn sceGxmSetFrontStencilFunc(
5519        context: *mut SceGxmContext,
5520        func: SceGxmStencilFunc,
5521        stencilFail: SceGxmStencilOp,
5522        depthFail: SceGxmStencilOp,
5523        depthPass: SceGxmStencilOp,
5524        compareMask: ::std::os::raw::c_uchar,
5525        writeMask: ::std::os::raw::c_uchar,
5526    );
5527}
5528unsafe extern "C" {
5529    pub fn sceGxmSetBackStencilFunc(
5530        context: *mut SceGxmContext,
5531        func: SceGxmStencilFunc,
5532        stencilFail: SceGxmStencilOp,
5533        depthFail: SceGxmStencilOp,
5534        depthPass: SceGxmStencilOp,
5535        compareMask: ::std::os::raw::c_uchar,
5536        writeMask: ::std::os::raw::c_uchar,
5537    );
5538}
5539unsafe extern "C" {
5540    pub fn sceGxmSetFrontDepthBias(
5541        context: *mut SceGxmContext,
5542        factor: ::std::os::raw::c_int,
5543        units: ::std::os::raw::c_int,
5544    );
5545}
5546unsafe extern "C" {
5547    pub fn sceGxmSetBackDepthBias(
5548        context: *mut SceGxmContext,
5549        factor: ::std::os::raw::c_int,
5550        units: ::std::os::raw::c_int,
5551    );
5552}
5553unsafe extern "C" {
5554    pub fn sceGxmSetTwoSidedEnable(context: *mut SceGxmContext, enable: SceGxmTwoSidedMode);
5555}
5556unsafe extern "C" {
5557    pub fn sceGxmSetViewport(
5558        context: *mut SceGxmContext,
5559        xOffset: f32,
5560        xScale: f32,
5561        yOffset: f32,
5562        yScale: f32,
5563        zOffset: f32,
5564        zScale: f32,
5565    );
5566}
5567unsafe extern "C" {
5568    pub fn sceGxmSetWClampValue(context: *mut SceGxmContext, clampValue: f32);
5569}
5570unsafe extern "C" {
5571    pub fn sceGxmSetWClampEnable(context: *mut SceGxmContext, enable: SceGxmWClampMode);
5572}
5573unsafe extern "C" {
5574    pub fn sceGxmSetRegionClip(
5575        context: *mut SceGxmContext,
5576        mode: SceGxmRegionClipMode,
5577        xMin: ::std::os::raw::c_uint,
5578        yMin: ::std::os::raw::c_uint,
5579        xMax: ::std::os::raw::c_uint,
5580        yMax: ::std::os::raw::c_uint,
5581    );
5582}
5583unsafe extern "C" {
5584    pub fn sceGxmSetDefaultRegionClipAndViewport(
5585        context: *mut SceGxmContext,
5586        xMax: ::std::os::raw::c_uint,
5587        yMax: ::std::os::raw::c_uint,
5588    );
5589}
5590unsafe extern "C" {
5591    pub fn sceGxmSetCullMode(context: *mut SceGxmContext, mode: SceGxmCullMode);
5592}
5593unsafe extern "C" {
5594    pub fn sceGxmSetViewportEnable(context: *mut SceGxmContext, enable: SceGxmViewportMode);
5595}
5596unsafe extern "C" {
5597    pub fn sceGxmSetWBufferEnable(context: *mut SceGxmContext, enable: SceGxmWBufferMode);
5598}
5599unsafe extern "C" {
5600    pub fn sceGxmSetFrontVisibilityTestIndex(
5601        context: *mut SceGxmContext,
5602        index: ::std::os::raw::c_uint,
5603    );
5604}
5605unsafe extern "C" {
5606    pub fn sceGxmSetBackVisibilityTestIndex(
5607        context: *mut SceGxmContext,
5608        index: ::std::os::raw::c_uint,
5609    );
5610}
5611unsafe extern "C" {
5612    pub fn sceGxmSetFrontVisibilityTestOp(context: *mut SceGxmContext, op: SceGxmVisibilityTestOp);
5613}
5614unsafe extern "C" {
5615    pub fn sceGxmSetBackVisibilityTestOp(context: *mut SceGxmContext, op: SceGxmVisibilityTestOp);
5616}
5617unsafe extern "C" {
5618    pub fn sceGxmSetFrontVisibilityTestEnable(
5619        context: *mut SceGxmContext,
5620        enable: SceGxmVisibilityTestMode,
5621    );
5622}
5623unsafe extern "C" {
5624    pub fn sceGxmSetBackVisibilityTestEnable(
5625        context: *mut SceGxmContext,
5626        enable: SceGxmVisibilityTestMode,
5627    );
5628}
5629unsafe extern "C" {
5630    pub fn sceGxmSetYuvProfile(
5631        context: *mut SceGxmContext,
5632        index: ::std::os::raw::c_uint,
5633        profile: SceGxmYuvProfile,
5634    ) -> ::std::os::raw::c_int;
5635}
5636unsafe extern "C" {
5637    #[doc = " Block CPU execution until GPU finished rendering.\n\n @param[in] context - The sceGxm context to use.\n\n @return 0 on success, < 0 on error."]
5638    pub fn sceGxmFinish(context: *mut SceGxmContext);
5639}
5640unsafe extern "C" {
5641    pub fn sceGxmPushUserMarker(
5642        context: *mut SceGxmContext,
5643        tag: *const ::std::os::raw::c_char,
5644    ) -> ::std::os::raw::c_int;
5645}
5646unsafe extern "C" {
5647    pub fn sceGxmPopUserMarker(context: *mut SceGxmContext) -> ::std::os::raw::c_int;
5648}
5649unsafe extern "C" {
5650    pub fn sceGxmSetUserMarker(
5651        context: *mut SceGxmContext,
5652        tag: *const ::std::os::raw::c_char,
5653    ) -> ::std::os::raw::c_int;
5654}
5655unsafe extern "C" {
5656    pub fn sceGxmPadHeartbeat(
5657        displaySurface: *const SceGxmColorSurface,
5658        displaySyncObject: *mut SceGxmSyncObject,
5659    ) -> ::std::os::raw::c_int;
5660}
5661unsafe extern "C" {
5662    pub fn sceGxmPadTriggerGpuPaTrace() -> ::std::os::raw::c_int;
5663}
5664unsafe extern "C" {
5665    pub fn sceGxmColorSurfaceInit(
5666        surface: *mut SceGxmColorSurface,
5667        colorFormat: SceGxmColorFormat,
5668        surfaceType: SceGxmColorSurfaceType,
5669        scaleMode: SceGxmColorSurfaceScaleMode,
5670        outputRegisterSize: SceGxmOutputRegisterSize,
5671        width: ::std::os::raw::c_uint,
5672        height: ::std::os::raw::c_uint,
5673        strideInPixels: ::std::os::raw::c_uint,
5674        data: *mut ::std::os::raw::c_void,
5675    ) -> ::std::os::raw::c_int;
5676}
5677unsafe extern "C" {
5678    pub fn sceGxmColorSurfaceInitDisabled(
5679        surface: *mut SceGxmColorSurface,
5680    ) -> ::std::os::raw::c_int;
5681}
5682unsafe extern "C" {
5683    pub fn sceGxmColorSurfaceIsEnabled(surface: *const SceGxmColorSurface) -> SceBool;
5684}
5685unsafe extern "C" {
5686    pub fn sceGxmColorSurfaceGetClip(
5687        surface: *const SceGxmColorSurface,
5688        xMin: *mut ::std::os::raw::c_uint,
5689        yMin: *mut ::std::os::raw::c_uint,
5690        xMax: *mut ::std::os::raw::c_uint,
5691        yMax: *mut ::std::os::raw::c_uint,
5692    );
5693}
5694unsafe extern "C" {
5695    pub fn sceGxmColorSurfaceSetClip(
5696        surface: *mut SceGxmColorSurface,
5697        xMin: ::std::os::raw::c_uint,
5698        yMin: ::std::os::raw::c_uint,
5699        xMax: ::std::os::raw::c_uint,
5700        yMax: ::std::os::raw::c_uint,
5701    );
5702}
5703unsafe extern "C" {
5704    pub fn sceGxmColorSurfaceGetScaleMode(
5705        surface: *const SceGxmColorSurface,
5706    ) -> SceGxmColorSurfaceScaleMode;
5707}
5708unsafe extern "C" {
5709    pub fn sceGxmColorSurfaceSetScaleMode(
5710        surface: *mut SceGxmColorSurface,
5711        scaleMode: SceGxmColorSurfaceScaleMode,
5712    );
5713}
5714unsafe extern "C" {
5715    pub fn sceGxmColorSurfaceGetData(
5716        surface: *const SceGxmColorSurface,
5717    ) -> *mut ::std::os::raw::c_void;
5718}
5719unsafe extern "C" {
5720    pub fn sceGxmColorSurfaceSetData(
5721        surface: *mut SceGxmColorSurface,
5722        data: *mut ::std::os::raw::c_void,
5723    ) -> ::std::os::raw::c_int;
5724}
5725unsafe extern "C" {
5726    pub fn sceGxmColorSurfaceGetFormat(surface: *const SceGxmColorSurface) -> SceGxmColorFormat;
5727}
5728unsafe extern "C" {
5729    pub fn sceGxmColorSurfaceSetFormat(
5730        surface: *mut SceGxmColorSurface,
5731        format: SceGxmColorFormat,
5732    ) -> ::std::os::raw::c_int;
5733}
5734unsafe extern "C" {
5735    pub fn sceGxmColorSurfaceGetType(surface: *const SceGxmColorSurface) -> SceGxmColorSurfaceType;
5736}
5737unsafe extern "C" {
5738    pub fn sceGxmColorSurfaceGetStrideInPixels(
5739        surface: *const SceGxmColorSurface,
5740    ) -> ::std::os::raw::c_uint;
5741}
5742unsafe extern "C" {
5743    pub fn sceGxmDepthStencilSurfaceInit(
5744        surface: *mut SceGxmDepthStencilSurface,
5745        depthStencilFormat: SceGxmDepthStencilFormat,
5746        surfaceType: SceGxmDepthStencilSurfaceType,
5747        strideInSamples: ::std::os::raw::c_uint,
5748        depthData: *mut ::std::os::raw::c_void,
5749        stencilData: *mut ::std::os::raw::c_void,
5750    ) -> ::std::os::raw::c_int;
5751}
5752unsafe extern "C" {
5753    pub fn sceGxmDepthStencilSurfaceInitDisabled(
5754        surface: *mut SceGxmDepthStencilSurface,
5755    ) -> ::std::os::raw::c_int;
5756}
5757unsafe extern "C" {
5758    pub fn sceGxmDepthStencilSurfaceGetBackgroundDepth(
5759        surface: *const SceGxmDepthStencilSurface,
5760    ) -> f32;
5761}
5762unsafe extern "C" {
5763    pub fn sceGxmDepthStencilSurfaceSetBackgroundDepth(
5764        surface: *mut SceGxmDepthStencilSurface,
5765        backgroundDepth: f32,
5766    );
5767}
5768unsafe extern "C" {
5769    pub fn sceGxmDepthStencilSurfaceGetBackgroundStencil(
5770        surface: *const SceGxmDepthStencilSurface,
5771    ) -> ::std::os::raw::c_uchar;
5772}
5773unsafe extern "C" {
5774    pub fn sceGxmDepthStencilSurfaceSetBackgroundStencil(
5775        surface: *mut SceGxmDepthStencilSurface,
5776        backgroundStencil: ::std::os::raw::c_uchar,
5777    );
5778}
5779unsafe extern "C" {
5780    pub fn sceGxmDepthStencilSurfaceIsEnabled(surface: *const SceGxmDepthStencilSurface)
5781    -> SceBool;
5782}
5783unsafe extern "C" {
5784    pub fn sceGxmDepthStencilSurfaceSetForceLoadMode(
5785        surface: *mut SceGxmDepthStencilSurface,
5786        forceLoad: SceGxmDepthStencilForceLoadMode,
5787    );
5788}
5789unsafe extern "C" {
5790    pub fn sceGxmDepthStencilSurfaceGetForceLoadMode(
5791        surface: *const SceGxmDepthStencilSurface,
5792    ) -> SceGxmDepthStencilForceLoadMode;
5793}
5794unsafe extern "C" {
5795    pub fn sceGxmDepthStencilSurfaceSetForceStoreMode(
5796        surface: *mut SceGxmDepthStencilSurface,
5797        forceStore: SceGxmDepthStencilForceStoreMode,
5798    );
5799}
5800unsafe extern "C" {
5801    pub fn sceGxmDepthStencilSurfaceGetForceStoreMode(
5802        surface: *const SceGxmDepthStencilSurface,
5803    ) -> SceGxmDepthStencilForceStoreMode;
5804}
5805unsafe extern "C" {
5806    pub fn sceGxmColorSurfaceGetGammaMode(
5807        surface: *const SceGxmColorSurface,
5808    ) -> SceGxmColorSurfaceGammaMode;
5809}
5810unsafe extern "C" {
5811    pub fn sceGxmColorSurfaceSetGammaMode(
5812        surface: *mut SceGxmColorSurface,
5813        gammaMode: SceGxmColorSurfaceGammaMode,
5814    ) -> ::std::os::raw::c_int;
5815}
5816unsafe extern "C" {
5817    pub fn sceGxmColorSurfaceGetDitherMode(
5818        surface: *const SceGxmColorSurface,
5819    ) -> SceGxmColorSurfaceDitherMode;
5820}
5821unsafe extern "C" {
5822    pub fn sceGxmColorSurfaceSetDitherMode(
5823        surface: *mut SceGxmColorSurface,
5824        ditherMode: SceGxmColorSurfaceDitherMode,
5825    ) -> ::std::os::raw::c_int;
5826}
5827unsafe extern "C" {
5828    pub fn sceGxmDepthStencilSurfaceGetFormat(
5829        surface: *const SceGxmDepthStencilSurface,
5830    ) -> SceGxmDepthStencilFormat;
5831}
5832unsafe extern "C" {
5833    pub fn sceGxmDepthStencilSurfaceGetStrideInSamples(
5834        surface: *const SceGxmDepthStencilSurface,
5835    ) -> ::std::os::raw::c_uint;
5836}
5837unsafe extern "C" {
5838    pub fn sceGxmProgramCheck(program: *const SceGxmProgram) -> ::std::os::raw::c_int;
5839}
5840unsafe extern "C" {
5841    pub fn sceGxmProgramGetSize(program: *const SceGxmProgram) -> ::std::os::raw::c_uint;
5842}
5843unsafe extern "C" {
5844    pub fn sceGxmProgramGetType(program: *const SceGxmProgram) -> SceGxmProgramType;
5845}
5846unsafe extern "C" {
5847    pub fn sceGxmProgramIsDiscardUsed(program: *const SceGxmProgram) -> SceBool;
5848}
5849unsafe extern "C" {
5850    pub fn sceGxmProgramIsDepthReplaceUsed(program: *const SceGxmProgram) -> SceBool;
5851}
5852unsafe extern "C" {
5853    pub fn sceGxmProgramIsSpriteCoordUsed(program: *const SceGxmProgram) -> SceBool;
5854}
5855unsafe extern "C" {
5856    pub fn sceGxmProgramGetDefaultUniformBufferSize(
5857        program: *const SceGxmProgram,
5858    ) -> ::std::os::raw::c_uint;
5859}
5860unsafe extern "C" {
5861    pub fn sceGxmProgramGetParameterCount(program: *const SceGxmProgram) -> ::std::os::raw::c_uint;
5862}
5863unsafe extern "C" {
5864    pub fn sceGxmProgramGetParameter(
5865        program: *const SceGxmProgram,
5866        index: ::std::os::raw::c_uint,
5867    ) -> *const SceGxmProgramParameter;
5868}
5869unsafe extern "C" {
5870    pub fn sceGxmProgramFindParameterByName(
5871        program: *const SceGxmProgram,
5872        name: *const ::std::os::raw::c_char,
5873    ) -> *const SceGxmProgramParameter;
5874}
5875unsafe extern "C" {
5876    pub fn sceGxmProgramFindParameterBySemantic(
5877        program: *const SceGxmProgram,
5878        semantic: SceGxmParameterSemantic,
5879        index: ::std::os::raw::c_uint,
5880    ) -> *const SceGxmProgramParameter;
5881}
5882unsafe extern "C" {
5883    pub fn sceGxmProgramParameterGetIndex(
5884        program: *const SceGxmProgram,
5885        parameter: *const SceGxmProgramParameter,
5886    ) -> ::std::os::raw::c_uint;
5887}
5888unsafe extern "C" {
5889    pub fn sceGxmProgramParameterGetCategory(
5890        parameter: *const SceGxmProgramParameter,
5891    ) -> SceGxmParameterCategory;
5892}
5893unsafe extern "C" {
5894    pub fn sceGxmProgramParameterGetName(
5895        parameter: *const SceGxmProgramParameter,
5896    ) -> *const ::std::os::raw::c_char;
5897}
5898unsafe extern "C" {
5899    pub fn sceGxmProgramParameterGetSemantic(
5900        parameter: *const SceGxmProgramParameter,
5901    ) -> SceGxmParameterSemantic;
5902}
5903unsafe extern "C" {
5904    pub fn sceGxmProgramParameterGetSemanticIndex(
5905        parameter: *const SceGxmProgramParameter,
5906    ) -> ::std::os::raw::c_uint;
5907}
5908unsafe extern "C" {
5909    pub fn sceGxmProgramParameterGetType(
5910        parameter: *const SceGxmProgramParameter,
5911    ) -> SceGxmParameterType;
5912}
5913unsafe extern "C" {
5914    pub fn sceGxmProgramParameterGetComponentCount(
5915        parameter: *const SceGxmProgramParameter,
5916    ) -> ::std::os::raw::c_uint;
5917}
5918unsafe extern "C" {
5919    pub fn sceGxmProgramParameterGetArraySize(
5920        parameter: *const SceGxmProgramParameter,
5921    ) -> ::std::os::raw::c_uint;
5922}
5923unsafe extern "C" {
5924    pub fn sceGxmProgramParameterGetResourceIndex(
5925        parameter: *const SceGxmProgramParameter,
5926    ) -> ::std::os::raw::c_uint;
5927}
5928unsafe extern "C" {
5929    pub fn sceGxmProgramParameterGetContainerIndex(
5930        parameter: *const SceGxmProgramParameter,
5931    ) -> ::std::os::raw::c_uint;
5932}
5933unsafe extern "C" {
5934    pub fn sceGxmProgramParameterIsSamplerCube(parameter: *const SceGxmProgramParameter)
5935    -> SceBool;
5936}
5937unsafe extern "C" {
5938    pub fn sceGxmFragmentProgramGetProgram(
5939        fragmentProgram: *const SceGxmFragmentProgram,
5940    ) -> *const SceGxmProgram;
5941}
5942unsafe extern "C" {
5943    pub fn sceGxmVertexProgramGetProgram(
5944        vertexProgram: *const SceGxmVertexProgram,
5945    ) -> *const SceGxmProgram;
5946}
5947unsafe extern "C" {
5948    pub fn sceGxmShaderPatcherCreate(
5949        params: *const SceGxmShaderPatcherParams,
5950        shaderPatcher: *mut *mut SceGxmShaderPatcher,
5951    ) -> ::std::os::raw::c_int;
5952}
5953unsafe extern "C" {
5954    pub fn sceGxmShaderPatcherSetUserData(
5955        shaderPatcher: *mut SceGxmShaderPatcher,
5956        userData: *mut ::std::os::raw::c_void,
5957    ) -> ::std::os::raw::c_int;
5958}
5959unsafe extern "C" {
5960    pub fn sceGxmShaderPatcherGetUserData(
5961        shaderPatcher: *mut SceGxmShaderPatcher,
5962    ) -> *mut ::std::os::raw::c_void;
5963}
5964unsafe extern "C" {
5965    pub fn sceGxmShaderPatcherDestroy(
5966        shaderPatcher: *mut SceGxmShaderPatcher,
5967    ) -> ::std::os::raw::c_int;
5968}
5969unsafe extern "C" {
5970    pub fn sceGxmShaderPatcherRegisterProgram(
5971        shaderPatcher: *mut SceGxmShaderPatcher,
5972        programHeader: *const SceGxmProgram,
5973        programId: *mut SceGxmShaderPatcherId,
5974    ) -> ::std::os::raw::c_int;
5975}
5976unsafe extern "C" {
5977    pub fn sceGxmShaderPatcherUnregisterProgram(
5978        shaderPatcher: *mut SceGxmShaderPatcher,
5979        programId: SceGxmShaderPatcherId,
5980    ) -> ::std::os::raw::c_int;
5981}
5982unsafe extern "C" {
5983    pub fn sceGxmShaderPatcherForceUnregisterProgram(
5984        shaderPatcher: *mut SceGxmShaderPatcher,
5985        programId: SceGxmShaderPatcherId,
5986    ) -> ::std::os::raw::c_int;
5987}
5988unsafe extern "C" {
5989    pub fn sceGxmShaderPatcherGetProgramFromId(
5990        programId: SceGxmShaderPatcherId,
5991    ) -> *const SceGxmProgram;
5992}
5993unsafe extern "C" {
5994    pub fn sceGxmShaderPatcherCreateVertexProgram(
5995        shaderPatcher: *mut SceGxmShaderPatcher,
5996        programId: SceGxmShaderPatcherId,
5997        attributes: *const SceGxmVertexAttribute,
5998        attributeCount: ::std::os::raw::c_uint,
5999        streams: *const SceGxmVertexStream,
6000        streamCount: ::std::os::raw::c_uint,
6001        vertexProgram: *mut *mut SceGxmVertexProgram,
6002    ) -> ::std::os::raw::c_int;
6003}
6004unsafe extern "C" {
6005    pub fn sceGxmShaderPatcherCreateFragmentProgram(
6006        shaderPatcher: *mut SceGxmShaderPatcher,
6007        programId: SceGxmShaderPatcherId,
6008        outputFormat: SceGxmOutputRegisterFormat,
6009        multisampleMode: SceGxmMultisampleMode,
6010        blendInfo: *const SceGxmBlendInfo,
6011        vertexProgram: *const SceGxmProgram,
6012        fragmentProgram: *mut *mut SceGxmFragmentProgram,
6013    ) -> ::std::os::raw::c_int;
6014}
6015unsafe extern "C" {
6016    pub fn sceGxmShaderPatcherCreateMaskUpdateFragmentProgram(
6017        shaderPatcher: *mut SceGxmShaderPatcher,
6018        fragmentProgram: *mut *mut SceGxmFragmentProgram,
6019    ) -> ::std::os::raw::c_int;
6020}
6021unsafe extern "C" {
6022    pub fn sceGxmShaderPatcherAddRefVertexProgram(
6023        shaderPatcher: *mut SceGxmShaderPatcher,
6024        vertexProgram: *mut SceGxmVertexProgram,
6025    ) -> ::std::os::raw::c_int;
6026}
6027unsafe extern "C" {
6028    pub fn sceGxmShaderPatcherAddRefFragmentProgram(
6029        shaderPatcher: *mut SceGxmShaderPatcher,
6030        fragmentProgram: *mut SceGxmFragmentProgram,
6031    ) -> ::std::os::raw::c_int;
6032}
6033unsafe extern "C" {
6034    pub fn sceGxmShaderPatcherGetVertexProgramRefCount(
6035        shaderPatcher: *mut SceGxmShaderPatcher,
6036        fragmentProgram: *mut SceGxmVertexProgram,
6037        count: *mut ::std::os::raw::c_uint,
6038    ) -> ::std::os::raw::c_int;
6039}
6040unsafe extern "C" {
6041    pub fn sceGxmShaderPatcherGetFragmentProgramRefCount(
6042        shaderPatcher: *mut SceGxmShaderPatcher,
6043        fragmentProgram: *mut SceGxmFragmentProgram,
6044        count: *mut ::std::os::raw::c_uint,
6045    ) -> ::std::os::raw::c_int;
6046}
6047unsafe extern "C" {
6048    pub fn sceGxmShaderPatcherReleaseVertexProgram(
6049        shaderPatcher: *mut SceGxmShaderPatcher,
6050        vertexProgram: *mut SceGxmVertexProgram,
6051    ) -> ::std::os::raw::c_int;
6052}
6053unsafe extern "C" {
6054    pub fn sceGxmShaderPatcherReleaseFragmentProgram(
6055        shaderPatcher: *mut SceGxmShaderPatcher,
6056        fragmentProgram: *mut SceGxmFragmentProgram,
6057    ) -> ::std::os::raw::c_int;
6058}
6059unsafe extern "C" {
6060    pub fn sceGxmShaderPatcherGetHostMemAllocated(
6061        shaderPatcher: *const SceGxmShaderPatcher,
6062    ) -> ::std::os::raw::c_uint;
6063}
6064unsafe extern "C" {
6065    pub fn sceGxmShaderPatcherGetBufferMemAllocated(
6066        shaderPatcher: *const SceGxmShaderPatcher,
6067    ) -> ::std::os::raw::c_uint;
6068}
6069unsafe extern "C" {
6070    pub fn sceGxmShaderPatcherGetVertexUsseMemAllocated(
6071        shaderPatcher: *const SceGxmShaderPatcher,
6072    ) -> ::std::os::raw::c_uint;
6073}
6074unsafe extern "C" {
6075    pub fn sceGxmShaderPatcherGetFragmentUsseMemAllocated(
6076        shaderPatcher: *const SceGxmShaderPatcher,
6077    ) -> ::std::os::raw::c_uint;
6078}
6079unsafe extern "C" {
6080    pub fn sceGxmTextureInitSwizzled(
6081        texture: *mut SceGxmTexture,
6082        data: *const ::std::os::raw::c_void,
6083        texFormat: SceGxmTextureFormat,
6084        width: ::std::os::raw::c_uint,
6085        height: ::std::os::raw::c_uint,
6086        mipCount: ::std::os::raw::c_uint,
6087    ) -> ::std::os::raw::c_int;
6088}
6089unsafe extern "C" {
6090    pub fn sceGxmTextureInitSwizzledArbitrary(
6091        texture: *mut SceGxmTexture,
6092        data: *const ::std::os::raw::c_void,
6093        texFormat: SceGxmTextureFormat,
6094        width: ::std::os::raw::c_uint,
6095        height: ::std::os::raw::c_uint,
6096        mipCount: ::std::os::raw::c_uint,
6097    ) -> ::std::os::raw::c_int;
6098}
6099unsafe extern "C" {
6100    pub fn sceGxmTextureInitLinear(
6101        texture: *mut SceGxmTexture,
6102        data: *const ::std::os::raw::c_void,
6103        texFormat: SceGxmTextureFormat,
6104        width: ::std::os::raw::c_uint,
6105        height: ::std::os::raw::c_uint,
6106        mipCount: ::std::os::raw::c_uint,
6107    ) -> ::std::os::raw::c_int;
6108}
6109unsafe extern "C" {
6110    pub fn sceGxmTextureInitLinearStrided(
6111        texture: *mut SceGxmTexture,
6112        data: *const ::std::os::raw::c_void,
6113        texFormat: SceGxmTextureFormat,
6114        width: ::std::os::raw::c_uint,
6115        height: ::std::os::raw::c_uint,
6116        byteStride: ::std::os::raw::c_uint,
6117    ) -> ::std::os::raw::c_int;
6118}
6119unsafe extern "C" {
6120    pub fn sceGxmTextureInitTiled(
6121        texture: *mut SceGxmTexture,
6122        data: *const ::std::os::raw::c_void,
6123        texFormat: SceGxmTextureFormat,
6124        width: ::std::os::raw::c_uint,
6125        height: ::std::os::raw::c_uint,
6126        mipCount: ::std::os::raw::c_uint,
6127    ) -> ::std::os::raw::c_int;
6128}
6129unsafe extern "C" {
6130    pub fn sceGxmTextureInitCube(
6131        texture: *mut SceGxmTexture,
6132        data: *const ::std::os::raw::c_void,
6133        texFormat: SceGxmTextureFormat,
6134        width: ::std::os::raw::c_uint,
6135        height: ::std::os::raw::c_uint,
6136        mipCount: ::std::os::raw::c_uint,
6137    ) -> ::std::os::raw::c_int;
6138}
6139unsafe extern "C" {
6140    pub fn sceGxmTextureGetType(texture: *const SceGxmTexture) -> SceGxmTextureType;
6141}
6142unsafe extern "C" {
6143    pub fn sceGxmTextureValidate(texture: *const SceGxmTexture) -> ::std::os::raw::c_int;
6144}
6145unsafe extern "C" {
6146    pub fn sceGxmTextureSetMinFilter(
6147        texture: *mut SceGxmTexture,
6148        minFilter: SceGxmTextureFilter,
6149    ) -> ::std::os::raw::c_int;
6150}
6151unsafe extern "C" {
6152    pub fn sceGxmTextureGetMinFilter(texture: *const SceGxmTexture) -> SceGxmTextureFilter;
6153}
6154unsafe extern "C" {
6155    pub fn sceGxmTextureSetMagFilter(
6156        texture: *mut SceGxmTexture,
6157        magFilter: SceGxmTextureFilter,
6158    ) -> ::std::os::raw::c_int;
6159}
6160unsafe extern "C" {
6161    pub fn sceGxmTextureGetMagFilter(texture: *const SceGxmTexture) -> SceGxmTextureFilter;
6162}
6163unsafe extern "C" {
6164    pub fn sceGxmTextureSetMipFilter(
6165        texture: *mut SceGxmTexture,
6166        mipFilter: SceGxmTextureMipFilter,
6167    ) -> ::std::os::raw::c_int;
6168}
6169unsafe extern "C" {
6170    pub fn sceGxmTextureGetMipFilter(texture: *const SceGxmTexture) -> SceGxmTextureMipFilter;
6171}
6172unsafe extern "C" {
6173    pub fn sceGxmTextureSetUAddrMode(
6174        texture: *mut SceGxmTexture,
6175        addrMode: SceGxmTextureAddrMode,
6176    ) -> ::std::os::raw::c_int;
6177}
6178unsafe extern "C" {
6179    pub fn sceGxmTextureGetUAddrMode(texture: *const SceGxmTexture) -> SceGxmTextureAddrMode;
6180}
6181unsafe extern "C" {
6182    pub fn sceGxmTextureSetVAddrMode(
6183        texture: *mut SceGxmTexture,
6184        addrMode: SceGxmTextureAddrMode,
6185    ) -> ::std::os::raw::c_int;
6186}
6187unsafe extern "C" {
6188    pub fn sceGxmTextureGetVAddrMode(texture: *const SceGxmTexture) -> SceGxmTextureAddrMode;
6189}
6190unsafe extern "C" {
6191    pub fn sceGxmTextureSetFormat(
6192        texture: *mut SceGxmTexture,
6193        texFormat: SceGxmTextureFormat,
6194    ) -> ::std::os::raw::c_int;
6195}
6196unsafe extern "C" {
6197    pub fn sceGxmTextureGetFormat(texture: *const SceGxmTexture) -> SceGxmTextureFormat;
6198}
6199unsafe extern "C" {
6200    pub fn sceGxmTextureSetLodBias(
6201        texture: *mut SceGxmTexture,
6202        bias: ::std::os::raw::c_uint,
6203    ) -> ::std::os::raw::c_int;
6204}
6205unsafe extern "C" {
6206    pub fn sceGxmTextureGetLodBias(texture: *const SceGxmTexture) -> ::std::os::raw::c_uint;
6207}
6208unsafe extern "C" {
6209    pub fn sceGxmTextureSetStride(
6210        texture: *mut SceGxmTexture,
6211        byteStride: ::std::os::raw::c_uint,
6212    ) -> ::std::os::raw::c_int;
6213}
6214unsafe extern "C" {
6215    pub fn sceGxmTextureGetStride(texture: *const SceGxmTexture) -> ::std::os::raw::c_uint;
6216}
6217unsafe extern "C" {
6218    pub fn sceGxmTextureSetWidth(
6219        texture: *mut SceGxmTexture,
6220        width: ::std::os::raw::c_uint,
6221    ) -> ::std::os::raw::c_int;
6222}
6223unsafe extern "C" {
6224    pub fn sceGxmTextureGetWidth(texture: *const SceGxmTexture) -> ::std::os::raw::c_uint;
6225}
6226unsafe extern "C" {
6227    pub fn sceGxmTextureSetHeight(
6228        texture: *mut SceGxmTexture,
6229        height: ::std::os::raw::c_uint,
6230    ) -> ::std::os::raw::c_int;
6231}
6232unsafe extern "C" {
6233    pub fn sceGxmTextureGetHeight(texture: *const SceGxmTexture) -> ::std::os::raw::c_uint;
6234}
6235unsafe extern "C" {
6236    pub fn sceGxmTextureSetData(
6237        texture: *mut SceGxmTexture,
6238        data: *const ::std::os::raw::c_void,
6239    ) -> ::std::os::raw::c_int;
6240}
6241unsafe extern "C" {
6242    pub fn sceGxmTextureGetData(texture: *const SceGxmTexture) -> *mut ::std::os::raw::c_void;
6243}
6244unsafe extern "C" {
6245    pub fn sceGxmTextureSetMipmapCount(
6246        texture: *mut SceGxmTexture,
6247        mipCount: ::std::os::raw::c_uint,
6248    ) -> ::std::os::raw::c_int;
6249}
6250unsafe extern "C" {
6251    pub fn sceGxmTextureGetMipmapCount(texture: *const SceGxmTexture) -> ::std::os::raw::c_uint;
6252}
6253unsafe extern "C" {
6254    pub fn sceGxmTextureSetPalette(
6255        texture: *mut SceGxmTexture,
6256        paletteData: *const ::std::os::raw::c_void,
6257    ) -> ::std::os::raw::c_int;
6258}
6259unsafe extern "C" {
6260    pub fn sceGxmTextureGetPalette(texture: *const SceGxmTexture) -> *mut ::std::os::raw::c_void;
6261}
6262unsafe extern "C" {
6263    pub fn sceGxmTextureGetGammaMode(texture: *const SceGxmTexture) -> SceGxmTextureGammaMode;
6264}
6265unsafe extern "C" {
6266    pub fn sceGxmTextureSetGammaMode(
6267        texture: *mut SceGxmTexture,
6268        gammaMode: SceGxmTextureGammaMode,
6269    ) -> ::std::os::raw::c_int;
6270}
6271unsafe extern "C" {
6272    pub fn sceGxmGetPrecomputedVertexStateSize(
6273        vertexProgram: *const SceGxmVertexProgram,
6274    ) -> ::std::os::raw::c_uint;
6275}
6276unsafe extern "C" {
6277    pub fn sceGxmPrecomputedVertexStateInit(
6278        precomputedState: *mut SceGxmPrecomputedVertexState,
6279        vertexProgram: *const SceGxmVertexProgram,
6280        memBlock: *mut ::std::os::raw::c_void,
6281    ) -> ::std::os::raw::c_int;
6282}
6283unsafe extern "C" {
6284    pub fn sceGxmPrecomputedVertexStateSetDefaultUniformBuffer(
6285        precomputedState: *mut SceGxmPrecomputedVertexState,
6286        defaultBuffer: *mut ::std::os::raw::c_void,
6287    );
6288}
6289unsafe extern "C" {
6290    pub fn sceGxmPrecomputedVertexStateGetDefaultUniformBuffer(
6291        precomputedState: *const SceGxmPrecomputedVertexState,
6292    ) -> *mut ::std::os::raw::c_void;
6293}
6294unsafe extern "C" {
6295    pub fn sceGxmPrecomputedVertexStateSetAllTextures(
6296        precomputedState: *mut SceGxmPrecomputedVertexState,
6297        textures: *const SceGxmTexture,
6298    ) -> ::std::os::raw::c_int;
6299}
6300unsafe extern "C" {
6301    pub fn sceGxmPrecomputedVertexStateSetTexture(
6302        precomputedState: *mut SceGxmPrecomputedVertexState,
6303        textureIndex: ::std::os::raw::c_uint,
6304        texture: *const SceGxmTexture,
6305    ) -> ::std::os::raw::c_int;
6306}
6307unsafe extern "C" {
6308    pub fn sceGxmPrecomputedVertexStateSetAllUniformBuffers(
6309        precomputedState: *mut SceGxmPrecomputedVertexState,
6310        bufferDataArray: *const *const ::std::os::raw::c_void,
6311    ) -> ::std::os::raw::c_int;
6312}
6313unsafe extern "C" {
6314    pub fn sceGxmPrecomputedVertexStateSetUniformBuffer(
6315        precomputedState: *mut SceGxmPrecomputedVertexState,
6316        bufferIndex: ::std::os::raw::c_uint,
6317        bufferData: *const ::std::os::raw::c_void,
6318    ) -> ::std::os::raw::c_int;
6319}
6320unsafe extern "C" {
6321    pub fn sceGxmGetPrecomputedFragmentStateSize(
6322        fragmentProgram: *const SceGxmFragmentProgram,
6323    ) -> ::std::os::raw::c_uint;
6324}
6325unsafe extern "C" {
6326    pub fn sceGxmPrecomputedFragmentStateInit(
6327        precomputedState: *mut SceGxmPrecomputedFragmentState,
6328        fragmentProgram: *const SceGxmFragmentProgram,
6329        memBlock: *mut ::std::os::raw::c_void,
6330    ) -> ::std::os::raw::c_int;
6331}
6332unsafe extern "C" {
6333    pub fn sceGxmPrecomputedFragmentStateSetDefaultUniformBuffer(
6334        precomputedState: *mut SceGxmPrecomputedFragmentState,
6335        defaultBuffer: *mut ::std::os::raw::c_void,
6336    );
6337}
6338unsafe extern "C" {
6339    pub fn sceGxmPrecomputedFragmentStateGetDefaultUniformBuffer(
6340        precomputedState: *const SceGxmPrecomputedFragmentState,
6341    ) -> *mut ::std::os::raw::c_void;
6342}
6343unsafe extern "C" {
6344    pub fn sceGxmPrecomputedFragmentStateSetAllTextures(
6345        precomputedState: *mut SceGxmPrecomputedFragmentState,
6346        textureArray: *const SceGxmTexture,
6347    ) -> ::std::os::raw::c_int;
6348}
6349unsafe extern "C" {
6350    pub fn sceGxmPrecomputedFragmentStateSetTexture(
6351        precomputedState: *mut SceGxmPrecomputedFragmentState,
6352        textureIndex: ::std::os::raw::c_uint,
6353        texture: *const SceGxmTexture,
6354    ) -> ::std::os::raw::c_int;
6355}
6356unsafe extern "C" {
6357    pub fn sceGxmPrecomputedFragmentStateSetAllUniformBuffers(
6358        precomputedState: *mut SceGxmPrecomputedFragmentState,
6359        bufferDataArray: *const *const ::std::os::raw::c_void,
6360    ) -> ::std::os::raw::c_int;
6361}
6362unsafe extern "C" {
6363    pub fn sceGxmPrecomputedFragmentStateSetUniformBuffer(
6364        precomputedState: *mut SceGxmPrecomputedFragmentState,
6365        bufferIndex: ::std::os::raw::c_uint,
6366        bufferData: *const ::std::os::raw::c_void,
6367    ) -> ::std::os::raw::c_int;
6368}
6369unsafe extern "C" {
6370    pub fn sceGxmGetPrecomputedDrawSize(
6371        vertexProgram: *const SceGxmVertexProgram,
6372    ) -> ::std::os::raw::c_uint;
6373}
6374unsafe extern "C" {
6375    pub fn sceGxmPrecomputedDrawInit(
6376        precomputedDraw: *mut SceGxmPrecomputedDraw,
6377        vertexProgram: *const SceGxmVertexProgram,
6378        memBlock: *mut ::std::os::raw::c_void,
6379    ) -> ::std::os::raw::c_int;
6380}
6381unsafe extern "C" {
6382    pub fn sceGxmPrecomputedDrawSetAllVertexStreams(
6383        precomputedDraw: *mut SceGxmPrecomputedDraw,
6384        streamDataArray: *const *const ::std::os::raw::c_void,
6385    ) -> ::std::os::raw::c_int;
6386}
6387unsafe extern "C" {
6388    pub fn sceGxmPrecomputedDrawSetVertexStream(
6389        precomputedDraw: *mut SceGxmPrecomputedDraw,
6390        streamIndex: ::std::os::raw::c_uint,
6391        streamData: *const ::std::os::raw::c_void,
6392    ) -> ::std::os::raw::c_int;
6393}
6394unsafe extern "C" {
6395    pub fn sceGxmPrecomputedDrawSetParams(
6396        precomputedDraw: *mut SceGxmPrecomputedDraw,
6397        primType: SceGxmPrimitiveType,
6398        indexType: SceGxmIndexFormat,
6399        indexData: *const ::std::os::raw::c_void,
6400        indexCount: ::std::os::raw::c_uint,
6401    );
6402}
6403unsafe extern "C" {
6404    pub fn sceGxmPrecomputedDrawSetParamsInstanced(
6405        precomputedDraw: *mut SceGxmPrecomputedDraw,
6406        primType: SceGxmPrimitiveType,
6407        indexType: SceGxmIndexFormat,
6408        indexData: *const ::std::os::raw::c_void,
6409        indexCount: ::std::os::raw::c_uint,
6410        indexWrap: ::std::os::raw::c_uint,
6411    );
6412}
6413unsafe extern "C" {
6414    pub fn sceGxmGetRenderTargetMemSize(
6415        params: *const SceGxmRenderTargetParams,
6416        driverMemSize: *mut ::std::os::raw::c_uint,
6417    ) -> ::std::os::raw::c_int;
6418}
6419unsafe extern "C" {
6420    pub fn sceGxmCreateRenderTarget(
6421        params: *const SceGxmRenderTargetParams,
6422        renderTarget: *mut *mut SceGxmRenderTarget,
6423    ) -> ::std::os::raw::c_int;
6424}
6425unsafe extern "C" {
6426    pub fn sceGxmRenderTargetGetDriverMemBlock(
6427        renderTarget: *const SceGxmRenderTarget,
6428        driverMemBlock: *mut SceUID,
6429    ) -> ::std::os::raw::c_int;
6430}
6431unsafe extern "C" {
6432    pub fn sceGxmDestroyRenderTarget(
6433        renderTarget: *mut SceGxmRenderTarget,
6434    ) -> ::std::os::raw::c_int;
6435}
6436unsafe extern "C" {
6437    pub fn sceGxmSetUniformDataF(
6438        uniformBuffer: *mut ::std::os::raw::c_void,
6439        parameter: *const SceGxmProgramParameter,
6440        componentOffset: ::std::os::raw::c_uint,
6441        componentCount: ::std::os::raw::c_uint,
6442        sourceData: *const f32,
6443    ) -> ::std::os::raw::c_int;
6444}
6445unsafe extern "C" {
6446    pub fn sceGxmTransferCopy(
6447        width: u32,
6448        height: u32,
6449        colorKeyValue: u32,
6450        colorKeyMask: u32,
6451        colorKeyMode: SceGxmTransferColorKeyMode,
6452        srcFormat: SceGxmTransferFormat,
6453        srcType: SceGxmTransferType,
6454        srcAddress: *const ::std::os::raw::c_void,
6455        srcX: u32,
6456        srcY: u32,
6457        srcStride: i32,
6458        destFormat: SceGxmTransferFormat,
6459        destType: SceGxmTransferType,
6460        destAddress: *mut ::std::os::raw::c_void,
6461        destX: u32,
6462        destY: u32,
6463        destStride: i32,
6464        syncObject: *mut SceGxmSyncObject,
6465        syncFlags: u32,
6466        notification: *const SceGxmNotification,
6467    ) -> ::std::os::raw::c_int;
6468}
6469unsafe extern "C" {
6470    pub fn sceGxmTransferDownscale(
6471        srcFormat: SceGxmTransferFormat,
6472        srcAddress: *const ::std::os::raw::c_void,
6473        srcX: ::std::os::raw::c_uint,
6474        srcY: ::std::os::raw::c_uint,
6475        srcWidth: ::std::os::raw::c_uint,
6476        srcHeight: ::std::os::raw::c_uint,
6477        srcStride: ::std::os::raw::c_int,
6478        destFormat: SceGxmTransferFormat,
6479        destAddress: *mut ::std::os::raw::c_void,
6480        destX: ::std::os::raw::c_uint,
6481        destY: ::std::os::raw::c_uint,
6482        destStride: ::std::os::raw::c_int,
6483        syncObject: *mut SceGxmSyncObject,
6484        syncFlags: ::std::os::raw::c_uint,
6485        notification: *const SceGxmNotification,
6486    ) -> ::std::os::raw::c_int;
6487}
6488unsafe extern "C" {
6489    pub fn sceGxmTransferFill(
6490        color: u32,
6491        destFormat: SceGxmTransferFormat,
6492        destAddress: *mut ::std::os::raw::c_void,
6493        destX: u32,
6494        destY: u32,
6495        destWidth: u32,
6496        destHeight: u32,
6497        destStride: i32,
6498        syncObject: *mut SceGxmSyncObject,
6499        syncFlags: u32,
6500        notification: *const SceGxmNotification,
6501    ) -> ::std::os::raw::c_int;
6502}
6503unsafe extern "C" {
6504    pub fn sceGxmTransferFinish() -> ::std::os::raw::c_int;
6505}
6506#[doc = "!< Equivalent to O0"]
6507pub const shark_opt_SHARK_OPT_SLOW: shark_opt = 0;
6508#[doc = "!< Equivalent to O1"]
6509pub const shark_opt_SHARK_OPT_SAFE: shark_opt = 1;
6510#[doc = "!< Equivalent to O2"]
6511pub const shark_opt_SHARK_OPT_DEFAULT: shark_opt = 2;
6512#[doc = "!< Equivalent to O3"]
6513pub const shark_opt_SHARK_OPT_FAST: shark_opt = 3;
6514#[doc = "!< Equivalent to Ofast"]
6515pub const shark_opt_SHARK_OPT_UNSAFE: shark_opt = 4;
6516pub type shark_opt = ::std::os::raw::c_uint;
6517pub const shark_type_SHARK_VERTEX_SHADER: shark_type = 0;
6518pub const shark_type_SHARK_FRAGMENT_SHADER: shark_type = 1;
6519pub type shark_type = ::std::os::raw::c_uint;
6520pub const shark_log_level_SHARK_LOG_INFO: shark_log_level = 0;
6521pub const shark_log_level_SHARK_LOG_WARNING: shark_log_level = 1;
6522pub const shark_log_level_SHARK_LOG_ERROR: shark_log_level = 2;
6523pub type shark_log_level = ::std::os::raw::c_uint;
6524pub const shark_warn_level_SHARK_WARN_SILENT: shark_warn_level = 0;
6525pub const shark_warn_level_SHARK_WARN_LOW: shark_warn_level = 1;
6526pub const shark_warn_level_SHARK_WARN_MEDIUM: shark_warn_level = 2;
6527pub const shark_warn_level_SHARK_WARN_HIGH: shark_warn_level = 3;
6528pub const shark_warn_level_SHARK_WARN_MAX: shark_warn_level = 4;
6529pub type shark_warn_level = ::std::os::raw::c_uint;
6530unsafe extern "C" {
6531    pub fn shark_init(path: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
6532}
6533unsafe extern "C" {
6534    pub fn shark_end();
6535}
6536unsafe extern "C" {
6537    pub fn shark_set_allocators(
6538        malloc_func: ::std::option::Option<
6539            unsafe extern "C" fn(size: usize) -> *mut ::std::os::raw::c_void,
6540        >,
6541        free_func: ::std::option::Option<unsafe extern "C" fn(ptr: *mut ::std::os::raw::c_void)>,
6542    );
6543}
6544unsafe extern "C" {
6545    pub fn shark_compile_shader_extended(
6546        src: *const ::std::os::raw::c_char,
6547        size: *mut u32,
6548        type_: shark_type,
6549        opt: shark_opt,
6550        use_fastmath: i32,
6551        use_fastprecision: i32,
6552        use_fastint: i32,
6553    ) -> *mut SceGxmProgram;
6554}
6555unsafe extern "C" {
6556    pub fn shark_compile_shader(
6557        src: *const ::std::os::raw::c_char,
6558        size: *mut u32,
6559        type_: shark_type,
6560    ) -> *mut SceGxmProgram;
6561}
6562unsafe extern "C" {
6563    pub fn shark_clear_output();
6564}
6565unsafe extern "C" {
6566    pub fn shark_get_internal_compile_output() -> *const SceShaccCgCompileOutput;
6567}
6568unsafe extern "C" {
6569    pub fn shark_install_log_cb(
6570        cb: ::std::option::Option<
6571            unsafe extern "C" fn(
6572                msg: *const ::std::os::raw::c_char,
6573                msg_level: shark_log_level,
6574                line: ::std::os::raw::c_int,
6575            ),
6576        >,
6577    );
6578}
6579unsafe extern "C" {
6580    pub fn shark_set_warnings_level(level: shark_warn_level);
6581}
6582unsafe extern "C" {
6583    pub fn glActiveTexture(texture: u32);
6584}
6585unsafe extern "C" {
6586    pub fn glAlphaFunc(func: u32, ref_: f32);
6587}
6588unsafe extern "C" {
6589    pub fn glAlphaFuncx(func: u32, ref_: i32);
6590}
6591unsafe extern "C" {
6592    pub fn glAttachShader(prog: u32, shad: u32);
6593}
6594unsafe extern "C" {
6595    pub fn glBegin(mode: u32);
6596}
6597unsafe extern "C" {
6598    pub fn glBeginQuery(target: u32, id: u32);
6599}
6600unsafe extern "C" {
6601    pub fn glBindAttribLocation(program: u32, index: u32, name: *const ::std::os::raw::c_char);
6602}
6603unsafe extern "C" {
6604    pub fn glBindBuffer(target: u32, buffer: u32);
6605}
6606unsafe extern "C" {
6607    pub fn glBindBufferBase(target: u32, index: u32, buffer: u32);
6608}
6609unsafe extern "C" {
6610    pub fn glBindBufferRange(target: u32, index: u32, buffer: u32, offset: i32, size: u32);
6611}
6612unsafe extern "C" {
6613    pub fn glBindFramebuffer(target: u32, framebuffer: u32);
6614}
6615unsafe extern "C" {
6616    pub fn glBindRenderbuffer(target: u32, renderbuffer: u32);
6617}
6618unsafe extern "C" {
6619    pub fn glBindSampler(unit: u32, smp: u32);
6620}
6621unsafe extern "C" {
6622    pub fn glBindTexture(target: u32, texture: u32);
6623}
6624unsafe extern "C" {
6625    pub fn glBindVertexArray(array: u32);
6626}
6627unsafe extern "C" {
6628    pub fn glBlendEquation(mode: u32);
6629}
6630unsafe extern "C" {
6631    pub fn glBlendEquationSeparate(modeRGB: u32, modeAlpha: u32);
6632}
6633unsafe extern "C" {
6634    pub fn glBlendFunc(sfactor: u32, dfactor: u32);
6635}
6636unsafe extern "C" {
6637    pub fn glBlendFuncSeparate(srcRGB: u32, dstRGB: u32, srcAlpha: u32, dstAlpha: u32);
6638}
6639unsafe extern "C" {
6640    pub fn glBlitFramebuffer(
6641        srcX0: i32,
6642        srcY0: i32,
6643        srcX1: i32,
6644        srcY1: i32,
6645        dstX0: i32,
6646        dstY0: i32,
6647        dstX1: i32,
6648        dstY1: i32,
6649        mask: u32,
6650        filter: u32,
6651    );
6652}
6653unsafe extern "C" {
6654    pub fn glBlitNamedFramebuffer(
6655        readFramebuffer: u32,
6656        drawFramebuffer: u32,
6657        srcX0: i32,
6658        srcY0: i32,
6659        srcX1: i32,
6660        srcY1: i32,
6661        dstX0: i32,
6662        dstY0: i32,
6663        dstX1: i32,
6664        dstY1: i32,
6665        mask: u32,
6666        filter: u32,
6667    );
6668}
6669unsafe extern "C" {
6670    pub fn glBufferData(target: u32, size: i32, data: *const ::std::os::raw::c_void, usage: u32);
6671}
6672unsafe extern "C" {
6673    pub fn glBufferSubData(
6674        target: u32,
6675        offset: i32,
6676        size: u32,
6677        data: *const ::std::os::raw::c_void,
6678    );
6679}
6680unsafe extern "C" {
6681    pub fn glCallList(list: u32);
6682}
6683unsafe extern "C" {
6684    pub fn glCallLists(n: i32, type_: u32, lists: *const ::std::os::raw::c_void);
6685}
6686unsafe extern "C" {
6687    pub fn glCheckFramebufferStatus(target: u32) -> u32;
6688}
6689unsafe extern "C" {
6690    pub fn glCheckNamedFramebufferStatus(target: u32, dummy: u32) -> u32;
6691}
6692unsafe extern "C" {
6693    pub fn glClear(mask: u32);
6694}
6695unsafe extern "C" {
6696    pub fn glClearColor(red: f32, green: f32, blue: f32, alpha: f32);
6697}
6698unsafe extern "C" {
6699    pub fn glClearColorx(red: i32, green: i32, blue: i32, alpha: i32);
6700}
6701unsafe extern "C" {
6702    pub fn glClearDepth(depth: f64);
6703}
6704unsafe extern "C" {
6705    pub fn glClearDepthf(depth: f32);
6706}
6707unsafe extern "C" {
6708    pub fn glClearDepthx(depth: i32);
6709}
6710unsafe extern "C" {
6711    pub fn glClearStencil(s: i32);
6712}
6713unsafe extern "C" {
6714    pub fn glClientActiveTexture(texture: u32);
6715}
6716unsafe extern "C" {
6717    pub fn glClipPlane(plane: u32, equation: *const f64);
6718}
6719unsafe extern "C" {
6720    pub fn glClipPlanef(plane: u32, equation: *const f32);
6721}
6722unsafe extern "C" {
6723    pub fn glClipPlanex(plane: u32, equation: *const i32);
6724}
6725unsafe extern "C" {
6726    pub fn glColor3f(red: f32, green: f32, blue: f32);
6727}
6728unsafe extern "C" {
6729    pub fn glColor3fv(v: *const f32);
6730}
6731unsafe extern "C" {
6732    pub fn glColor3ub(red: u8, green: u8, blue: u8);
6733}
6734unsafe extern "C" {
6735    pub fn glColor3ubv(v: *const u8);
6736}
6737unsafe extern "C" {
6738    pub fn glColor4f(red: f32, green: f32, blue: f32, alpha: f32);
6739}
6740unsafe extern "C" {
6741    pub fn glColor4fv(v: *const f32);
6742}
6743unsafe extern "C" {
6744    pub fn glColor4ub(red: u8, green: u8, blue: u8, alpha: u8);
6745}
6746unsafe extern "C" {
6747    pub fn glColor4ubv(v: *const u8);
6748}
6749unsafe extern "C" {
6750    pub fn glColor4x(red: i32, green: i32, blue: i32, alpha: i32);
6751}
6752unsafe extern "C" {
6753    pub fn glColorMask(red: u8, green: u8, blue: u8, alpha: u8);
6754}
6755unsafe extern "C" {
6756    pub fn glColorMaterial(face: u32, mode: u32);
6757}
6758unsafe extern "C" {
6759    pub fn glColorPointer(
6760        size: i32,
6761        type_: u32,
6762        stride: i32,
6763        pointer: *const ::std::os::raw::c_void,
6764    );
6765}
6766unsafe extern "C" {
6767    pub fn glColorTable(
6768        target: u32,
6769        internalformat: u32,
6770        width: i32,
6771        format: u32,
6772        type_: u32,
6773        data: *const ::std::os::raw::c_void,
6774    );
6775}
6776unsafe extern "C" {
6777    pub fn glCompileShader(shader: u32);
6778}
6779unsafe extern "C" {
6780    pub fn glCompressedTexImage2D(
6781        target: u32,
6782        level: i32,
6783        internalformat: u32,
6784        width: i32,
6785        height: i32,
6786        border: i32,
6787        imageSize: i32,
6788        data: *const ::std::os::raw::c_void,
6789    );
6790}
6791unsafe extern "C" {
6792    pub fn glCompressedTextureImage2D(
6793        texture: u32,
6794        level: i32,
6795        internalFormat: u32,
6796        width: i32,
6797        height: i32,
6798        border: i32,
6799        imageSize: i32,
6800        data: *const ::std::os::raw::c_void,
6801    );
6802}
6803unsafe extern "C" {
6804    pub fn glCopyTexImage1D(
6805        target: u32,
6806        level: i32,
6807        internalformat: u32,
6808        x: i32,
6809        y: i32,
6810        width: i32,
6811        border: i32,
6812    );
6813}
6814unsafe extern "C" {
6815    pub fn glCopyTexImage2D(
6816        target: u32,
6817        level: i32,
6818        internalformat: u32,
6819        x: i32,
6820        y: i32,
6821        width: i32,
6822        height: i32,
6823        border: i32,
6824    );
6825}
6826unsafe extern "C" {
6827    pub fn glCopyTexSubImage1D(target: u32, level: i32, xoffset: i32, x: i32, y: i32, width: i32);
6828}
6829unsafe extern "C" {
6830    pub fn glCopyTexSubImage2D(
6831        target: u32,
6832        level: i32,
6833        xoffset: i32,
6834        yoffset: i32,
6835        x: i32,
6836        y: i32,
6837        width: i32,
6838        height: i32,
6839    );
6840}
6841unsafe extern "C" {
6842    pub fn glCopyTextureImage1D(
6843        texture: u32,
6844        level: i32,
6845        internalformat: u32,
6846        x: i32,
6847        y: i32,
6848        width: i32,
6849        border: i32,
6850    );
6851}
6852unsafe extern "C" {
6853    pub fn glCopyTextureImage2D(
6854        texture: u32,
6855        level: i32,
6856        internalformat: u32,
6857        x: i32,
6858        y: i32,
6859        width: i32,
6860        height: i32,
6861        border: i32,
6862    );
6863}
6864unsafe extern "C" {
6865    pub fn glCopyTextureSubImage1D(
6866        texture: u32,
6867        level: i32,
6868        xoffset: i32,
6869        x: i32,
6870        y: i32,
6871        width: i32,
6872    );
6873}
6874unsafe extern "C" {
6875    pub fn glCopyTextureSubImage2D(
6876        texture: u32,
6877        level: i32,
6878        xoffset: i32,
6879        yoffset: i32,
6880        x: i32,
6881        y: i32,
6882        width: i32,
6883        height: i32,
6884    );
6885}
6886unsafe extern "C" {
6887    pub fn glCreateBuffers(n: i32, buffers: *mut u32);
6888}
6889unsafe extern "C" {
6890    pub fn glCreateFramebuffers(n: i32, framebuffers: *mut u32);
6891}
6892unsafe extern "C" {
6893    pub fn glCreateProgram() -> u32;
6894}
6895unsafe extern "C" {
6896    pub fn glCreateShader(shaderType: u32) -> u32;
6897}
6898unsafe extern "C" {
6899    pub fn glCreateTextures(target: u32, n: i32, textures: *mut u32);
6900}
6901unsafe extern "C" {
6902    pub fn glCullFace(mode: u32);
6903}
6904unsafe extern "C" {
6905    pub fn glDeleteBuffers(n: i32, gl_buffers: *const u32);
6906}
6907unsafe extern "C" {
6908    pub fn glDeleteFramebuffers(n: i32, framebuffers: *const u32);
6909}
6910unsafe extern "C" {
6911    pub fn glDeleteLists(list: u32, range: i32);
6912}
6913unsafe extern "C" {
6914    pub fn glDeleteProgram(prog: u32);
6915}
6916unsafe extern "C" {
6917    pub fn glDeleteQueries(n: i32, ids: *const u32);
6918}
6919unsafe extern "C" {
6920    pub fn glDeleteRenderbuffers(n: i32, renderbuffers: *const u32);
6921}
6922unsafe extern "C" {
6923    pub fn glDeleteSamplers(n: i32, smp: *const u32);
6924}
6925unsafe extern "C" {
6926    pub fn glDeleteShader(shad: u32);
6927}
6928unsafe extern "C" {
6929    pub fn glDeleteTextures(n: i32, textures: *const u32);
6930}
6931unsafe extern "C" {
6932    pub fn glDeleteVertexArrays(n: i32, gl_arrays: *const u32);
6933}
6934unsafe extern "C" {
6935    pub fn glDepthFunc(func: u32);
6936}
6937unsafe extern "C" {
6938    pub fn glDepthMask(flag: u8);
6939}
6940unsafe extern "C" {
6941    pub fn glDepthRange(nearVal: f64, farVal: f64);
6942}
6943unsafe extern "C" {
6944    pub fn glDepthRangef(nearVal: f32, farVal: f32);
6945}
6946unsafe extern "C" {
6947    pub fn glDepthRangex(nearVal: i32, farVal: i32);
6948}
6949unsafe extern "C" {
6950    pub fn glDisable(cap: u32);
6951}
6952unsafe extern "C" {
6953    pub fn glDisableClientState(array: u32);
6954}
6955unsafe extern "C" {
6956    pub fn glDisableVertexAttribArray(index: u32);
6957}
6958unsafe extern "C" {
6959    pub fn glDrawArrays(mode: u32, first: i32, count: i32);
6960}
6961unsafe extern "C" {
6962    pub fn glDrawArraysInstanced(mode: u32, first: i32, count: i32, primcount: i32);
6963}
6964unsafe extern "C" {
6965    pub fn glDrawElements(
6966        mode: u32,
6967        count: i32,
6968        type_: u32,
6969        indices: *const ::std::os::raw::c_void,
6970    );
6971}
6972unsafe extern "C" {
6973    pub fn glDrawElementsBaseVertex(
6974        mode: u32,
6975        count: i32,
6976        type_: u32,
6977        gl_indices: *const ::std::os::raw::c_void,
6978        baseVertex: i32,
6979    );
6980}
6981unsafe extern "C" {
6982    pub fn glDrawElementsInstanced(
6983        mode: u32,
6984        count: i32,
6985        type_: u32,
6986        gl_indices: *const ::std::os::raw::c_void,
6987        primcount: i32,
6988    );
6989}
6990unsafe extern "C" {
6991    pub fn glDrawRangeElements(
6992        mode: u32,
6993        start: u32,
6994        end: u32,
6995        count: i32,
6996        type_: u32,
6997        indices: *const ::std::os::raw::c_void,
6998    );
6999}
7000unsafe extern "C" {
7001    pub fn glDrawRangeElementsBaseVertex(
7002        mode: u32,
7003        start: u32,
7004        end: u32,
7005        count: i32,
7006        type_: u32,
7007        indices: *mut ::std::os::raw::c_void,
7008        basevertex: i32,
7009    );
7010}
7011unsafe extern "C" {
7012    pub fn glEnable(cap: u32);
7013}
7014unsafe extern "C" {
7015    pub fn glEnableClientState(array: u32);
7016}
7017unsafe extern "C" {
7018    pub fn glEnableVertexAttribArray(index: u32);
7019}
7020unsafe extern "C" {
7021    pub fn glEnd();
7022}
7023unsafe extern "C" {
7024    pub fn glEndList();
7025}
7026unsafe extern "C" {
7027    pub fn glEndQuery(target: u32);
7028}
7029unsafe extern "C" {
7030    pub fn glFinish();
7031}
7032unsafe extern "C" {
7033    pub fn glFlush();
7034}
7035unsafe extern "C" {
7036    pub fn glFlushMappedBufferRange(target: u32, offset: i32, length: u32);
7037}
7038unsafe extern "C" {
7039    pub fn glFlushMappedNamedBufferRange(buffer: u32, offset: i32, length: u32);
7040}
7041unsafe extern "C" {
7042    pub fn glFogf(pname: u32, param: f32);
7043}
7044unsafe extern "C" {
7045    pub fn glFogfv(pname: u32, params: *const f32);
7046}
7047unsafe extern "C" {
7048    pub fn glFogi(pname: u32, param: i32);
7049}
7050unsafe extern "C" {
7051    pub fn glFogx(pname: u32, param: i32);
7052}
7053unsafe extern "C" {
7054    pub fn glFogxv(pname: u32, params: *const i32);
7055}
7056unsafe extern "C" {
7057    pub fn glFramebufferRenderbuffer(
7058        target: u32,
7059        attachment: u32,
7060        renderbuffertarget: u32,
7061        renderbuffer: u32,
7062    );
7063}
7064unsafe extern "C" {
7065    pub fn glFramebufferTexture(target: u32, attachment: u32, texture: u32, level: i32);
7066}
7067unsafe extern "C" {
7068    pub fn glFramebufferTexture2D(
7069        target: u32,
7070        attachment: u32,
7071        textarget: u32,
7072        texture: u32,
7073        level: i32,
7074    );
7075}
7076unsafe extern "C" {
7077    pub fn glFrontFace(mode: u32);
7078}
7079unsafe extern "C" {
7080    pub fn glFrustum(left: f64, right: f64, bottom: f64, top: f64, nearVal: f64, farVal: f64);
7081}
7082unsafe extern "C" {
7083    pub fn glFrustumf(left: f32, right: f32, bottom: f32, top: f32, nearVal: f32, farVal: f32);
7084}
7085unsafe extern "C" {
7086    pub fn glFrustumx(left: i32, right: i32, bottom: i32, top: i32, nearVal: i32, farVal: i32);
7087}
7088unsafe extern "C" {
7089    pub fn glGenBuffers(n: i32, buffers: *mut u32);
7090}
7091unsafe extern "C" {
7092    pub fn glGenerateMipmap(target: u32);
7093}
7094unsafe extern "C" {
7095    pub fn glGenerateTextureMipmap(target: u32);
7096}
7097unsafe extern "C" {
7098    pub fn glGenFramebuffers(n: i32, framebuffers: *mut u32);
7099}
7100unsafe extern "C" {
7101    pub fn glGenQueries(n: i32, ids: *mut u32);
7102}
7103unsafe extern "C" {
7104    pub fn glGenLists(range: i32) -> u32;
7105}
7106unsafe extern "C" {
7107    pub fn glGenRenderbuffers(n: i32, renderbuffers: *mut u32);
7108}
7109unsafe extern "C" {
7110    pub fn glGenSamplers(n: i32, smps: *mut u32);
7111}
7112unsafe extern "C" {
7113    pub fn glGenTextures(n: i32, textures: *mut u32);
7114}
7115unsafe extern "C" {
7116    pub fn glGenVertexArrays(n: i32, res: *mut u32);
7117}
7118unsafe extern "C" {
7119    pub fn glGetActiveAttrib(
7120        prog: u32,
7121        index: u32,
7122        bufSize: i32,
7123        length: *mut i32,
7124        size: *mut i32,
7125        type_: *mut u32,
7126        name: *mut ::std::os::raw::c_char,
7127    );
7128}
7129unsafe extern "C" {
7130    pub fn glGetActiveUniform(
7131        prog: u32,
7132        index: u32,
7133        bufSize: i32,
7134        length: *mut i32,
7135        size: *mut i32,
7136        type_: *mut u32,
7137        name: *mut ::std::os::raw::c_char,
7138    );
7139}
7140unsafe extern "C" {
7141    pub fn glGetAttachedShaders(prog: u32, maxCount: i32, count: *mut i32, shads: *mut u32);
7142}
7143unsafe extern "C" {
7144    pub fn glGetAttribLocation(prog: u32, name: *const ::std::os::raw::c_char) -> i32;
7145}
7146unsafe extern "C" {
7147    pub fn glGetBooleanv(pname: u32, params: *mut u8);
7148}
7149unsafe extern "C" {
7150    pub fn glGetBufferParameteriv(target: u32, pname: u32, params: *mut i32);
7151}
7152unsafe extern "C" {
7153    pub fn glGetDoublev(pname: u32, data: *mut f64);
7154}
7155unsafe extern "C" {
7156    pub fn glGetError() -> u32;
7157}
7158unsafe extern "C" {
7159    pub fn glGetFloatv(pname: u32, data: *mut f32);
7160}
7161unsafe extern "C" {
7162    pub fn glGetFramebufferAttachmentParameteriv(
7163        target: u32,
7164        attachment: u32,
7165        pname: u32,
7166        params: *mut i32,
7167    );
7168}
7169unsafe extern "C" {
7170    pub fn glGetIntegerv(pname: u32, data: *mut i32);
7171}
7172unsafe extern "C" {
7173    pub fn glGetNamedBufferParameteriv(buffer: u32, pname: u32, params: *mut i32);
7174}
7175unsafe extern "C" {
7176    pub fn glGetPointerv(pname: u32, params: *mut *mut ::std::os::raw::c_void);
7177}
7178unsafe extern "C" {
7179    pub fn glGetProgramBinary(
7180        program: u32,
7181        bufSize: i32,
7182        length: *mut i32,
7183        binaryFormat: *mut u32,
7184        binary: *mut ::std::os::raw::c_void,
7185    );
7186}
7187unsafe extern "C" {
7188    pub fn glGetProgramInfoLog(
7189        program: u32,
7190        maxLength: i32,
7191        length: *mut i32,
7192        infoLog: *mut ::std::os::raw::c_char,
7193    );
7194}
7195unsafe extern "C" {
7196    pub fn glGetProgramiv(program: u32, pname: u32, params: *mut i32);
7197}
7198unsafe extern "C" {
7199    pub fn glGetQueryObjectiv(id: u32, pname: u32, params: *mut i32);
7200}
7201unsafe extern "C" {
7202    pub fn glGetShaderInfoLog(
7203        handle: u32,
7204        maxLength: i32,
7205        length: *mut i32,
7206        infoLog: *mut ::std::os::raw::c_char,
7207    );
7208}
7209unsafe extern "C" {
7210    pub fn glGetShaderiv(handle: u32, pname: u32, params: *mut i32);
7211}
7212unsafe extern "C" {
7213    pub fn glGetShaderSource(
7214        handle: u32,
7215        bufSize: i32,
7216        length: *mut i32,
7217        source: *mut ::std::os::raw::c_char,
7218    );
7219}
7220unsafe extern "C" {
7221    pub fn glGetString(name: u32) -> *const u8;
7222}
7223unsafe extern "C" {
7224    pub fn glGetStringi(name: u32, index: u32) -> *const u8;
7225}
7226unsafe extern "C" {
7227    pub fn glGetTexEnviv(target: u32, pname: u32, params: *mut i32);
7228}
7229unsafe extern "C" {
7230    pub fn glGetUniformBlockIndex(
7231        prog: u32,
7232        uniformBlockName: *const ::std::os::raw::c_char,
7233    ) -> u32;
7234}
7235unsafe extern "C" {
7236    pub fn glGetUniformLocation(prog: u32, name: *const ::std::os::raw::c_char) -> i32;
7237}
7238unsafe extern "C" {
7239    pub fn glGetVertexAttribfv(index: u32, pname: u32, params: *mut f32);
7240}
7241unsafe extern "C" {
7242    pub fn glGetVertexAttribiv(index: u32, pname: u32, params: *mut i32);
7243}
7244unsafe extern "C" {
7245    pub fn glGetVertexAttribPointerv(
7246        index: u32,
7247        pname: u32,
7248        pointer: *mut *mut ::std::os::raw::c_void,
7249    );
7250}
7251unsafe extern "C" {
7252    pub fn glHint(target: u32, mode: u32);
7253}
7254unsafe extern "C" {
7255    pub fn glInterleavedArrays(format: u32, stride: i32, pointer: *const ::std::os::raw::c_void);
7256}
7257unsafe extern "C" {
7258    pub fn glIsEnabled(cap: u32) -> u8;
7259}
7260unsafe extern "C" {
7261    pub fn glIsFramebuffer(fb: u32) -> u8;
7262}
7263unsafe extern "C" {
7264    pub fn glIsProgram(program: u32) -> u8;
7265}
7266unsafe extern "C" {
7267    pub fn glIsRenderbuffer(rb: u32) -> u8;
7268}
7269unsafe extern "C" {
7270    pub fn glIsTexture(texture: u32) -> u8;
7271}
7272unsafe extern "C" {
7273    pub fn glLightfv(light: u32, pname: u32, params: *const f32);
7274}
7275unsafe extern "C" {
7276    pub fn glLightModelfv(pname: u32, params: *const f32);
7277}
7278unsafe extern "C" {
7279    pub fn glLightModelxv(pname: u32, params: *const i32);
7280}
7281unsafe extern "C" {
7282    pub fn glLightxv(light: u32, pname: u32, params: *const i32);
7283}
7284unsafe extern "C" {
7285    pub fn glLineWidth(width: f32);
7286}
7287unsafe extern "C" {
7288    pub fn glLineWidthx(width: i32);
7289}
7290unsafe extern "C" {
7291    pub fn glLinkProgram(progr: u32);
7292}
7293unsafe extern "C" {
7294    pub fn glListBase(base: u32);
7295}
7296unsafe extern "C" {
7297    pub fn glLoadIdentity();
7298}
7299unsafe extern "C" {
7300    pub fn glLoadMatrixd(m: *const f64);
7301}
7302unsafe extern "C" {
7303    pub fn glLoadMatrixf(m: *const f32);
7304}
7305unsafe extern "C" {
7306    pub fn glLoadMatrixx(m: *const i32);
7307}
7308unsafe extern "C" {
7309    pub fn glLoadTransposeMatrixf(m: *const f32);
7310}
7311unsafe extern "C" {
7312    pub fn glLoadTransposeMatrixx(m: *const i32);
7313}
7314unsafe extern "C" {
7315    pub fn glMapBuffer(target: u32, access: u32) -> *mut ::std::os::raw::c_void;
7316}
7317unsafe extern "C" {
7318    pub fn glMapBufferRange(
7319        target: u32,
7320        offset: i32,
7321        length: u32,
7322        access: u32,
7323    ) -> *mut ::std::os::raw::c_void;
7324}
7325unsafe extern "C" {
7326    pub fn glMapNamedBuffer(buffer: u32, access: u32) -> *mut ::std::os::raw::c_void;
7327}
7328unsafe extern "C" {
7329    pub fn glMapNamedBufferRange(
7330        buffer: u32,
7331        offset: i32,
7332        length: u32,
7333        access: u32,
7334    ) -> *mut ::std::os::raw::c_void;
7335}
7336unsafe extern "C" {
7337    pub fn glMaterialf(face: u32, pname: u32, param: f32);
7338}
7339unsafe extern "C" {
7340    pub fn glMaterialfv(face: u32, pname: u32, params: *const f32);
7341}
7342unsafe extern "C" {
7343    pub fn glMateriali(face: u32, pname: u32, param: i32);
7344}
7345unsafe extern "C" {
7346    pub fn glMaterialx(face: u32, pname: u32, param: i32);
7347}
7348unsafe extern "C" {
7349    pub fn glMaterialxv(face: u32, pname: u32, params: *const i32);
7350}
7351unsafe extern "C" {
7352    pub fn glMatrixFrustum(matrixMode: u32, l: f64, r: f64, b: f64, t: f64, n: f64, f: f64);
7353}
7354unsafe extern "C" {
7355    pub fn glMatrixLoadd(mode: u32, matrix: *const f64);
7356}
7357unsafe extern "C" {
7358    pub fn glMatrixLoadf(mode: u32, matrix: *const f32);
7359}
7360unsafe extern "C" {
7361    pub fn glMatrixLoadIdentity(mode: u32);
7362}
7363unsafe extern "C" {
7364    pub fn glMatrixMode(mode: u32);
7365}
7366unsafe extern "C" {
7367    pub fn glMatrixMultd(mode: u32, matrix: *const f64);
7368}
7369unsafe extern "C" {
7370    pub fn glMatrixMultf(mode: u32, matrix: *const f32);
7371}
7372unsafe extern "C" {
7373    pub fn glMatrixOrtho(matrixMode: u32, l: f64, r: f64, b: f64, t: f64, n: f64, f: f64);
7374}
7375unsafe extern "C" {
7376    pub fn glMatrixPop(matrixMode: u32);
7377}
7378unsafe extern "C" {
7379    pub fn glMatrixPush(matrixMode: u32);
7380}
7381unsafe extern "C" {
7382    pub fn glMatrixRotated(matrixMode: u32, angle: f64, x: f64, y: f64, z: f64);
7383}
7384unsafe extern "C" {
7385    pub fn glMatrixRotatef(matrixMode: u32, angle: f32, x: f32, y: f32, z: f32);
7386}
7387unsafe extern "C" {
7388    pub fn glMatrixScaled(matrixMode: u32, x: f64, y: f64, z: f64);
7389}
7390unsafe extern "C" {
7391    pub fn glMatrixScalef(matrixMode: u32, x: f32, y: f32, z: f32);
7392}
7393unsafe extern "C" {
7394    pub fn glMatrixTranslated(matrixMode: u32, x: f64, y: f64, z: f64);
7395}
7396unsafe extern "C" {
7397    pub fn glMatrixTranslatef(matrixMode: u32, x: f32, y: f32, z: f32);
7398}
7399unsafe extern "C" {
7400    pub fn glMultiDrawArrays(mode: u32, first: *const i32, count: *const i32, drawcount: i32);
7401}
7402unsafe extern "C" {
7403    pub fn glMultiTexCoord2f(target: u32, s: f32, t: f32);
7404}
7405unsafe extern "C" {
7406    pub fn glMultiTexCoord2fv(target: u32, f: *mut f32);
7407}
7408unsafe extern "C" {
7409    pub fn glMultiTexCoord2i(target: u32, s: i32, t: i32);
7410}
7411unsafe extern "C" {
7412    pub fn glMultMatrixf(m: *const f32);
7413}
7414unsafe extern "C" {
7415    pub fn glMultMatrixx(m: *const i32);
7416}
7417unsafe extern "C" {
7418    pub fn glMultTransposeMatrixf(m: *const f32);
7419}
7420unsafe extern "C" {
7421    pub fn glMultTransposeMatrixx(m: *const i32);
7422}
7423unsafe extern "C" {
7424    pub fn glNamedBufferData(
7425        buffer: u32,
7426        size: i32,
7427        data: *const ::std::os::raw::c_void,
7428        usage: u32,
7429    );
7430}
7431unsafe extern "C" {
7432    pub fn glNamedBufferSubData(
7433        buffer: u32,
7434        offset: i32,
7435        size: u32,
7436        data: *const ::std::os::raw::c_void,
7437    );
7438}
7439unsafe extern "C" {
7440    pub fn glNamedFramebufferRenderbuffer(
7441        framebuffer: u32,
7442        attachment: u32,
7443        renderbuffertarget: u32,
7444        renderbuffer: u32,
7445    );
7446}
7447unsafe extern "C" {
7448    pub fn glNamedFramebufferTexture(target: u32, attachment: u32, texture: u32, level: i32);
7449}
7450unsafe extern "C" {
7451    pub fn glNamedFramebufferTexture2D(
7452        target: u32,
7453        attachment: u32,
7454        textarget: u32,
7455        texture: u32,
7456        level: i32,
7457    );
7458}
7459unsafe extern "C" {
7460    pub fn glNamedRenderbufferStorage(target: u32, internalformat: u32, width: i32, height: i32);
7461}
7462unsafe extern "C" {
7463    pub fn glNewList(list: u32, mode: u32);
7464}
7465unsafe extern "C" {
7466    pub fn glNormal3f(x: f32, y: f32, z: f32);
7467}
7468unsafe extern "C" {
7469    pub fn glNormal3fv(v: *const f32);
7470}
7471unsafe extern "C" {
7472    pub fn glNormal3s(x: i16, y: i16, z: i16);
7473}
7474unsafe extern "C" {
7475    pub fn glNormal3x(x: i32, y: i32, z: i32);
7476}
7477unsafe extern "C" {
7478    pub fn glNormalPointer(type_: u32, stride: i32, pointer: *const ::std::os::raw::c_void);
7479}
7480unsafe extern "C" {
7481    pub fn glOrtho(left: f64, right: f64, bottom: f64, top: f64, nearVal: f64, farVal: f64);
7482}
7483unsafe extern "C" {
7484    pub fn glOrthof(left: f32, right: f32, bottom: f32, top: f32, nearVal: f32, farVal: f32);
7485}
7486unsafe extern "C" {
7487    pub fn glOrthox(left: i32, right: i32, bottom: i32, top: i32, nearVal: i32, farVal: i32);
7488}
7489unsafe extern "C" {
7490    pub fn glPixelStorei(pname: u32, param: i32);
7491}
7492unsafe extern "C" {
7493    pub fn glPointSize(size: f32);
7494}
7495unsafe extern "C" {
7496    pub fn glPointSizex(size: i32);
7497}
7498unsafe extern "C" {
7499    pub fn glPolygonMode(face: u32, mode: u32);
7500}
7501unsafe extern "C" {
7502    pub fn glPolygonOffset(factor: f32, units: f32);
7503}
7504unsafe extern "C" {
7505    pub fn glPolygonOffsetx(factor: i32, units: i32);
7506}
7507unsafe extern "C" {
7508    pub fn glPopAttrib();
7509}
7510unsafe extern "C" {
7511    pub fn glPopGroupMarker();
7512}
7513unsafe extern "C" {
7514    pub fn glPopMatrix();
7515}
7516unsafe extern "C" {
7517    pub fn glProgramBinary(
7518        program: u32,
7519        binaryFormat: u32,
7520        binary: *const ::std::os::raw::c_void,
7521        length: i32,
7522    );
7523}
7524unsafe extern "C" {
7525    pub fn glProgramUniform1f(program: u32, location: i32, v0: f32);
7526}
7527unsafe extern "C" {
7528    pub fn glProgramUniform1fv(program: u32, location: i32, count: i32, value: *const f32);
7529}
7530unsafe extern "C" {
7531    pub fn glProgramUniform1i(program: u32, location: i32, v0: i32);
7532}
7533unsafe extern "C" {
7534    pub fn glProgramUniform1iv(program: u32, location: i32, count: i32, value: *const i32);
7535}
7536unsafe extern "C" {
7537    pub fn glProgramUniform2f(program: u32, location: i32, v0: f32, v1: f32);
7538}
7539unsafe extern "C" {
7540    pub fn glProgramUniform2fv(program: u32, location: i32, count: i32, value: *const f32);
7541}
7542unsafe extern "C" {
7543    pub fn glProgramUniform2i(program: u32, location: i32, v0: i32, v1: i32);
7544}
7545unsafe extern "C" {
7546    pub fn glProgramUniform2iv(program: u32, location: i32, count: i32, value: *const i32);
7547}
7548unsafe extern "C" {
7549    pub fn glProgramUniform3f(program: u32, location: i32, v0: f32, v1: f32, v2: f32);
7550}
7551unsafe extern "C" {
7552    pub fn glProgramUniform3fv(program: u32, location: i32, count: i32, value: *const f32);
7553}
7554unsafe extern "C" {
7555    pub fn glProgramUniform3i(program: u32, location: i32, v0: i32, v1: i32, v2: i32);
7556}
7557unsafe extern "C" {
7558    pub fn glProgramUniform3iv(program: u32, location: i32, count: i32, value: *const i32);
7559}
7560unsafe extern "C" {
7561    pub fn glProgramUniform4f(program: u32, location: i32, v0: f32, v1: f32, v2: f32, v3: f32);
7562}
7563unsafe extern "C" {
7564    pub fn glProgramUniform4fv(program: u32, location: i32, count: i32, value: *const f32);
7565}
7566unsafe extern "C" {
7567    pub fn glProgramUniform4i(program: u32, location: i32, v0: i32, v1: i32, v2: i32, v3: i32);
7568}
7569unsafe extern "C" {
7570    pub fn glProgramUniform4iv(program: u32, location: i32, count: i32, value: *const i32);
7571}
7572unsafe extern "C" {
7573    pub fn glProgramUniformMatrix2fv(
7574        program: u32,
7575        location: i32,
7576        count: i32,
7577        transpose: u8,
7578        value: *const f32,
7579    );
7580}
7581unsafe extern "C" {
7582    pub fn glProgramUniformMatrix3fv(
7583        program: u32,
7584        location: i32,
7585        count: i32,
7586        transpose: u8,
7587        value: *const f32,
7588    );
7589}
7590unsafe extern "C" {
7591    pub fn glProgramUniformMatrix4fv(
7592        program: u32,
7593        location: i32,
7594        count: i32,
7595        transpose: u8,
7596        value: *const f32,
7597    );
7598}
7599unsafe extern "C" {
7600    pub fn glPushAttrib(mask: u32);
7601}
7602unsafe extern "C" {
7603    pub fn glPushGroupMarker(length: i32, marker: *const ::std::os::raw::c_char);
7604}
7605unsafe extern "C" {
7606    pub fn glPushMatrix();
7607}
7608unsafe extern "C" {
7609    pub fn glReadPixels(
7610        x: i32,
7611        y: i32,
7612        width: i32,
7613        height: i32,
7614        format: u32,
7615        type_: u32,
7616        data: *mut ::std::os::raw::c_void,
7617    );
7618}
7619unsafe extern "C" {
7620    pub fn glRectf(x1: f32, y1: f32, x2: f32, y2: f32);
7621}
7622unsafe extern "C" {
7623    pub fn glRecti(x1: i32, y1: i32, x2: i32, y2: i32);
7624}
7625unsafe extern "C" {
7626    pub fn glReleaseShaderCompiler();
7627}
7628unsafe extern "C" {
7629    pub fn glRenderbufferStorage(target: u32, internalformat: u32, width: i32, height: i32);
7630}
7631unsafe extern "C" {
7632    pub fn glRotated(angle: f64, x: f64, y: f64, z: f64);
7633}
7634unsafe extern "C" {
7635    pub fn glRotatef(angle: f32, x: f32, y: f32, z: f32);
7636}
7637unsafe extern "C" {
7638    pub fn glRotatex(angle: i32, x: i32, y: i32, z: i32);
7639}
7640unsafe extern "C" {
7641    pub fn glSamplerParameterf(sampler: u32, pname: u32, param: f32);
7642}
7643unsafe extern "C" {
7644    pub fn glSamplerParameteri(target: u32, pname: u32, param: i32);
7645}
7646unsafe extern "C" {
7647    pub fn glScaled(x: f64, y: f64, z: f64);
7648}
7649unsafe extern "C" {
7650    pub fn glScalef(x: f32, y: f32, z: f32);
7651}
7652unsafe extern "C" {
7653    pub fn glScalex(x: i32, y: i32, z: i32);
7654}
7655unsafe extern "C" {
7656    pub fn glScissor(x: i32, y: i32, width: i32, height: i32);
7657}
7658unsafe extern "C" {
7659    pub fn glShadeModel(mode: u32);
7660}
7661unsafe extern "C" {
7662    pub fn glShaderBinary(
7663        count: i32,
7664        handles: *const u32,
7665        binaryFormat: u32,
7666        binary: *const ::std::os::raw::c_void,
7667        length: i32,
7668    );
7669}
7670unsafe extern "C" {
7671    pub fn glShaderSource(
7672        handle: u32,
7673        count: i32,
7674        string: *const *const ::std::os::raw::c_char,
7675        length: *const i32,
7676    );
7677}
7678unsafe extern "C" {
7679    pub fn glStencilFunc(func: u32, ref_: i32, mask: u32);
7680}
7681unsafe extern "C" {
7682    pub fn glStencilFuncSeparate(face: u32, func: u32, ref_: i32, mask: u32);
7683}
7684unsafe extern "C" {
7685    pub fn glStencilMask(mask: u32);
7686}
7687unsafe extern "C" {
7688    pub fn glStencilMaskSeparate(face: u32, mask: u32);
7689}
7690unsafe extern "C" {
7691    pub fn glStencilOp(sfail: u32, dpfail: u32, dppass: u32);
7692}
7693unsafe extern "C" {
7694    pub fn glStencilOpSeparate(face: u32, sfail: u32, dpfail: u32, dppass: u32);
7695}
7696unsafe extern "C" {
7697    pub fn glTexCoord2f(s: f32, t: f32);
7698}
7699unsafe extern "C" {
7700    pub fn glTexCoord2fv(f: *mut f32);
7701}
7702unsafe extern "C" {
7703    pub fn glTexCoord2i(s: i32, t: i32);
7704}
7705unsafe extern "C" {
7706    pub fn glTexCoord2s(s: i16, t: i16);
7707}
7708unsafe extern "C" {
7709    pub fn glTexCoordPointer(
7710        size: i32,
7711        type_: u32,
7712        stride: i32,
7713        pointer: *const ::std::os::raw::c_void,
7714    );
7715}
7716unsafe extern "C" {
7717    pub fn glTexEnvf(target: u32, pname: u32, param: f32);
7718}
7719unsafe extern "C" {
7720    pub fn glTexEnvfv(target: u32, pname: u32, param: *mut f32);
7721}
7722unsafe extern "C" {
7723    pub fn glTexEnvi(target: u32, pname: u32, param: i32);
7724}
7725unsafe extern "C" {
7726    pub fn glTexEnvx(target: u32, pname: u32, param: i32);
7727}
7728unsafe extern "C" {
7729    pub fn glTexEnvxv(target: u32, pname: u32, param: *mut i32);
7730}
7731unsafe extern "C" {
7732    pub fn glTexImage1D(
7733        target: u32,
7734        level: i32,
7735        internalFormat: i32,
7736        width: i32,
7737        border: i32,
7738        format: u32,
7739        type_: u32,
7740        data: *const ::std::os::raw::c_void,
7741    );
7742}
7743unsafe extern "C" {
7744    pub fn glTexImage2D(
7745        target: u32,
7746        level: i32,
7747        internalFormat: i32,
7748        width: i32,
7749        height: i32,
7750        border: i32,
7751        format: u32,
7752        type_: u32,
7753        data: *const ::std::os::raw::c_void,
7754    );
7755}
7756unsafe extern "C" {
7757    pub fn glTexParameterf(target: u32, pname: u32, param: f32);
7758}
7759unsafe extern "C" {
7760    pub fn glTexParameteri(target: u32, pname: u32, param: i32);
7761}
7762unsafe extern "C" {
7763    pub fn glTexParameteriv(target: u32, pname: u32, param: *mut i32);
7764}
7765unsafe extern "C" {
7766    pub fn glTexParameterx(target: u32, pname: u32, param: i32);
7767}
7768unsafe extern "C" {
7769    pub fn glTexSubImage1D(
7770        target: u32,
7771        level: i32,
7772        xoffset: i32,
7773        width: i32,
7774        format: u32,
7775        type_: u32,
7776        pixels: *const ::std::os::raw::c_void,
7777    );
7778}
7779unsafe extern "C" {
7780    pub fn glTexSubImage2D(
7781        target: u32,
7782        level: i32,
7783        xoffset: i32,
7784        yoffset: i32,
7785        width: i32,
7786        height: i32,
7787        format: u32,
7788        type_: u32,
7789        pixels: *const ::std::os::raw::c_void,
7790    );
7791}
7792unsafe extern "C" {
7793    pub fn glTextureImage1D(
7794        texture: u32,
7795        level: i32,
7796        internalFormat: i32,
7797        width: i32,
7798        border: i32,
7799        format: u32,
7800        type_: u32,
7801        data: *const ::std::os::raw::c_void,
7802    );
7803}
7804unsafe extern "C" {
7805    pub fn glTextureImage2D(
7806        texture: u32,
7807        level: i32,
7808        internalformat: i32,
7809        width: i32,
7810        height: i32,
7811        border: i32,
7812        format: u32,
7813        type_: u32,
7814        pixels: *const ::std::os::raw::c_void,
7815    );
7816}
7817unsafe extern "C" {
7818    pub fn glTextureParameterf(texture: u32, pname: u32, param: f32);
7819}
7820unsafe extern "C" {
7821    pub fn glTextureParameteri(texture: u32, pname: u32, param: i32);
7822}
7823unsafe extern "C" {
7824    pub fn glTextureParameteriv(texture: u32, pname: u32, param: *mut i32);
7825}
7826unsafe extern "C" {
7827    pub fn glTextureParameterx(texture: u32, pname: u32, param: i32);
7828}
7829unsafe extern "C" {
7830    pub fn glTextureSubImage1D(
7831        texture: u32,
7832        level: i32,
7833        xoffset: i32,
7834        width: i32,
7835        format: u32,
7836        type_: u32,
7837        pixels: *const ::std::os::raw::c_void,
7838    );
7839}
7840unsafe extern "C" {
7841    pub fn glTextureSubImage2D(
7842        texture: u32,
7843        level: i32,
7844        xoffset: i32,
7845        yoffset: i32,
7846        width: i32,
7847        height: i32,
7848        format: u32,
7849        type_: u32,
7850        pixels: *const ::std::os::raw::c_void,
7851    );
7852}
7853unsafe extern "C" {
7854    pub fn glTranslated(x: f64, y: f64, z: f64);
7855}
7856unsafe extern "C" {
7857    pub fn glTranslatef(x: f32, y: f32, z: f32);
7858}
7859unsafe extern "C" {
7860    pub fn glTranslatex(x: i32, y: i32, z: i32);
7861}
7862unsafe extern "C" {
7863    pub fn glUniform1f(location: i32, v0: f32);
7864}
7865unsafe extern "C" {
7866    pub fn glUniform1fv(location: i32, count: i32, value: *const f32);
7867}
7868unsafe extern "C" {
7869    pub fn glUniform1i(location: i32, v0: i32);
7870}
7871unsafe extern "C" {
7872    pub fn glUniform1iv(location: i32, count: i32, value: *const i32);
7873}
7874unsafe extern "C" {
7875    pub fn glUniform2f(location: i32, v0: f32, v1: f32);
7876}
7877unsafe extern "C" {
7878    pub fn glUniform2fv(location: i32, count: i32, value: *const f32);
7879}
7880unsafe extern "C" {
7881    pub fn glUniform2i(location: i32, v0: i32, v1: i32);
7882}
7883unsafe extern "C" {
7884    pub fn glUniform2iv(location: i32, count: i32, value: *const i32);
7885}
7886unsafe extern "C" {
7887    pub fn glUniform3f(location: i32, v0: f32, v1: f32, v2: f32);
7888}
7889unsafe extern "C" {
7890    pub fn glUniform3fv(location: i32, count: i32, value: *const f32);
7891}
7892unsafe extern "C" {
7893    pub fn glUniform3i(location: i32, v0: i32, v1: i32, v2: i32);
7894}
7895unsafe extern "C" {
7896    pub fn glUniform3iv(location: i32, count: i32, value: *const i32);
7897}
7898unsafe extern "C" {
7899    pub fn glUniform4f(location: i32, v0: f32, v1: f32, v2: f32, v3: f32);
7900}
7901unsafe extern "C" {
7902    pub fn glUniform4fv(location: i32, count: i32, value: *const f32);
7903}
7904unsafe extern "C" {
7905    pub fn glUniform4i(location: i32, v0: i32, v1: i32, v2: i32, v3: i32);
7906}
7907unsafe extern "C" {
7908    pub fn glUniform4iv(location: i32, count: i32, value: *const i32);
7909}
7910unsafe extern "C" {
7911    pub fn glUniformBlockBinding(prog: u32, uniformBlockIndex: u32, uniformBlockBinding: u32);
7912}
7913unsafe extern "C" {
7914    pub fn glUniformMatrix2fv(location: i32, count: i32, transpose: u8, value: *const f32);
7915}
7916unsafe extern "C" {
7917    pub fn glUniformMatrix3fv(location: i32, count: i32, transpose: u8, value: *const f32);
7918}
7919unsafe extern "C" {
7920    pub fn glUniformMatrix4fv(location: i32, count: i32, transpose: u8, value: *const f32);
7921}
7922unsafe extern "C" {
7923    pub fn glUnmapBuffer(target: u32) -> u8;
7924}
7925unsafe extern "C" {
7926    pub fn glUnmapNamedBuffer(buffer: u32) -> u8;
7927}
7928unsafe extern "C" {
7929    pub fn glUseProgram(program: u32);
7930}
7931unsafe extern "C" {
7932    pub fn glVertex2d(x: f64, y: f64);
7933}
7934unsafe extern "C" {
7935    pub fn glVertex2f(x: f32, y: f32);
7936}
7937unsafe extern "C" {
7938    pub fn glVertex2i(x: i32, y: i32);
7939}
7940unsafe extern "C" {
7941    pub fn glVertex2dv(v: *const f64);
7942}
7943unsafe extern "C" {
7944    pub fn glVertex2fv(v: *const f32);
7945}
7946unsafe extern "C" {
7947    pub fn glVertex3d(x: f64, y: f64, z: f64);
7948}
7949unsafe extern "C" {
7950    pub fn glVertex3f(x: f32, y: f32, z: f32);
7951}
7952unsafe extern "C" {
7953    pub fn glVertex3i(x: i32, y: i32, z: i32);
7954}
7955unsafe extern "C" {
7956    pub fn glVertex3dv(v: *const f64);
7957}
7958unsafe extern "C" {
7959    pub fn glVertex3fv(v: *const f32);
7960}
7961unsafe extern "C" {
7962    pub fn glVertexAttrib1f(index: u32, v0: f32);
7963}
7964unsafe extern "C" {
7965    pub fn glVertexAttrib1fv(index: u32, v: *const f32);
7966}
7967unsafe extern "C" {
7968    pub fn glVertexAttrib2f(index: u32, v0: f32, v1: f32);
7969}
7970unsafe extern "C" {
7971    pub fn glVertexAttrib2fv(index: u32, v: *const f32);
7972}
7973unsafe extern "C" {
7974    pub fn glVertexAttrib3f(index: u32, v0: f32, v1: f32, v2: f32);
7975}
7976unsafe extern "C" {
7977    pub fn glVertexAttrib3fv(index: u32, v: *const f32);
7978}
7979unsafe extern "C" {
7980    pub fn glVertexAttrib4f(index: u32, v0: f32, v1: f32, v2: f32, v3: f32);
7981}
7982unsafe extern "C" {
7983    pub fn glVertexAttrib4fv(index: u32, v: *const f32);
7984}
7985unsafe extern "C" {
7986    pub fn glVertexAttribDivisor(index: u32, divisor: u32);
7987}
7988unsafe extern "C" {
7989    pub fn glVertexAttribPointer(
7990        index: u32,
7991        size: i32,
7992        type_: u32,
7993        normalized: u8,
7994        stride: i32,
7995        pointer: *const ::std::os::raw::c_void,
7996    );
7997}
7998unsafe extern "C" {
7999    pub fn glVertexPointer(
8000        size: i32,
8001        type_: u32,
8002        stride: i32,
8003        pointer: *const ::std::os::raw::c_void,
8004    );
8005}
8006unsafe extern "C" {
8007    pub fn glViewport(x: i32, y: i32, width: i32, height: i32);
8008}
8009unsafe extern "C" {
8010    pub fn gluBuild2DMipmaps(
8011        target: u32,
8012        internalFormat: i32,
8013        width: i32,
8014        height: i32,
8015        format: u32,
8016        type_: u32,
8017        data: *const ::std::os::raw::c_void,
8018    );
8019}
8020unsafe extern "C" {
8021    pub fn gluLookAt(
8022        eyeX: f64,
8023        eyeY: f64,
8024        eyeZ: f64,
8025        centerX: f64,
8026        centerY: f64,
8027        centerZ: f64,
8028        upX: f64,
8029        upY: f64,
8030        upZ: f64,
8031    );
8032}
8033unsafe extern "C" {
8034    pub fn gluPerspective(fovy: f64, aspect: f64, zNear: f64, zFar: f64);
8035}
8036unsafe extern "C" {
8037    pub fn eglBindAPI(api: u32) -> i32;
8038}
8039unsafe extern "C" {
8040    pub fn eglGetDisplay(
8041        native_display: *mut ::std::os::raw::c_void,
8042    ) -> *mut ::std::os::raw::c_void;
8043}
8044unsafe extern "C" {
8045    pub fn eglGetError() -> i32;
8046}
8047unsafe extern "C" {
8048    pub fn eglGetProcAddress(
8049        procname: *const ::std::os::raw::c_char,
8050    ) -> ::std::option::Option<unsafe extern "C" fn(procname: *const ::std::os::raw::c_char)>;
8051}
8052unsafe extern "C" {
8053    pub fn eglGetSystemTimeFrequencyNV() -> u64;
8054}
8055unsafe extern "C" {
8056    pub fn eglGetSystemTimeNV() -> u64;
8057}
8058unsafe extern "C" {
8059    pub fn eglQueryAPI() -> u32;
8060}
8061unsafe extern "C" {
8062    pub fn eglSwapInterval(display: *mut ::std::os::raw::c_void, interval: i32) -> i32;
8063}
8064unsafe extern "C" {
8065    pub fn eglSwapBuffers(
8066        display: *mut ::std::os::raw::c_void,
8067        surface: *mut ::std::os::raw::c_void,
8068    ) -> i32;
8069}
8070unsafe extern "C" {
8071    pub fn vglColorPointer(
8072        size: i32,
8073        type_: u32,
8074        stride: i32,
8075        count: u32,
8076        pointer: *const ::std::os::raw::c_void,
8077    );
8078}
8079unsafe extern "C" {
8080    pub fn vglColorPointerMapped(type_: u32, pointer: *const ::std::os::raw::c_void);
8081}
8082unsafe extern "C" {
8083    pub fn vglDrawObjects(mode: u32, count: i32, implicit_wvp: u8);
8084}
8085unsafe extern "C" {
8086    pub fn vglIndexPointer(
8087        type_: u32,
8088        stride: i32,
8089        count: u32,
8090        pointer: *const ::std::os::raw::c_void,
8091    );
8092}
8093unsafe extern "C" {
8094    pub fn vglIndexPointerMapped(pointer: *const ::std::os::raw::c_void);
8095}
8096unsafe extern "C" {
8097    pub fn vglTexCoordPointer(
8098        size: i32,
8099        type_: u32,
8100        stride: i32,
8101        count: u32,
8102        pointer: *const ::std::os::raw::c_void,
8103    );
8104}
8105unsafe extern "C" {
8106    pub fn vglTexCoordPointerMapped(pointer: *const ::std::os::raw::c_void);
8107}
8108unsafe extern "C" {
8109    pub fn vglVertexPointer(
8110        size: i32,
8111        type_: u32,
8112        stride: i32,
8113        count: u32,
8114        pointer: *const ::std::os::raw::c_void,
8115    );
8116}
8117unsafe extern "C" {
8118    pub fn vglVertexPointerMapped(size: i32, pointer: *const ::std::os::raw::c_void);
8119}
8120unsafe extern "C" {
8121    pub fn vglBindAttribLocation(
8122        prog: u32,
8123        index: u32,
8124        name: *const ::std::os::raw::c_char,
8125        num: u32,
8126        type_: u32,
8127    );
8128}
8129unsafe extern "C" {
8130    pub fn vglBindPackedAttribLocation(
8131        prog: u32,
8132        name: *const ::std::os::raw::c_char,
8133        num: u32,
8134        type_: u32,
8135        offset: u32,
8136        stride: i32,
8137    ) -> i32;
8138}
8139unsafe extern "C" {
8140    pub fn vglVertexAttribPointer(
8141        index: u32,
8142        size: i32,
8143        type_: u32,
8144        normalized: u8,
8145        stride: i32,
8146        count: u32,
8147        pointer: *const ::std::os::raw::c_void,
8148    );
8149}
8150unsafe extern "C" {
8151    pub fn vglVertexAttribPointerMapped(index: u32, pointer: *const ::std::os::raw::c_void);
8152}
8153unsafe extern "C" {
8154    pub fn vglGetShaderBinary(
8155        index: u32,
8156        bufSize: i32,
8157        length: *mut i32,
8158        binary: *mut ::std::os::raw::c_void,
8159    );
8160}
8161pub const vglMemType_VGL_MEM_VRAM: vglMemType = 0;
8162pub const vglMemType_VGL_MEM_RAM: vglMemType = 1;
8163pub const vglMemType_VGL_MEM_SLOW: vglMemType = 2;
8164pub const vglMemType_VGL_MEM_BUDGET: vglMemType = 3;
8165pub const vglMemType_VGL_MEM_EXTERNAL: vglMemType = 4;
8166pub const vglMemType_VGL_MEM_ALL: vglMemType = 5;
8167pub type vglMemType = ::std::os::raw::c_uint;
8168pub const vglSemanticType_VGL_TYPE_NONE: vglSemanticType = 0;
8169pub const vglSemanticType_VGL_TYPE_TEXCOORD: vglSemanticType = 1;
8170pub const vglSemanticType_VGL_TYPE_COLOR: vglSemanticType = 2;
8171pub const vglSemanticType_VGL_TYPE_FOG: vglSemanticType = 3;
8172pub const vglSemanticType_VGL_TYPE_CLIP: vglSemanticType = 4;
8173pub type vglSemanticType = ::std::os::raw::c_uint;
8174pub const vglSemanticMode_VGL_MODE_SHADER_PAIR: vglSemanticMode = 0;
8175pub const vglSemanticMode_VGL_MODE_GLOBAL: vglSemanticMode = 1;
8176pub const vglSemanticMode_VGL_MODE_POSTPONED: vglSemanticMode = 2;
8177pub type vglSemanticMode = ::std::os::raw::c_uint;
8178unsafe extern "C" {
8179    pub fn vglAddSemanticBinding(
8180        varying: *const *const ::std::os::raw::c_char,
8181        index: i32,
8182        type_: u32,
8183    );
8184}
8185unsafe extern "C" {
8186    pub fn vglAddSemanticBindingHint(varying: *const *const ::std::os::raw::c_char, type_: u32);
8187}
8188unsafe extern "C" {
8189    pub fn vglAlloc(size: u32, type_: vglMemType) -> *mut ::std::os::raw::c_void;
8190}
8191unsafe extern "C" {
8192    pub fn vglAllocFromScratch(size: usize) -> *mut ::std::os::raw::c_void;
8193}
8194unsafe extern "C" {
8195    pub fn vglBufferData(target: u32, data: *const ::std::os::raw::c_void);
8196}
8197unsafe extern "C" {
8198    pub fn vglCalloc(nmember: u32, size: u32) -> *mut ::std::os::raw::c_void;
8199}
8200unsafe extern "C" {
8201    pub fn vglForceAlloc(size: u32) -> *mut ::std::os::raw::c_void;
8202}
8203unsafe extern "C" {
8204    pub fn vglFree(addr: *mut ::std::os::raw::c_void);
8205}
8206unsafe extern "C" {
8207    pub fn vglGetFuncName(func: u32) -> *mut ::std::os::raw::c_char;
8208}
8209unsafe extern "C" {
8210    pub fn vglGetGxmTexture(target: u32) -> *mut SceGxmTexture;
8211}
8212unsafe extern "C" {
8213    pub fn vglGetProcAddress(name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_void;
8214}
8215unsafe extern "C" {
8216    pub fn vglGetTexDataPointer(target: u32) -> *mut ::std::os::raw::c_void;
8217}
8218unsafe extern "C" {
8219    pub fn vglInit(legacy_pool_size: ::std::os::raw::c_int) -> u8;
8220}
8221unsafe extern "C" {
8222    pub fn vglInitExtended(
8223        legacy_pool_size: ::std::os::raw::c_int,
8224        width: ::std::os::raw::c_int,
8225        height: ::std::os::raw::c_int,
8226        ram_threshold: ::std::os::raw::c_int,
8227        msaa: SceGxmMultisampleMode,
8228    ) -> u8;
8229}
8230unsafe extern "C" {
8231    pub fn vglInitWithCustomSizes(
8232        legacy_pool_size: ::std::os::raw::c_int,
8233        width: ::std::os::raw::c_int,
8234        height: ::std::os::raw::c_int,
8235        ram_pool_size: ::std::os::raw::c_int,
8236        cdram_pool_size: ::std::os::raw::c_int,
8237        phycont_pool_size: ::std::os::raw::c_int,
8238        cdlg_pool_size: ::std::os::raw::c_int,
8239        msaa: SceGxmMultisampleMode,
8240    ) -> u8;
8241}
8242unsafe extern "C" {
8243    pub fn vglInitWithCustomThreshold(
8244        pool_size: ::std::os::raw::c_int,
8245        width: ::std::os::raw::c_int,
8246        height: ::std::os::raw::c_int,
8247        ram_threshold: ::std::os::raw::c_int,
8248        cdram_threshold: ::std::os::raw::c_int,
8249        phycont_threshold: ::std::os::raw::c_int,
8250        cdlg_threshold: ::std::os::raw::c_int,
8251        msaa: SceGxmMultisampleMode,
8252    ) -> u8;
8253}
8254unsafe extern "C" {
8255    pub fn vglLazyFree(addr: *mut ::std::os::raw::c_void);
8256}
8257unsafe extern "C" {
8258    pub fn vglMalloc(size: u32) -> *mut ::std::os::raw::c_void;
8259}
8260unsafe extern "C" {
8261    pub fn vglMallocUsableSize(ptr: *mut ::std::os::raw::c_void) -> usize;
8262}
8263unsafe extern "C" {
8264    pub fn vglMemalign(alignment: u32, size: u32) -> *mut ::std::os::raw::c_void;
8265}
8266unsafe extern "C" {
8267    pub fn vglMemFree(type_: vglMemType) -> usize;
8268}
8269unsafe extern "C" {
8270    pub fn vglMemTotal(type_: vglMemType) -> usize;
8271}
8272unsafe extern "C" {
8273    pub fn vglOverloadTexDataPointer(target: u32, data: *mut ::std::os::raw::c_void);
8274}
8275unsafe extern "C" {
8276    pub fn vglOverrideTexFormat(target: u32);
8277}
8278unsafe extern "C" {
8279    pub fn vglRealloc(ptr: *mut ::std::os::raw::c_void, size: u32) -> *mut ::std::os::raw::c_void;
8280}
8281unsafe extern "C" {
8282    pub fn vglSetCircularPoolSize(size: u32);
8283}
8284unsafe extern "C" {
8285    pub fn vglSetDisplayBufferCount(count: ::std::os::raw::c_int);
8286}
8287unsafe extern "C" {
8288    pub fn vglSetDisplayCallback(
8289        cb: ::std::option::Option<unsafe extern "C" fn(framebuf: *mut ::std::os::raw::c_void)>,
8290    );
8291}
8292unsafe extern "C" {
8293    pub fn vglSetFragmentBufferSize(size: u32);
8294}
8295unsafe extern "C" {
8296    pub fn vglSetParamBufferSize(size: u32);
8297}
8298unsafe extern "C" {
8299    pub fn vglSetSemanticBindingMode(mode: u32);
8300}
8301unsafe extern "C" {
8302    pub fn vglSetTextureCacheFrequency(freq: u32);
8303}
8304unsafe extern "C" {
8305    pub fn vglSetUSSEBufferSize(size: u32);
8306}
8307unsafe extern "C" {
8308    pub fn vglSetVDMBufferSize(size: u32);
8309}
8310unsafe extern "C" {
8311    pub fn vglSetVertexAttribPoolSize(main_size: u32, aux_size: u32);
8312}
8313unsafe extern "C" {
8314    pub fn vglSetVertexBufferSize(size: u32);
8315}
8316unsafe extern "C" {
8317    pub fn vglSetupDisplayRenderTarget(size: u8);
8318}
8319unsafe extern "C" {
8320    pub fn vglSetupGarbageCollector(
8321        priority: ::std::os::raw::c_int,
8322        affinity: ::std::os::raw::c_int,
8323    );
8324}
8325unsafe extern "C" {
8326    pub fn vglSetupScratchMemory(scratch_for_dynamic: u8, scratch_for_stream: u8);
8327}
8328unsafe extern "C" {
8329    pub fn vglSetupShaderPatcher(
8330        buffer_mem_size: u32,
8331        vertex_usse_mem_size: u32,
8332        fragment_usse_mem_size: u32,
8333    );
8334}
8335unsafe extern "C" {
8336    pub fn vglSetupRuntimeShaderCompiler(
8337        opt_level: shark_opt,
8338        use_fastmath: i32,
8339        use_fastprecision: i32,
8340        use_fastint: i32,
8341    );
8342}
8343unsafe extern "C" {
8344    pub fn vglShaderGxpBinary(
8345        count: i32,
8346        handles: *const u32,
8347        binary: *const ::std::os::raw::c_void,
8348        length: i32,
8349    );
8350}
8351unsafe extern "C" {
8352    pub fn vglSwapBuffers(has_commondialog: u8);
8353}
8354unsafe extern "C" {
8355    pub fn vglSwapResolution(width: ::std::os::raw::c_int, height: ::std::os::raw::c_int) -> u8;
8356}
8357unsafe extern "C" {
8358    pub fn vglTexImageDepthBuffer(target: u32);
8359}
8360unsafe extern "C" {
8361    pub fn vglUseCachedMem(use_: u8);
8362}
8363unsafe extern "C" {
8364    pub fn vglUseLowPrecision(val: u8);
8365}
8366unsafe extern "C" {
8367    pub fn vglUseTripleBuffering(usage: u8);
8368}
8369unsafe extern "C" {
8370    pub fn vglUseVram(usage: u8);
8371}
8372unsafe extern "C" {
8373    pub fn vglUseVramForUSSE(usage: u8);
8374}
8375unsafe extern "C" {
8376    pub fn vglUseExtraMem(usage: u8);
8377}
8378unsafe extern "C" {
8379    pub fn vglWaitVblankStart(enable: u8);
8380}