- Preparing search index...
- The search index is not available
webgpu-utils
Class TypedArrayWrapper<T>
Constructors
constructor
- new TypedArrayWrapper<T>(arr, numComponents): TypedArrayWrapper<T>
-
Parameters
-
arr: T
-
numComponents: number
Properties
cursor
cursor: number = 0
numComponents
numComponents: number
Accessors
numElements
- get numElements(): number
-
Returns number
Methods
push
- push(...data): void
-
Parameters
-
Rest
...data: (number | Iterable<number>)[]
Returns void
reset
- reset(index?): void
-
Returns void
A class to provide
push
on a typed array.example: