/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../../chunks/_rollupPluginBabelHelpers","../../../../../core/maybe","../../../../../chunks/vec2","../../../../../chunks/vec2f64","./Float2DrawUniform","./Uniform","../shaderTechnique/BindType"],(function(e,r,n,t,i,o,s,u){"use strict";let c=function(e){function n(r,n){return e.call(this,r,"sampler2D",u.BindType.Draw,((e,t,i)=>e.bindTexture(r,n(t,i))))||this}return r._inheritsLoose(n,e),n}(s.Uniform);function a(e,r,s){const u=[new c(e,r)];if(s){const s=e+"Size";u.push(new o.Float2DrawUniform(s,((e,o)=>{const s=r(e,o);return n.isSome(s)?t.set(l,s.descriptor.width,s.descriptor.height):i.ZEROS})))}return u}const l=i.create();e.Texture2DDrawUniform=c,e.createTexture2DDrawSizeUniforms=a,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
