Skip to content

Commit

Permalink
fix: update webGLContextAttributes powerPreference type (#545)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandros Papaefthymiou <[email protected]>
  • Loading branch information
forforfos and Alexandros Papaefthymiou authored Mar 12, 2024
1 parent 90a2481 commit 2c6cae8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions module/source/types/webgl-context-attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,15 @@ type WebGLContextAttributes = {
* Note that this property is only a hint and a WebGL implementation may
* choose to ignore it. WebGL implementations use context lost and restored
* events to regulate power and memory consumption, regardless of the value of
* this attribute.
* @default "default"
* this attribute. Accepts the following values:
* {
* 0: "default",
* 1: "low-power",
* 2: "high-performance",
* }
* @default 0
*/
readonly powerPreference?: "default" | "high-performance" | "low-power";
readonly powerPreference?: 0 | 1 | 2;

/**
* If set to true, the color channels in the framebuffer will be stored
Expand Down

0 comments on commit 2c6cae8

Please sign in to comment.