Język

EGL15.EglCreateSync(EGLDisplay, Int32, Int64[], Int32) Method

Definition

Creates an EGL synchronization object of the requested type.

[Android.Runtime.Register("eglCreateSync", "(Landroid/opengl/EGLDisplay;I[JI)Landroid/opengl/EGLSync;", "", ApiSince=29)]
public static Android.Opengl.EGLSync? EglCreateSync(Android.Opengl.EGLDisplay? dpy, int type, long[]? attrib_list, int offset);
[<Android.Runtime.Register("eglCreateSync", "(Landroid/opengl/EGLDisplay;I[JI)Landroid/opengl/EGLSync;", "", ApiSince=29)>]
static member EglCreateSync : Android.Opengl.EGLDisplay * int * int64[] * int -> Android.Opengl.EGLSync

Parameters

dpy
EGLDisplay

The initialized EGL display that will own the synchronization object.

type
Int32

The synchronization-object type, such as EglSyncFence or EglSyncClEvent.

attrib_list
Int64[]

A non-null array of attributes for the selected synchronization type, terminated by EGL14.EglNone.

offset
Int32

The nonnegative index of the first synchronization attribute in attrib_list.

Returns

A wrapper for the new synchronization object. If EGL creation fails, the returned wrapper has a zero native handle.

Attributes

Remarks

For a fence synchronization object, supply an attribute list containing only EGL14.EglNone. The JNI wrapper requires this array even though the native EGL API also permits a null attribute list.

Applies to