/* 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 t}from"../../../../../chunks/OITBlend.glsl.js";import{ColorAttachment0 as i}from"../../../../webgl/enums.js";import{makePipelineState as n,defaultColorWrite as c,unpremultipliedAlphaToPremultipliedAlpha as l}from"../../../../webgl/renderState.js";let u=class extends o{constructor(){super(...arguments),this.shader=new s(t,()=>import("./OITBlend.glsl.js"))}initializePipeline(e){let r=i;const s={buffers:[r++]};return e.hasEmitters&&s.buffers.push(r++),e.computeHudOcclusion&&s.buffers.push(r++),n({blending:l,colorWrite:c,drawBuffers:s})}};u=e([r("esri.views.3d.webgl-engine.effects.transparency.OITBlendTechnique")],u);export{u as OITBlendTechnique};
