/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{subclass as r}from"../../../../../core/accessorSupport/decorators.js";import{ReloadableShader as s}from"../../core/shaderTechnique/ReloadableShader.js";import{ShaderTechnique as o}from"../../core/shaderTechnique/ShaderTechnique.js";import{a as i}from"../../../../../chunks/OITBlend.glsl.js";import{ColorAttachment0 as t,ColorAttachment1 as n}from"../../../../webgl/enums.js";import{makePipelineState as l,defaultColorWrite as a,unpremultipliedAlphaToPremultipliedAlpha as c}from"../../../../webgl/renderState.js";let m=class extends o{constructor(){super(...arguments),this.shader=new s(i,()=>import("./OITBlend.glsl.js"))}initializePipeline(e){return l({blending:c,colorWrite:a,drawBuffers:e.hasEmitters?{buffers:[t,n]}:{buffers:[t]}})}};m=e([r("esri.views.3d.webgl-engine.effects.transparency.OITBlendTechnique")],m);export{m as OITBlendTechnique};
