Used to compute alignment when dealing with arrays of Struct

Hierarchy (View Summary)

Constructors

Properties

arrayLength: number

Initial length of the input buffer binding array

numElements: number

Total number of elements (i.e. arrayLength divided by buffer layout number of elements

arrayStride: number

Number of bytes in the ArrayBuffer between two elements startOffset

name: string

The name of the BufferElement

type: string

The WGSL variable type of the BufferElement (stripped of array).

baseType: string

The WGSL base variable type of the BufferElement (stripped of array and atomic).

key: string

The key of the BufferElement

bufferLayout: BufferLayout

BufferLayout used to fill the buffer binding array at the right offsets

Object defining exactly at which place a binding should be inserted into the buffer binding array

view?: TypedArray

Array containing the BufferElement values

setValue: (value: InputValue) => void

Function assigned to set the view values

viewSetFunction: DataViewSetFunction

Corresponding DataView set function based on view type

Accessors

Methods