Optionaloptions: { failIfMajorPerformanceCaveat?: boolean }
context creation options
OptionalfailIfMajorPerformanceCaveat?: booleanif true, report WebGL as unsupported when the browser warns that a context would perform dramatically worse than a native application (e.g. a software rasterizer). Set false to accept WebGL on blocklisted drivers or software renderers.
true if WebGL 2 is supported
Returns true if the device supports WebGL 2 — the version the WebGL renderer requires since 20.0. This probes the same context type that renderer construction requests, so the two can never disagree.
When it returns false,
renderer: video.AUTOfalls back to the Canvas renderer andrenderer: video.WEBGLthrows at construction time.