/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{ColorAttachment0 as e,ColorAttachment1 as n}from"../../../webgl/enums.js";import{defaultDepthWrite as t,premultipliedAlpha as r,unpremultipliedAlphaToPremultipliedAlpha as u,separateBlendingParams as s}from"../../../webgl/renderState.js";const c=s(1,0,1,771);function f(e,n=!1){switch(e){case 0:return n?r:u;case 1:return c;case 2:case 3:return null}}function l(e){if(e.draped)return null;switch(e.oitPass){case 0:case 2:return e.writeDepth?t:null;case 1:case 3:return null}}function o(e,n=513){return{func:0===e||2===e?n:515}}const a={factor:-1,units:-2},i=5e5;function b({oitPass:e,enableOffset:n}){return n&&1===e?a:null}function h(t,r){const u={buffers:1===t?[e,n]:[e]};return r&&u.buffers.push(e+u.buffers.length),u.buffers.length>1?u:null}export{a as OITPolygonOffset,i as OITPolygonOffsetLimit,f as blending,c as blendingColorAlpha,o as depthTest,l as depthWrite,h as drawBuffers,b as oitPolygonOffset};
