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

Function logInfo

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

Source from the content-addressed store, hash-verified

60439 return targetCanvas;
60440}
60441function logInfo(gl) {
60442 var webGL = (0, _utils.isWebGL2)(gl) ? "WebGL2" : "WebGL1";
60443 var info = getContextDebugInfo(gl);
60444 var driver = info ? "(".concat(info.vendor, ",").concat(info.renderer, ")") : "";
60445 var debug = gl.debug ? " debug" : "";
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;

Callers 1

createGLContextFunction · 0.70

Calls 2

getContextDebugInfoFunction · 0.70
infoMethod · 0.45

Tested by

no test coverage detected