// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define(["exports","../../core/Error","../../core/has","../../core/Logger"],function(c,e,f,g){function h(a,b){switch(b){case a.INVALID_ENUM:return"Invalid Enum. An unacceptable value has been specified for an enumerated argument.";case a.INVALID_VALUE:return"Invalid Value. A numeric argument is out of range.";case a.INVALID_OPERATION:return"Invalid Operation. The specified command is not allowed for the current state.";case a.INVALID_FRAMEBUFFER_OPERATION:return"Invalid Framebuffer operation. The currently bound framebuffer is not framebuffer complete when trying to render to or to read from it."; case a.OUT_OF_MEMORY:return"Out of memory. Not enough memory is left to execute the command.";case a.CONTEXT_LOST_WEBGL:return"WebGL context has been lost";default:return"Unknown error"}}const d=!!f("enable-feature:webgl-debug");c.checkWebGLError=function(a){if(d){var b=a.getError();b&&(a=h(a,b),b=Error().stack,g.getLogger("esri.views.webgl.checkWebGLError").error(new e("webgl-error","WebGL error occurred",{message:a,stack:b})))}};c.hasFeatureFlagWebGLDebug=d;c.webglDebugEnabled=function(){return d}; c.webglValidateShadersEnabled=function(){return d};Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});