/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as e}from"tslib";import{subclass as r}from"../../../../core/accessorSupport/decorators.js";import{ReloadableShader as o}from"../core/shaderTechnique/ReloadableShader.js";import{ShaderTechnique as s}from"../core/shaderTechnique/ShaderTechnique.js";import{a as i}from"../../../../chunks/Compositing.glsl.js";import{makePipelineState as t,defaultColorWrite as c,premultipliedAlpha as n,unpremultipliedAlphaToPremultipliedAlpha as a}from"../../../webgl/renderState.js";let l=class extends s{constructor(){super(...arguments),this.shader=new o(i,()=>import("./Compositing.glsl.js"))}initializePipeline(e){switch(e.mode){case 0:case 3:return t({colorWrite:c});case 1:return t({blending:a,colorWrite:c});default:e.mode;case 2:case 4:return t({blending:n,colorWrite:c})}}};l=e([r("esri.views.3d.webgl-engine.shaders.CompositingTechnique")],l);export{l as CompositingTechnique};
