mirror of
https://github.com/FEX-Emu/FEX.git
synced 2024-12-15 01:49:00 +00:00
2b4ec88dae
This follows discussions from #3413. Followup commits add clang-format file, script and blame ignore lists.
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
#include <common/GeneratorInterface.h>
|
|
|
|
#include <EGL/egl.h>
|
|
|
|
template<auto>
|
|
struct fex_gen_config {
|
|
unsigned version = 1;
|
|
};
|
|
|
|
// Function, parameter index, parameter type [optional]
|
|
template<auto, int, typename = void>
|
|
struct fex_gen_param {};
|
|
|
|
template<>
|
|
struct fex_gen_config<eglBindAPI> {};
|
|
template<>
|
|
struct fex_gen_config<eglChooseConfig> {};
|
|
template<>
|
|
struct fex_gen_config<eglDestroyContext> {};
|
|
template<>
|
|
struct fex_gen_config<eglDestroySurface> {};
|
|
template<>
|
|
struct fex_gen_config<eglInitialize> {};
|
|
template<>
|
|
struct fex_gen_config<eglMakeCurrent> {};
|
|
template<>
|
|
struct fex_gen_config<eglQuerySurface> {};
|
|
template<>
|
|
struct fex_gen_config<eglSurfaceAttrib> {};
|
|
template<>
|
|
struct fex_gen_config<eglSwapBuffers> {};
|
|
template<>
|
|
struct fex_gen_config<eglTerminate> {};
|
|
template<>
|
|
struct fex_gen_config<eglGetError> {};
|
|
template<>
|
|
struct fex_gen_config<eglCreateContext> {};
|
|
template<>
|
|
struct fex_gen_config<eglCreateWindowSurface> {};
|
|
template<>
|
|
struct fex_gen_config<eglGetCurrentContext> {};
|
|
template<>
|
|
struct fex_gen_config<eglGetCurrentDisplay> {};
|
|
template<>
|
|
struct fex_gen_config<eglGetCurrentSurface> {};
|
|
|
|
// EGLNativeDisplayType is a pointer to opaque data (wl_display/(X)Display/...)
|
|
template<>
|
|
struct fex_gen_config<eglGetDisplay> {};
|
|
template<>
|
|
struct fex_gen_param<eglGetDisplay, 0, EGLNativeDisplayType> : fexgen::assume_compatible_data_layout {};
|