1import UniformAttribute from 'webgl/uniform_attribute' 2 3export default class AttributeMap { 4 5 constructor(pipeline, map) { 6 this.pipeline = pipeline 7 this.attributes = [] 8 9 this.add(map) 10 } 11 12 active() { 13 return this.attributes.filter((attribute) => attribute.active) 14 } 15 16 add(map) { 17 Object.entries(map).forEach(([name, value]) => { 18 const attribute = new UniformAttribute(this.pipeline, name, value) 19 this.attributes.push(attribute) 20 this[name] = attribute 21 }) 22 } 23 24}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.