render: add support for explicit sync
This commit is contained in:
parent
1b4492c670
commit
816315170f
22 changed files with 531 additions and 94 deletions
28
build/egl.rs
28
build/egl.rs
|
|
@ -80,6 +80,34 @@ fn write_egl_procs<W: Write>(f: &mut W) -> anyhow::Result<()> {
|
|||
&[("target", "GLenum"), ("image", "GLeglImageOES")][..],
|
||||
),
|
||||
("glGetGraphicsResetStatusKHR", "GLenum", &[][..]),
|
||||
(
|
||||
"eglCreateSyncKHR",
|
||||
"EGLSyncKHR",
|
||||
&[
|
||||
("dpy", "EGLDisplay"),
|
||||
("ty", "EGLenum"),
|
||||
("attrib_list", "*const EGLint"),
|
||||
][..],
|
||||
),
|
||||
(
|
||||
"eglDestroySyncKHR",
|
||||
"EGLBoolean",
|
||||
&[("dpy", "EGLDisplay"), ("sync", "EGLSyncKHR")][..],
|
||||
),
|
||||
(
|
||||
"eglDupNativeFenceFDANDROID",
|
||||
"EGLint",
|
||||
&[("dpy", "EGLDisplay"), ("sync", "EGLSyncKHR")][..],
|
||||
),
|
||||
(
|
||||
"eglWaitSyncKHR",
|
||||
"EGLint",
|
||||
&[
|
||||
("dpy", "EGLDisplay"),
|
||||
("sync", "EGLSyncKHR"),
|
||||
("flags", "EGLint"),
|
||||
][..],
|
||||
),
|
||||
];
|
||||
|
||||
writeln!(f, "use std::ptr;")?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue