mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
(backported from UXP) Issue #3042 - Add canvas WebGL context powerPreference
This commit is contained in:
parent
fbe9582c37
commit
6822713a60
4 changed files with 46 additions and 32 deletions
|
|
@ -32,6 +32,10 @@ typedef unrestricted float GLfloat;
|
|||
typedef unrestricted float GLclampf;
|
||||
typedef unsigned long long GLuint64EXT;
|
||||
|
||||
// The power preference settings are documented in the WebGLContextAttributes
|
||||
// section of the specification.
|
||||
enum WebGLPowerPreference { "default", "low-power", "high-performance" };
|
||||
|
||||
dictionary WebGLContextAttributes {
|
||||
// boolean alpha = true;
|
||||
// We deviate from the spec here.
|
||||
|
|
@ -43,6 +47,7 @@ dictionary WebGLContextAttributes {
|
|||
GLboolean premultipliedAlpha = true;
|
||||
GLboolean preserveDrawingBuffer = false;
|
||||
GLboolean failIfMajorPerformanceCaveat = false;
|
||||
WebGLPowerPreference powerPreference = "default";
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue