MCPcopy Create free account
hub / github.com/microsoft/SandDance / isWebGL2

Function isWebGL2

docs/app/js/sanddance-app.js:59469–59471  ·  view source on GitHub ↗
(gl)

Source from the content-addressed store, hash-verified

59467 return Boolean(gl && Number.isFinite(gl._version));
59468}
59469function isWebGL2(gl) {
59470 return Boolean(gl && gl._version === 2);
59471}
59472function assertWebGLContext(gl) {
59473 (0, _utils.assert)(isWebGL(gl), ERR_CONTEXT);
59474}

Callers 2

assertWebGL2ContextFunction · 0.70
getFeatureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected