Skip to main content

AttributeGroupSpec

Classes

AttributeGroupSpec

Describes a set of data attributes. A good analogy would be "all data associated with geometry vertex"

Constants

RESERVED_HASH : number

AttributeGroupSpec

Describes a set of data attributes. A good analogy would be "all data associated with geometry vertex"

Kind: global class

attributeGroupSpec.attributes : Array.<AttributeSpec>

Kind: instance property of AttributeGroupSpec
Read only: true

attributeGroupSpec.isAttributeGroupSpec : boolean

Kind: instance property of AttributeGroupSpec
Read only: true

attributeGroupSpec.getAttributeByName(name) ⇒ AttributeSpec | undefined

Kind: instance method of AttributeGroupSpec

ParamType
namestring

attributeGroupSpec.getAttributeIndexByName(name) ⇒ number

Kind: instance method of AttributeGroupSpec
Returns: number - -1 if not found

ParamType
namestring

attributeGroupSpec.addMany(attributes)

Kind: instance method of AttributeGroupSpec
Throws:

  • Error if any there are any name collisions
ParamType
attributesArray.<AttributeSpec>

attributeGroupSpec.add(attribute) ⇒ AttributeGroupSpec

Kind: instance method of AttributeGroupSpec
Throws:

  • Error if attribute with that name is already present
ParamType
attributeAttributeSpec

attributeGroupSpec.setAttributes(attributes)

Replace existing attributes

Kind: instance method of AttributeGroupSpec

ParamType
attributesArray.<AttributeSpec>

attributeGroupSpec.equals(other) ⇒ boolean

Kind: instance method of AttributeGroupSpec

ParamType
otherAttributeGroupSpec

attributeGroupSpec.getByteSize() ⇒ number

Size of a single element of all attributes.

Kind: instance method of AttributeGroupSpec
Example

2 attributes float32 and uin8 will produce result of 5 ( = (32 + 8) / 8 )

AttributeGroupSpec.from(...attributes) ⇒ AttributeGroupSpec

Kind: static method of AttributeGroupSpec

ParamType
...attributesAttributeSpec

RESERVED_HASH : number

Kind: global constant
Read only: true