/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{ColorAttachment0 as e,ColorAttachment1 as n,ColorAttachment2 as r}from"../../../webgl/enums.js";import{defaultDepthWrite as t,separateBlendingParams as u,premultipliedAlpha as s,unpremultipliedAlphaToPremultipliedAlpha as c}from"../../../webgl/renderState.js";const f=u(1,0,1,771);function l(e,n=!1){switch(e){case 0:return n?s:c;case 1:return f;case 2:case 3:return null}}function o(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 a(e,n=513){return{func:0===e||2===e?n:515}}const i={factor:-1,units:-2},b=5e5;function m({oitPass:e,enableOffset:n}){return n&&1===e?i:null}function p(t,u){return 1===t?u?{buffers:[e,n,r]}:{buffers:[e,n]}:u?{buffers:[e,n]}:null}export{i as OITPolygonOffset,b as OITPolygonOffsetLimit,l as blending,f as blendingColorAlpha,a as depthTest,o as depthWrite,p as drawBuffers,m as oitPolygonOffset};
