• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Name
2
3    ANGLE_power_preference
4
5Name Strings
6
7    EGL_ANGLE_power_preference
8
9Contributors
10
11    Kenneth Russell
12
13Contacts
14
15    Kenneth Russell, Google Inc. (kbr 'at' google.com)
16
17Status
18
19    Draft
20
21Version
22
23    Version 1, April 16, 2019
24
25Number
26
27    EGL Extension #??
28
29Dependencies
30
31    This extension is written against the wording of the EGL 1.4
32    Specification.
33
34Overview
35
36    This extension allows selection of the high- or low-power GPU on
37    dual-GPU systems, specifically on macOS.
38
39New Types
40
41    None
42
43New Procedures and Functions
44
45    None
46
47New Tokens
48
49    Accepted as an attribute name in the <*attrib_list> argument to
50    eglCreateContext:
51
52        EGL_POWER_PREFERENCE_ANGLE  0x3482
53
54    Accepted as an attribute value in the <*attrib_list> argument to
55    eglCreateContext:
56
57        EGL_LOW_POWER_ANGLE         0x0001
58        EGL_HIGH_POWER_ANGLE        0x0002
59
60Additions to the EGL 1.4 Specification
61
62    Add the following to section 3.7.1 "Creating Rendering Contexts":
63
64    EGL_POWER_PREFERENCE_ANGLE indicates whether the context should be
65    created on the integrated (low-power) or discrete (high-power) GPU
66    on dual-GPU systems. EGL_POWER_PREFERENCE_ANGLE is only a legal
67    context creation attribute when the EGL_ANGLE_power_preference
68    extension is advertised. The valid values for this attribute are
69    EGL_LOW_POWER_ANGLE and EGL_HIGH_POWER_ANGLE. If this extension is
70    advertised and this context creation attribute is not specified,
71    the default value is EGL_LOW_POWER_ANGLE.
72
73    The containing application must set the
74    NSSupportsAutomaticGraphicsSwitching attribute to true in its
75    Info.plist in order for this extension to operate as advertised.
76
77Issues
78
79    None yet.
80
81Revision History
82
83    Rev.    Date         Author     Changes
84    ----  -------------  ---------  ----------------------------------------
85      1   Apr 16, 2019   kbr        Initial version
86