@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 368 B
JavaScript
import{isSome as e}from"../../../../../core/maybe.js";import{BindType as r}from"../shaderTechnique/BindType.js";class i{constructor(i,s,t,a,n=null){this.name=i,this.type=s,this.arraySize=n,this.bind={[r.Pass]:null,[r.Draw]:null},e(t)&&e(a)&&(this.bind[t]=a)}equals(e){return this.type===e.type&&this.name===e.name&&this.arraySize===e.arraySize}}export{i as Uniform};