Skip to content

Commit 2c6cae8

Browse files
forforfosAlexandros Papaefthymiou
and
Alexandros Papaefthymiou
authored
fix: update webGLContextAttributes powerPreference type (#545)
Co-authored-by: Alexandros Papaefthymiou <[email protected]>
1 parent 90a2481 commit 2c6cae8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

module/source/types/webgl-context-attributes.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,15 @@ type WebGLContextAttributes = {
4646
* Note that this property is only a hint and a WebGL implementation may
4747
* choose to ignore it. WebGL implementations use context lost and restored
4848
* events to regulate power and memory consumption, regardless of the value of
49-
* this attribute.
50-
* @default "default"
49+
* this attribute. Accepts the following values:
50+
* {
51+
* 0: "default",
52+
* 1: "low-power",
53+
* 2: "high-performance",
54+
* }
55+
* @default 0
5156
*/
52-
readonly powerPreference?: "default" | "high-performance" | "low-power";
57+
readonly powerPreference?: 0 | 1 | 2;
5358

5459
/**
5560
* If set to true, the color channels in the framebuffer will be stored

0 commit comments

Comments
 (0)