/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../core/Error","../webgl/capabilities","../webgl/context-util"],(function(e,r,t,i){"use strict";function n(e){const n=t.getWebGLCapabilities(e);if(!n.available)return new r("webgl:required","WebGL is required but not supported.");if("3d"===e&&n.majorPerformanceCaveat)return new r("webgl:major-performance-caveat-detected","Your WebGL implementation doesn't seem to support hardware accelerated rendering. Check your browser settings or if your GPU is in a blocklist.");if(!n.supportsHighPrecisionFragment)return new r("webgl:high-precision-fragment-required","WebGL support for high precision fragment shaders is required but not supported.");if(!n.supportsVertexShaderSamplers)return new r("webgl:vertex-shader-samplers-required","WebGL support for vertex shader samplers is required but not supported.");if(n.type===i.ContextType.WEBGL1){if(!n.supportsElementIndexUint)return new r("webgl:element-index-uint-required","WebGL support for uint vertex indices is required but not supported.");if(!n.supportsStandardDerivatives)return new r("webgl:standard-derivatives-required","WebGL support for standard derivatives is required but not supported.");if(!n.supportsInstancedArrays)return new r("webgl:instanced-arrays-required","WebGL support for instanced rendering is required but not supported.")}return null}e.check=n,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
