2014-02-05 04:23:27 +04:00
|
|
|
Name
|
|
|
|
|
|
|
|
ANGLE_platform_angle_d3d
|
|
|
|
|
|
|
|
Name Strings
|
|
|
|
|
|
|
|
EGL_ANGLE_platform_angle_d3d
|
|
|
|
|
|
|
|
Contributors
|
|
|
|
|
|
|
|
Shannon Woods, Google
|
2014-06-05 23:38:28 +04:00
|
|
|
Geoff Lang, Google
|
2014-02-05 04:23:27 +04:00
|
|
|
|
|
|
|
Contacts
|
|
|
|
|
2014-06-05 23:38:28 +04:00
|
|
|
Geoff Lang, Google (geofflang 'at' chromium 'dot' org)
|
2014-02-05 04:23:27 +04:00
|
|
|
|
|
|
|
Status
|
|
|
|
|
|
|
|
Draft
|
|
|
|
|
|
|
|
Version
|
|
|
|
|
2014-11-27 00:19:41 +03:00
|
|
|
Version 3, 2014-11-26
|
2014-02-05 04:23:27 +04:00
|
|
|
|
|
|
|
Number
|
|
|
|
|
|
|
|
EGL Extension XXX
|
|
|
|
|
|
|
|
Extension Type
|
|
|
|
|
|
|
|
EGL client extension
|
|
|
|
|
|
|
|
Dependencies
|
|
|
|
|
2014-06-05 23:38:28 +04:00
|
|
|
Requires ANGLE_platform_angle.
|
2014-02-05 04:23:27 +04:00
|
|
|
|
|
|
|
Overview
|
|
|
|
|
2014-06-05 23:38:28 +04:00
|
|
|
This extension enables selection of D3D display types.
|
2014-02-05 04:23:27 +04:00
|
|
|
|
|
|
|
New Types
|
|
|
|
|
|
|
|
None
|
|
|
|
|
|
|
|
New Procedures and Functions
|
|
|
|
|
|
|
|
None
|
|
|
|
|
|
|
|
New Tokens
|
|
|
|
|
2014-06-05 23:38:28 +04:00
|
|
|
Accepted as values for the EGL_PLATFORM_ANGLE_TYPE_ANGLE attribute:
|
2014-02-05 04:23:27 +04:00
|
|
|
|
2014-11-27 00:19:41 +03:00
|
|
|
EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE 0x3207
|
|
|
|
EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE 0x3208
|
2014-10-23 19:08:16 +04:00
|
|
|
|
|
|
|
Accepted as an attribute name in the <attrib_list> argument of
|
|
|
|
eglGetPlatformDisplayEXT:
|
|
|
|
|
2014-11-27 00:19:41 +03:00
|
|
|
EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE 0x3209
|
2015-03-11 22:26:30 +03:00
|
|
|
EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE 0x320F
|
2014-11-27 00:19:41 +03:00
|
|
|
|
|
|
|
Accepted as values for the EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE attribute:
|
|
|
|
|
2018-01-05 02:19:21 +03:00
|
|
|
EGL_PLATFORM_ANGLE_DEVICE_TYPE_D3D_WARP_ANGLE 0x320B
|
|
|
|
EGL_PLATFORM_ANGLE_DEVICE_TYPE_D3D_REFERENCE_ANGLE 0x320C
|
2014-02-05 04:23:27 +04:00
|
|
|
|
|
|
|
Additions to the EGL Specification
|
|
|
|
|
|
|
|
None.
|
|
|
|
|
2014-10-23 19:08:16 +04:00
|
|
|
New Behavior
|
|
|
|
|
|
|
|
To request a display that is backed by Direct3D resources, the value of
|
|
|
|
EGL_PLATFORM_ANGLE_TYPE_ANGLE should be:
|
|
|
|
- EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE for a D3D9 display,
|
|
|
|
- EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE for a D3D11 display.
|
|
|
|
|
|
|
|
To request a specific maximum feature level to be used by the D3D11
|
|
|
|
display, EGL_PLATFORM_ANGLE_MAX_VERSION_MAJOR_ANGLE and
|
|
|
|
EGL_PLATFORM_ANGLE_MAX_VERSION_MINOR_ANGLE can be used. Only feature
|
|
|
|
levels that are capable of supporting all available client APIs will be
|
|
|
|
used unless explicitly requested.
|
|
|
|
EGL_PLATFORM_ANGLE_MAX_VERSION_MAJOR_ANGLE and
|
|
|
|
EGL_PLATFORM_ANGLE_MAX_VERSION_MINOR_ANGLE have no effect when requesting
|
|
|
|
a D3D9 display.
|
|
|
|
|
|
|
|
If no <attrib_list> is specified to eglGetPlatformDisplayEXT, the value of
|
2014-11-27 00:19:41 +03:00
|
|
|
EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE is implicitly set to
|
|
|
|
EGL_PLATFORM_ANGLE_DEVICE_TYPE_HARDWARE_ANGLE. Otherwise, the value of
|
|
|
|
EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE should be:
|
|
|
|
- EGL_PLATFORM_ANGLE_DEVICE_TYPE_HARDWARE_ANGLE to request a hardware
|
|
|
|
accelerated device.
|
2018-01-05 02:19:21 +03:00
|
|
|
- EGL_PLATFORM_ANGLE_DEVICE_TYPE_NULL_ANGLE to request a no-op driver
|
|
|
|
for testing.
|
|
|
|
- EGL_PLATFORM_ANGLE_DEVICE_TYPE_D3D_WARP_ANGLE to request an
|
2014-11-27 00:19:41 +03:00
|
|
|
optimized software rasterizer.
|
2018-01-05 02:19:21 +03:00
|
|
|
- EGL_PLATFORM_ANGLE_DEVICE_TYPE_D3D_REFERENCE_ANGLE to request a
|
2014-11-27 00:19:41 +03:00
|
|
|
reference rasterizer.
|
|
|
|
|
2015-03-11 22:26:30 +03:00
|
|
|
If EGL_PLATFORM_ANGLE_TYPE_ANGLE is set to
|
|
|
|
EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE, the display can automatically respond
|
|
|
|
to trim events from the operating system. If the attribute
|
|
|
|
EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE is unspecified, it is
|
|
|
|
implicitly set to EGL_FALSE. Otherwise, the value of
|
|
|
|
EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE should be EGL_TRUE or
|
|
|
|
EGL_FALSE.
|
|
|
|
|
2014-11-27 00:19:41 +03:00
|
|
|
If EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE is set to
|
|
|
|
EGL_PLATFORM_ANGLE_DEVICE_TYPE_WARP_ANGLE and EGL_PLATFORM_ANGLE_TYPE_ANGLE
|
|
|
|
is not set to EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE, an EGL_BAD_ATTRIBUTE
|
|
|
|
error is generated and EGL_NO_DISPLAY is returned.
|
2014-10-23 19:08:16 +04:00
|
|
|
|
2015-03-11 22:26:30 +03:00
|
|
|
If EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE is specified when
|
|
|
|
EGL_PLATFORM_ANGLE_TYPE_ANGLE is not EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE
|
|
|
|
or a value other than EGL_TRUE or EGL_FALSE is used, an EGL_BAD_ATTRIBUTE
|
|
|
|
error is generated and EGL_NO_DISPLAY is returned.
|
|
|
|
|
2014-02-05 04:23:27 +04:00
|
|
|
Issues
|
|
|
|
|
2015-03-11 22:26:30 +03:00
|
|
|
1) Some multithreaded applications can crash if the display automatically
|
|
|
|
responds to trim events while the application is rendering from another
|
|
|
|
thread.
|
|
|
|
|
|
|
|
RESOLVED: Added an EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE
|
|
|
|
enum to specify if the display should respond to trim events.
|
|
|
|
Applications that do multithreaded rendering should disable automatic
|
|
|
|
trim and handle the trim events on their own.
|
2014-02-05 04:23:27 +04:00
|
|
|
|
|
|
|
Revision History
|
|
|
|
|
2014-06-05 23:38:28 +04:00
|
|
|
Version 1, 2014-06-05 (Geoff Lang)
|
2014-10-23 19:08:16 +04:00
|
|
|
- Initial draft
|
|
|
|
Version 2, 2014-10-27 (Geoff Lang)
|
|
|
|
- Separate WARP devices into a new attribute instead of a platform type.
|
|
|
|
- Moved descriptions of platforms and major/minor versions from
|
|
|
|
EGL_ANGLE_platform_angle spec to EGL_ANGLE_platform_angle_d3d.
|
2014-11-27 00:19:41 +03:00
|
|
|
Version 3, 2014-11-26 (Geoff Lang)
|
|
|
|
- Remove the USE_WARP bool and replace it with a DEVICE_TYPE enum.
|
2015-03-11 22:26:30 +03:00
|
|
|
Version 4, 2015-03-11 (Geoff Lang)
|
|
|
|
- Add the ENABLE_AUTOMATIC_TRIM enum.
|