attributes

  Source   Edit

Types

Attribute = object
  name*: string
  count*: int16
  dtype*: DataType
  offset*: int16
  location*: int16
  Source   Edit
DataType = enum
  Unknown, Byte = 5120, UByte = 5121, Short = 5122, UShort = 5123, Int = 5124,
  UInt = 5125, Float = 5126, HalfFloat = 5131
  Source   Edit

Procs

proc `[]`(layout: AttributeList; name: string): Attribute {.
    ...raises: [KeyError, ValueError], tags: [].}
  Source   Edit
proc add(layout: var AttributeList; attr: Attribute) {....raises: [], tags: [].}
  Source   Edit
proc contains(layout: AttributeList; name: string): bool {....raises: [], tags: [].}
  Source   Edit
func size(dtype: DataType): int16 {....raises: [], tags: [].}
  Source   Edit
func stride(layout: AttributeList; align: int32 = 4): int32 {....raises: [],
    tags: [].}
  Source   Edit