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

Function getVersion

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

Source from the content-addressed store, hash-verified

60446 (0, _utils.log).info(1, "".concat(webGL).concat(debug, " context ").concat(driver))();
60447}
60448function getVersion(gl) {
60449 if (typeof WebGL2RenderingContext !== "undefined" && gl instanceof WebGL2RenderingContext) return 2;
60450 return 1;
60451}
60452function setDevicePixelRatio(gl, devicePixelRatio, options) {
60453 var clientWidth = "width" in options ? options.width : gl.canvas.clientWidth;
60454 var clientHeight = "height" in options ? options.height : gl.canvas.clientHeight;

Callers 1

instrumentGLContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected