Skip to main content

EfPboMapFnNullable

Type Alias EfPboMapFnNullable 

Source
pub type EfPboMapFnNullable = Option<unsafe extern "C" fn(ctx: *const c_void, buffer_id: u32, size: usize, out_ptr: *mut *mut u8, out_len: *mut usize) -> c_int>;
Expand description

Map a PBO for CPU access. 0 on success; -1 when the GL context is gone; any other non-zero value a generic failure.

May be NULL where an entry point takes one; such an entry point refuses a NULL rather than calling through it.

Aliased Type§

pub enum EfPboMapFnNullable {
    None,
    Some(unsafe extern "C" fn(*const c_void, u32, usize, *mut *mut u8, *mut usize) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const c_void, u32, usize, *mut *mut u8, *mut usize) -> i32)

Some value of type T.