/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
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 s}from"../core/shaderTechnique/ReloadableShader.js";import{ShaderTechnique as i}from"../core/shaderTechnique/ShaderTechnique.js";import{L as n}from"../../../../chunks/LineCallout.glsl.js";import{makePipelineState as l,defaultDepthWrite as c,defaultColorWrite as p,separateBlendingParams as a}from"../../../webgl/renderState.js";let u=class extends i{constructor(e,r){super(e,r,t(f)),this.shader=new s(n,()=>import("./LineCallout.glsl.js"))}initializePipeline(e){const{hudDepth:r,terrainDepthTest:t}=e,o={func:t?519:513};return l(r?{depthTest:o,depthWrite:c}:{blending:a(1,770,771,771),depthTest:o,colorWrite:p})}};u=e([r("esri.views.3d.webgl-engine.shaders.LineCalloutTechnique")],u);const f=o().vec3f("position").vec3f("normal").vec2f16("uv0").vec4f("centerOffsetAndDistance");export{u as LineCalloutTechnique,f as layout};
