/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{subclass as r}from"../../../../core/accessorSupport/decorators.js";import{glLayout as t}from"../../support/buffer/glUtil.js";import{newLayout as o}from"../../support/buffer/InterleavedLayout.js";import{ReloadableShader as i}from"../core/shaderTechnique/ReloadableShader.js";import{ShaderTechnique as s}from"../core/shaderTechnique/ShaderTechnique.js";import{depthWrite as n,depthTest as p,blending as l}from"../lib/OrderIndependentTransparency.js";import{L as c}from"../../../../chunks/LineCallout.glsl.js";import{PrimitiveType as a}from"../../../webgl/enums.js";import{makePipelineState as m,defaultDepthWrite as u,defaultColorWrite as d}from"../../../webgl/renderState.js";let f=class extends s{constructor(e,r){super(e,r,t(h).concat(t(g))),this.shader=new i(c,()=>import("./LineCallout.glsl.js")),this.primitiveType=a.TRIANGLE_STRIP}initializePipeline(e){const{output:r,hudDepth:t}=e;return m(t?{depthTest:{func:513},depthWrite:u}:{blending:l(r,!0),depthTest:p(r),colorWrite:d,depthWrite:n(e)})}};f=e([r("esri.views.3d.webgl-engine.shaders.LineCalloutTechnique")],f);const h=o().vec2u8("uv0",{glNormalized:!0}),g=o().vec3f("position").vec3f("normal").vec3f("centerOffset").f32("groundDistance");export{f as LineCalloutTechnique,h as baseLayout,g as layout};
