We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90a2481 commit 2c6cae8Copy full SHA for 2c6cae8
module/source/types/webgl-context-attributes.ts
@@ -46,10 +46,15 @@ type WebGLContextAttributes = {
46
* Note that this property is only a hint and a WebGL implementation may
47
* choose to ignore it. WebGL implementations use context lost and restored
48
* events to regulate power and memory consumption, regardless of the value of
49
- * this attribute.
50
- * @default "default"
+ * this attribute. Accepts the following values:
+ * {
51
+ * 0: "default",
52
+ * 1: "low-power",
53
+ * 2: "high-performance",
54
+ * }
55
+ * @default 0
56
*/
- readonly powerPreference?: "default" | "high-performance" | "low-power";
57
+ readonly powerPreference?: 0 | 1 | 2;
58
59
/**
60
* If set to true, the color channels in the framebuffer will be stored
0 commit comments