[−][src]Function khronos_egl::create_sync
pub unsafe fn create_sync(
display: Display,
ty: Enum,
attrib_list: &[Attrib]
) -> Result<Sync, Error>
Create a new EGL sync object.
Note that the constant ATTRIB_NONE which has the type Attrib can be used
instead of NONE to terminate the attribute list.
This will return a BadParameter error if attrib_list is not a valid
attributes list (if it does not terminate with ATTRIB_NONE).
This function is unsafe: when creating an OpenCL Event Sync Object, passing an invalid event
handle in attrib_list may result in undefined behavior up to and including program
termination.