mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 22:13:25 -10:00
Implement EGL_ANGLE_image_d3d11_texture extension. Images created with this extension might not be renderable based on bind flags and resource usage of the client provided texture in which case attaching them to a framebuffer won't succeed. The intended use case is to bind the front and back buffers of a swap chain to GL textures that can be used for rendering in the case of the back buffer and as a shader input for the front buffer. Bug: chromium:939655 Change-Id: Ic3328e831880292217b88be84740740df6031fa6 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1646732 Commit-Queue: Sunny Sachanandani <[email protected]> Reviewed-by: Geoff Lang <[email protected]>
ANGLE EGL Headers
The EGL headers ANGLE uses are generated using the Khronos tools but modified to include function pointer types and function prototype guards.
Regenerating EGL.h
-
Install Python 3 (not 2) with the lxml addon. You can do this using
pip install lxmlfrom your Python's Scripts folder. -
Edit
EGL-Registry/api/genheaders.py:- Look for the section titled
# EGL API - EGL/egl.h (no function pointers, yet @@@) - Change
genFuncPointers = False,togenFuncPointers = True, - Change
protectProto = False,toprotectProto = 'nonzero', - Change
protectProtoStr = 'EGL_EGLEXT_PROTOTYPES',toprotectProtoStr = 'EGL_EGL_PROTOTYPES',
- Look for the section titled
-
Set your working directory to
EGL-Registry/api/. -
Run
python genheaders.py -registry egl.xml EGL/egl.h -
The generated header will now be in
EGL-Registry/api/EGL/egl.h. You can copy the header over to this folder. -
Also update
scripts/egl.xmlwith the latest version fromEGL-Registry/api/.