/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{unitW as r}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{isOITColorAlpha as t}from"../core/shaderLibrary/ShaderOutput.js";import{defaultDepthWrite as e,modulateDestination as u,premultipliedAlpha as n,unpremultipliedAlphaToPremultipliedAlpha as c,separateBlendingParams as i}from"../../../webgl/renderState.js";const o=i(1,0,1,771),a=r();function s(r,t=!1,e=!1){if(e)return u;switch(r){case 0:return t?n:c;case 1:return o;default:return null}}function f(r){if(r.draped)return null;switch(r.output){case 0:case 2:default:return r.writeDepth?e:null;case 1:return null}}function l(r,e=513){return{func:t(r)?515:e}}export{s as blending,o as blendingColorAlpha,a as blendingColorAlphaClear,l as depthTest,f as depthWrite};
