Hash :
5b343e8f
Author :
Date :
2025-03-11T11:35:08
Vulkan: Remove support for Stadia Bug: angleproject:42262714 Change-Id: Icae5fe828fe4e0bcd287d297df1bc586708ef86e Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6344390 Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962
// GENERATED FILE - DO NOT EDIT.
// Generated by generate_entry_points.py using data from egl.xml and egl_angle_ext.xml.
//
// Copyright 2020 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// libEGL_autogen.cpp: Implements the exported EGL functions.
#include "anglebase/no_destructor.h"
#include "common/system_utils.h"
#include <memory>
#if defined(ANGLE_USE_EGL_LOADER)
# include "libEGL/egl_loader_autogen.h"
#else
# include "libGLESv2/entry_points_egl_autogen.h"
# include "libGLESv2/entry_points_egl_ext_autogen.h"
#endif // defined(ANGLE_USE_EGL_LOADER)
namespace
{
#if defined(ANGLE_USE_EGL_LOADER)
bool gLoaded = false;
void *gEntryPointsLib = nullptr;
GenericProc KHRONOS_APIENTRY GlobalLoad(const char *symbol)
{
return reinterpret_cast<GenericProc>(angle::GetLibrarySymbol(gEntryPointsLib, symbol));
}
void EnsureEGLLoaded()
{
if (gLoaded)
{
return;
}
std::string errorOut;
gEntryPointsLib = OpenSystemLibraryAndGetError(ANGLE_DISPATCH_LIBRARY,
angle::SearchType::ModuleDir, &errorOut);
if (gEntryPointsLib)
{
LoadLibEGL_EGL(GlobalLoad);
gLoaded = true;
}
else
{
fprintf(stderr, "Error loading EGL entry points: %s\n", errorOut.c_str());
}
}
#else
void EnsureEGLLoaded() {}
#endif // defined(ANGLE_USE_EGL_LOADER)
} // anonymous namespace
extern "C" {
// EGL 1.0
EGLBoolean EGLAPIENTRY eglChooseConfig(EGLDisplay dpy,
const EGLint *attrib_list,
EGLConfig *configs,
EGLint config_size,
EGLint *num_config)
{
EnsureEGLLoaded();
return EGL_ChooseConfig(dpy, attrib_list, configs, config_size, num_config);
}
EGLBoolean EGLAPIENTRY eglCopyBuffers(EGLDisplay dpy,
EGLSurface surface,
EGLNativePixmapType target)
{
EnsureEGLLoaded();
return EGL_CopyBuffers(dpy, surface, target);
}
EGLContext EGLAPIENTRY eglCreateContext(EGLDisplay dpy,
EGLConfig config,
EGLContext share_context,
const EGLint *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreateContext(dpy, config, share_context, attrib_list);
}
EGLSurface EGLAPIENTRY eglCreatePbufferSurface(EGLDisplay dpy,
EGLConfig config,
const EGLint *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreatePbufferSurface(dpy, config, attrib_list);
}
EGLSurface EGLAPIENTRY eglCreatePixmapSurface(EGLDisplay dpy,
EGLConfig config,
EGLNativePixmapType pixmap,
const EGLint *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreatePixmapSurface(dpy, config, pixmap, attrib_list);
}
EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy,
EGLConfig config,
EGLNativeWindowType win,
const EGLint *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreateWindowSurface(dpy, config, win, attrib_list);
}
EGLBoolean EGLAPIENTRY eglDestroyContext(EGLDisplay dpy, EGLContext ctx)
{
EnsureEGLLoaded();
return EGL_DestroyContext(dpy, ctx);
}
EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surface)
{
EnsureEGLLoaded();
return EGL_DestroySurface(dpy, surface);
}
EGLBoolean EGLAPIENTRY eglGetConfigAttrib(EGLDisplay dpy,
EGLConfig config,
EGLint attribute,
EGLint *value)
{
EnsureEGLLoaded();
return EGL_GetConfigAttrib(dpy, config, attribute, value);
}
EGLBoolean EGLAPIENTRY eglGetConfigs(EGLDisplay dpy,
EGLConfig *configs,
EGLint config_size,
EGLint *num_config)
{
EnsureEGLLoaded();
return EGL_GetConfigs(dpy, configs, config_size, num_config);
}
EGLDisplay EGLAPIENTRY eglGetCurrentDisplay()
{
EnsureEGLLoaded();
return EGL_GetCurrentDisplay();
}
EGLSurface EGLAPIENTRY eglGetCurrentSurface(EGLint readdraw)
{
EnsureEGLLoaded();
return EGL_GetCurrentSurface(readdraw);
}
EGLDisplay EGLAPIENTRY eglGetDisplay(EGLNativeDisplayType display_id)
{
EnsureEGLLoaded();
return EGL_GetDisplay(display_id);
}
EGLint EGLAPIENTRY eglGetError()
{
EnsureEGLLoaded();
return EGL_GetError();
}
__eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress(const char *procname)
{
EnsureEGLLoaded();
return EGL_GetProcAddress(procname);
}
EGLBoolean EGLAPIENTRY eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor)
{
EnsureEGLLoaded();
return EGL_Initialize(dpy, major, minor);
}
EGLBoolean EGLAPIENTRY eglMakeCurrent(EGLDisplay dpy,
EGLSurface draw,
EGLSurface read,
EGLContext ctx)
{
EnsureEGLLoaded();
return EGL_MakeCurrent(dpy, draw, read, ctx);
}
EGLBoolean EGLAPIENTRY eglQueryContext(EGLDisplay dpy,
EGLContext ctx,
EGLint attribute,
EGLint *value)
{
EnsureEGLLoaded();
return EGL_QueryContext(dpy, ctx, attribute, value);
}
const char *EGLAPIENTRY eglQueryString(EGLDisplay dpy, EGLint name)
{
EnsureEGLLoaded();
return EGL_QueryString(dpy, name);
}
EGLBoolean EGLAPIENTRY eglQuerySurface(EGLDisplay dpy,
EGLSurface surface,
EGLint attribute,
EGLint *value)
{
EnsureEGLLoaded();
return EGL_QuerySurface(dpy, surface, attribute, value);
}
EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surface)
{
EnsureEGLLoaded();
return EGL_SwapBuffers(dpy, surface);
}
EGLBoolean EGLAPIENTRY eglTerminate(EGLDisplay dpy)
{
EnsureEGLLoaded();
return EGL_Terminate(dpy);
}
EGLBoolean EGLAPIENTRY eglWaitGL()
{
EnsureEGLLoaded();
return EGL_WaitGL();
}
EGLBoolean EGLAPIENTRY eglWaitNative(EGLint engine)
{
EnsureEGLLoaded();
return EGL_WaitNative(engine);
}
// EGL 1.1
EGLBoolean EGLAPIENTRY eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
{
EnsureEGLLoaded();
return EGL_BindTexImage(dpy, surface, buffer);
}
EGLBoolean EGLAPIENTRY eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
{
EnsureEGLLoaded();
return EGL_ReleaseTexImage(dpy, surface, buffer);
}
EGLBoolean EGLAPIENTRY eglSurfaceAttrib(EGLDisplay dpy,
EGLSurface surface,
EGLint attribute,
EGLint value)
{
EnsureEGLLoaded();
return EGL_SurfaceAttrib(dpy, surface, attribute, value);
}
EGLBoolean EGLAPIENTRY eglSwapInterval(EGLDisplay dpy, EGLint interval)
{
EnsureEGLLoaded();
return EGL_SwapInterval(dpy, interval);
}
// EGL 1.2
EGLBoolean EGLAPIENTRY eglBindAPI(EGLenum api)
{
EnsureEGLLoaded();
return EGL_BindAPI(api);
}
EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer(EGLDisplay dpy,
EGLenum buftype,
EGLClientBuffer buffer,
EGLConfig config,
const EGLint *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreatePbufferFromClientBuffer(dpy, buftype, buffer, config, attrib_list);
}
EGLenum EGLAPIENTRY eglQueryAPI()
{
EnsureEGLLoaded();
return EGL_QueryAPI();
}
EGLBoolean EGLAPIENTRY eglReleaseThread()
{
EnsureEGLLoaded();
return EGL_ReleaseThread();
}
EGLBoolean EGLAPIENTRY eglWaitClient()
{
EnsureEGLLoaded();
return EGL_WaitClient();
}
// EGL 1.4
EGLContext EGLAPIENTRY eglGetCurrentContext()
{
EnsureEGLLoaded();
return EGL_GetCurrentContext();
}
// EGL 1.5
EGLint EGLAPIENTRY eglClientWaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout)
{
EnsureEGLLoaded();
return EGL_ClientWaitSync(dpy, sync, flags, timeout);
}
EGLImage EGLAPIENTRY eglCreateImage(EGLDisplay dpy,
EGLContext ctx,
EGLenum target,
EGLClientBuffer buffer,
const EGLAttrib *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreateImage(dpy, ctx, target, buffer, attrib_list);
}
EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurface(EGLDisplay dpy,
EGLConfig config,
void *native_pixmap,
const EGLAttrib *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreatePlatformPixmapSurface(dpy, config, native_pixmap, attrib_list);
}
EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurface(EGLDisplay dpy,
EGLConfig config,
void *native_window,
const EGLAttrib *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreatePlatformWindowSurface(dpy, config, native_window, attrib_list);
}
EGLSync EGLAPIENTRY eglCreateSync(EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreateSync(dpy, type, attrib_list);
}
EGLBoolean EGLAPIENTRY eglDestroyImage(EGLDisplay dpy, EGLImage image)
{
EnsureEGLLoaded();
return EGL_DestroyImage(dpy, image);
}
EGLBoolean EGLAPIENTRY eglDestroySync(EGLDisplay dpy, EGLSync sync)
{
EnsureEGLLoaded();
return EGL_DestroySync(dpy, sync);
}
EGLDisplay EGLAPIENTRY eglGetPlatformDisplay(EGLenum platform,
void *native_display,
const EGLAttrib *attrib_list)
{
EnsureEGLLoaded();
return EGL_GetPlatformDisplay(platform, native_display, attrib_list);
}
EGLBoolean EGLAPIENTRY eglGetSyncAttrib(EGLDisplay dpy,
EGLSync sync,
EGLint attribute,
EGLAttrib *value)
{
EnsureEGLLoaded();
return EGL_GetSyncAttrib(dpy, sync, attribute, value);
}
EGLBoolean EGLAPIENTRY eglWaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags)
{
EnsureEGLLoaded();
return EGL_WaitSync(dpy, sync, flags);
}
// EGL_ANDROID_blob_cache
void EGLAPIENTRY eglSetBlobCacheFuncsANDROID(EGLDisplay dpy,
EGLSetBlobFuncANDROID set,
EGLGetBlobFuncANDROID get)
{
EnsureEGLLoaded();
return EGL_SetBlobCacheFuncsANDROID(dpy, set, get);
}
// EGL_ANDROID_create_native_client_buffer
EGLClientBuffer EGLAPIENTRY eglCreateNativeClientBufferANDROID(const EGLint *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreateNativeClientBufferANDROID(attrib_list);
}
// EGL_ANDROID_get_frame_timestamps
EGLBoolean EGLAPIENTRY eglGetCompositorTimingSupportedANDROID(EGLDisplay dpy,
EGLSurface surface,
EGLint name)
{
EnsureEGLLoaded();
return EGL_GetCompositorTimingSupportedANDROID(dpy, surface, name);
}
EGLBoolean EGLAPIENTRY eglGetCompositorTimingANDROID(EGLDisplay dpy,
EGLSurface surface,
EGLint numTimestamps,
const EGLint *names,
EGLnsecsANDROID *values)
{
EnsureEGLLoaded();
return EGL_GetCompositorTimingANDROID(dpy, surface, numTimestamps, names, values);
}
EGLBoolean EGLAPIENTRY eglGetNextFrameIdANDROID(EGLDisplay dpy,
EGLSurface surface,
EGLuint64KHR *frameId)
{
EnsureEGLLoaded();
return EGL_GetNextFrameIdANDROID(dpy, surface, frameId);
}
EGLBoolean EGLAPIENTRY eglGetFrameTimestampSupportedANDROID(EGLDisplay dpy,
EGLSurface surface,
EGLint timestamp)
{
EnsureEGLLoaded();
return EGL_GetFrameTimestampSupportedANDROID(dpy, surface, timestamp);
}
EGLBoolean EGLAPIENTRY eglGetFrameTimestampsANDROID(EGLDisplay dpy,
EGLSurface surface,
EGLuint64KHR frameId,
EGLint numTimestamps,
const EGLint *timestamps,
EGLnsecsANDROID *values)
{
EnsureEGLLoaded();
return EGL_GetFrameTimestampsANDROID(dpy, surface, frameId, numTimestamps, timestamps, values);
}
// EGL_ANDROID_get_native_client_buffer
EGLClientBuffer EGLAPIENTRY eglGetNativeClientBufferANDROID(const struct AHardwareBuffer *buffer)
{
EnsureEGLLoaded();
return EGL_GetNativeClientBufferANDROID(buffer);
}
// EGL_ANDROID_native_fence_sync
EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID(EGLDisplay dpy, EGLSyncKHR sync)
{
EnsureEGLLoaded();
return EGL_DupNativeFenceFDANDROID(dpy, sync);
}
// EGL_ANDROID_presentation_time
EGLBoolean EGLAPIENTRY eglPresentationTimeANDROID(EGLDisplay dpy,
EGLSurface surface,
EGLnsecsANDROID time)
{
EnsureEGLLoaded();
return EGL_PresentationTimeANDROID(dpy, surface, time);
}
// EGL_ANGLE_device_creation
EGLDeviceEXT EGLAPIENTRY eglCreateDeviceANGLE(EGLint device_type,
void *native_device,
const EGLAttrib *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreateDeviceANGLE(device_type, native_device, attrib_list);
}
EGLBoolean EGLAPIENTRY eglReleaseDeviceANGLE(EGLDeviceEXT device)
{
EnsureEGLLoaded();
return EGL_ReleaseDeviceANGLE(device);
}
// EGL_ANGLE_device_vulkan
void EGLAPIENTRY eglLockVulkanQueueANGLE(EGLDisplay dpy)
{
EnsureEGLLoaded();
return EGL_LockVulkanQueueANGLE(dpy);
}
void EGLAPIENTRY eglUnlockVulkanQueueANGLE(EGLDisplay dpy)
{
EnsureEGLLoaded();
return EGL_UnlockVulkanQueueANGLE(dpy);
}
// EGL_ANGLE_external_context_and_surface
void EGLAPIENTRY eglAcquireExternalContextANGLE(EGLDisplay dpy, EGLSurface drawAndRead)
{
EnsureEGLLoaded();
return EGL_AcquireExternalContextANGLE(dpy, drawAndRead);
}
void EGLAPIENTRY eglReleaseExternalContextANGLE(EGLDisplay dpy)
{
EnsureEGLLoaded();
return EGL_ReleaseExternalContextANGLE(dpy);
}
// EGL_ANGLE_feature_control
const char *EGLAPIENTRY eglQueryStringiANGLE(EGLDisplay dpy, EGLint name, EGLint index)
{
EnsureEGLLoaded();
return EGL_QueryStringiANGLE(dpy, name, index);
}
EGLBoolean EGLAPIENTRY eglQueryDisplayAttribANGLE(EGLDisplay dpy,
EGLint attribute,
EGLAttrib *value)
{
EnsureEGLLoaded();
return EGL_QueryDisplayAttribANGLE(dpy, attribute, value);
}
// EGL_ANGLE_metal_shared_event_sync
void *EGLAPIENTRY eglCopyMetalSharedEventANGLE(EGLDisplay dpy, EGLSyncKHR sync)
{
EnsureEGLLoaded();
return EGL_CopyMetalSharedEventANGLE(dpy, sync);
}
// EGL_ANGLE_no_error
void EGLAPIENTRY eglSetValidationEnabledANGLE(EGLBoolean validationState)
{
EnsureEGLLoaded();
return EGL_SetValidationEnabledANGLE(validationState);
}
// EGL_ANGLE_power_preference
void EGLAPIENTRY eglReleaseHighPowerGPUANGLE(EGLDisplay dpy, EGLContext ctx)
{
EnsureEGLLoaded();
return EGL_ReleaseHighPowerGPUANGLE(dpy, ctx);
}
void EGLAPIENTRY eglReacquireHighPowerGPUANGLE(EGLDisplay dpy, EGLContext ctx)
{
EnsureEGLLoaded();
return EGL_ReacquireHighPowerGPUANGLE(dpy, ctx);
}
void EGLAPIENTRY eglHandleGPUSwitchANGLE(EGLDisplay dpy)
{
EnsureEGLLoaded();
return EGL_HandleGPUSwitchANGLE(dpy);
}
void EGLAPIENTRY eglForceGPUSwitchANGLE(EGLDisplay dpy, EGLint gpuIDHigh, EGLint gpuIDLow)
{
EnsureEGLLoaded();
return EGL_ForceGPUSwitchANGLE(dpy, gpuIDHigh, gpuIDLow);
}
// EGL_ANGLE_prepare_swap_buffers
EGLBoolean EGLAPIENTRY eglPrepareSwapBuffersANGLE(EGLDisplay dpy, EGLSurface surface)
{
EnsureEGLLoaded();
return EGL_PrepareSwapBuffersANGLE(dpy, surface);
}
// EGL_ANGLE_program_cache_control
EGLint EGLAPIENTRY eglProgramCacheGetAttribANGLE(EGLDisplay dpy, EGLenum attrib)
{
EnsureEGLLoaded();
return EGL_ProgramCacheGetAttribANGLE(dpy, attrib);
}
void EGLAPIENTRY eglProgramCacheQueryANGLE(EGLDisplay dpy,
EGLint index,
void *key,
EGLint *keysize,
void *binary,
EGLint *binarysize)
{
EnsureEGLLoaded();
return EGL_ProgramCacheQueryANGLE(dpy, index, key, keysize, binary, binarysize);
}
void EGLAPIENTRY eglProgramCachePopulateANGLE(EGLDisplay dpy,
const void *key,
EGLint keysize,
const void *binary,
EGLint binarysize)
{
EnsureEGLLoaded();
return EGL_ProgramCachePopulateANGLE(dpy, key, keysize, binary, binarysize);
}
EGLint EGLAPIENTRY eglProgramCacheResizeANGLE(EGLDisplay dpy, EGLint limit, EGLint mode)
{
EnsureEGLLoaded();
return EGL_ProgramCacheResizeANGLE(dpy, limit, mode);
}
// EGL_ANGLE_query_surface_pointer
EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE(EGLDisplay dpy,
EGLSurface surface,
EGLint attribute,
void **value)
{
EnsureEGLLoaded();
return EGL_QuerySurfacePointerANGLE(dpy, surface, attribute, value);
}
// EGL_ANGLE_stream_producer_d3d_texture
EGLBoolean EGLAPIENTRY eglCreateStreamProducerD3DTextureANGLE(EGLDisplay dpy,
EGLStreamKHR stream,
const EGLAttrib *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreateStreamProducerD3DTextureANGLE(dpy, stream, attrib_list);
}
EGLBoolean EGLAPIENTRY eglStreamPostD3DTextureANGLE(EGLDisplay dpy,
EGLStreamKHR stream,
void *texture,
const EGLAttrib *attrib_list)
{
EnsureEGLLoaded();
return EGL_StreamPostD3DTextureANGLE(dpy, stream, texture, attrib_list);
}
// EGL_ANGLE_sync_control_rate
EGLBoolean EGLAPIENTRY eglGetMscRateANGLE(EGLDisplay dpy,
EGLSurface surface,
EGLint *numerator,
EGLint *denominator)
{
EnsureEGLLoaded();
return EGL_GetMscRateANGLE(dpy, surface, numerator, denominator);
}
// EGL_ANGLE_vulkan_image
EGLBoolean EGLAPIENTRY eglExportVkImageANGLE(EGLDisplay dpy,
EGLImage image,
void *vk_image,
void *vk_image_create_info)
{
EnsureEGLLoaded();
return EGL_ExportVkImageANGLE(dpy, image, vk_image, vk_image_create_info);
}
// EGL_ANGLE_wait_until_work_scheduled
void EGLAPIENTRY eglWaitUntilWorkScheduledANGLE(EGLDisplay dpy)
{
EnsureEGLLoaded();
return EGL_WaitUntilWorkScheduledANGLE(dpy);
}
// EGL_CHROMIUM_sync_control
EGLBoolean EGLAPIENTRY eglGetSyncValuesCHROMIUM(EGLDisplay dpy,
EGLSurface surface,
EGLuint64KHR *ust,
EGLuint64KHR *msc,
EGLuint64KHR *sbc)
{
EnsureEGLLoaded();
return EGL_GetSyncValuesCHROMIUM(dpy, surface, ust, msc, sbc);
}
// EGL_EXT_device_query
EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT(EGLDeviceEXT device,
EGLint attribute,
EGLAttrib *value)
{
EnsureEGLLoaded();
return EGL_QueryDeviceAttribEXT(device, attribute, value);
}
const char *EGLAPIENTRY eglQueryDeviceStringEXT(EGLDeviceEXT device, EGLint name)
{
EnsureEGLLoaded();
return EGL_QueryDeviceStringEXT(device, name);
}
EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT(EGLDisplay dpy, EGLint attribute, EGLAttrib *value)
{
EnsureEGLLoaded();
return EGL_QueryDisplayAttribEXT(dpy, attribute, value);
}
// EGL_EXT_image_dma_buf_import_modifiers
EGLBoolean EGLAPIENTRY eglQueryDmaBufFormatsEXT(EGLDisplay dpy,
EGLint max_formats,
EGLint *formats,
EGLint *num_formats)
{
EnsureEGLLoaded();
return EGL_QueryDmaBufFormatsEXT(dpy, max_formats, formats, num_formats);
}
EGLBoolean EGLAPIENTRY eglQueryDmaBufModifiersEXT(EGLDisplay dpy,
EGLint format,
EGLint max_modifiers,
EGLuint64KHR *modifiers,
EGLBoolean *external_only,
EGLint *num_modifiers)
{
EnsureEGLLoaded();
return EGL_QueryDmaBufModifiersEXT(dpy, format, max_modifiers, modifiers, external_only,
num_modifiers);
}
// EGL_EXT_platform_base
EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT(EGLDisplay dpy,
EGLConfig config,
void *native_pixmap,
const EGLint *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreatePlatformPixmapSurfaceEXT(dpy, config, native_pixmap, attrib_list);
}
EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT(EGLDisplay dpy,
EGLConfig config,
void *native_window,
const EGLint *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreatePlatformWindowSurfaceEXT(dpy, config, native_window, attrib_list);
}
EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT(EGLenum platform,
void *native_display,
const EGLint *attrib_list)
{
EnsureEGLLoaded();
return EGL_GetPlatformDisplayEXT(platform, native_display, attrib_list);
}
// EGL_EXT_surface_compression
EGLBoolean EGLAPIENTRY eglQuerySupportedCompressionRatesEXT(EGLDisplay dpy,
EGLConfig config,
const EGLAttrib *attrib_list,
EGLint *rates,
EGLint rate_size,
EGLint *num_rates)
{
EnsureEGLLoaded();
return EGL_QuerySupportedCompressionRatesEXT(dpy, config, attrib_list, rates, rate_size,
num_rates);
}
// EGL_KHR_debug
EGLint EGLAPIENTRY eglDebugMessageControlKHR(EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list)
{
EnsureEGLLoaded();
return EGL_DebugMessageControlKHR(callback, attrib_list);
}
EGLint EGLAPIENTRY eglLabelObjectKHR(EGLDisplay display,
EGLenum objectType,
EGLObjectKHR object,
EGLLabelKHR label)
{
EnsureEGLLoaded();
return EGL_LabelObjectKHR(display, objectType, object, label);
}
EGLBoolean EGLAPIENTRY eglQueryDebugKHR(EGLint attribute, EGLAttrib *value)
{
EnsureEGLLoaded();
return EGL_QueryDebugKHR(attribute, value);
}
// EGL_KHR_fence_sync
EGLint EGLAPIENTRY eglClientWaitSyncKHR(EGLDisplay dpy,
EGLSyncKHR sync,
EGLint flags,
EGLTimeKHR timeout)
{
EnsureEGLLoaded();
return EGL_ClientWaitSyncKHR(dpy, sync, flags, timeout);
}
EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreateSyncKHR(dpy, type, attrib_list);
}
EGLBoolean EGLAPIENTRY eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync)
{
EnsureEGLLoaded();
return EGL_DestroySyncKHR(dpy, sync);
}
EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR(EGLDisplay dpy,
EGLSyncKHR sync,
EGLint attribute,
EGLint *value)
{
EnsureEGLLoaded();
return EGL_GetSyncAttribKHR(dpy, sync, attribute, value);
}
// EGL_KHR_image
EGLImageKHR EGLAPIENTRY eglCreateImageKHR(EGLDisplay dpy,
EGLContext ctx,
EGLenum target,
EGLClientBuffer buffer,
const EGLint *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreateImageKHR(dpy, ctx, target, buffer, attrib_list);
}
EGLBoolean EGLAPIENTRY eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR image)
{
EnsureEGLLoaded();
return EGL_DestroyImageKHR(dpy, image);
}
// EGL_KHR_lock_surface3
EGLBoolean EGLAPIENTRY eglLockSurfaceKHR(EGLDisplay dpy,
EGLSurface surface,
const EGLint *attrib_list)
{
EnsureEGLLoaded();
return EGL_LockSurfaceKHR(dpy, surface, attrib_list);
}
EGLBoolean EGLAPIENTRY eglQuerySurface64KHR(EGLDisplay dpy,
EGLSurface surface,
EGLint attribute,
EGLAttribKHR *value)
{
EnsureEGLLoaded();
return EGL_QuerySurface64KHR(dpy, surface, attribute, value);
}
EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR(EGLDisplay dpy, EGLSurface surface)
{
EnsureEGLLoaded();
return EGL_UnlockSurfaceKHR(dpy, surface);
}
// EGL_KHR_partial_update
EGLBoolean EGLAPIENTRY eglSetDamageRegionKHR(EGLDisplay dpy,
EGLSurface surface,
EGLint *rects,
EGLint n_rects)
{
EnsureEGLLoaded();
return EGL_SetDamageRegionKHR(dpy, surface, rects, n_rects);
}
// EGL_KHR_reusable_sync
EGLBoolean EGLAPIENTRY eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode)
{
EnsureEGLLoaded();
return EGL_SignalSyncKHR(dpy, sync, mode);
}
// EGL_KHR_stream
EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR(EGLDisplay dpy, const EGLint *attrib_list)
{
EnsureEGLLoaded();
return EGL_CreateStreamKHR(dpy, attrib_list);
}
EGLBoolean EGLAPIENTRY eglDestroyStreamKHR(EGLDisplay dpy, EGLStreamKHR stream)
{
EnsureEGLLoaded();
return EGL_DestroyStreamKHR(dpy, stream);
}
EGLBoolean EGLAPIENTRY eglQueryStreamKHR(EGLDisplay dpy,
EGLStreamKHR stream,
EGLenum attribute,
EGLint *value)
{
EnsureEGLLoaded();
return EGL_QueryStreamKHR(dpy, stream, attribute, value);
}
EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR(EGLDisplay dpy,
EGLStreamKHR stream,
EGLenum attribute,
EGLuint64KHR *value)
{
EnsureEGLLoaded();
return EGL_QueryStreamu64KHR(dpy, stream, attribute, value);
}
EGLBoolean EGLAPIENTRY eglStreamAttribKHR(EGLDisplay dpy,
EGLStreamKHR stream,
EGLenum attribute,
EGLint value)
{
EnsureEGLLoaded();
return EGL_StreamAttribKHR(dpy, stream, attribute, value);
}
// EGL_KHR_stream_consumer_gltexture
EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR(EGLDisplay dpy, EGLStreamKHR stream)
{
EnsureEGLLoaded();
return EGL_StreamConsumerAcquireKHR(dpy, stream);
}
EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR(EGLDisplay dpy, EGLStreamKHR stream)
{
EnsureEGLLoaded();
return EGL_StreamConsumerGLTextureExternalKHR(dpy, stream);
}
EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR(EGLDisplay dpy, EGLStreamKHR stream)
{
EnsureEGLLoaded();
return EGL_StreamConsumerReleaseKHR(dpy, stream);
}
// EGL_KHR_swap_buffers_with_damage
EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR(EGLDisplay dpy,
EGLSurface surface,
const EGLint *rects,
EGLint n_rects)
{
EnsureEGLLoaded();
return EGL_SwapBuffersWithDamageKHR(dpy, surface, rects, n_rects);
}
// EGL_KHR_wait_sync
EGLint EGLAPIENTRY eglWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags)
{
EnsureEGLLoaded();
return EGL_WaitSyncKHR(dpy, sync, flags);
}
// EGL_NV_post_sub_buffer
EGLBoolean EGLAPIENTRY eglPostSubBufferNV(EGLDisplay dpy,
EGLSurface surface,
EGLint x,
EGLint y,
EGLint width,
EGLint height)
{
EnsureEGLLoaded();
return EGL_PostSubBufferNV(dpy, surface, x, y, width, height);
}
// EGL_NV_stream_consumer_gltexture_yuv
EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalAttribsNV(EGLDisplay dpy,
EGLStreamKHR stream,
const EGLAttrib *attrib_list)
{
EnsureEGLLoaded();
return EGL_StreamConsumerGLTextureExternalAttribsNV(dpy, stream, attrib_list);
}
} // extern "C"