Class that encapsulates a single u16 value.

Note

type does not exist in WGSL yet

Hierarchy

  • U16Value

Constructors

Properties

Methods

Constructors

Properties

type: ScalarType = Type.u16
value: number

Methods

  • Copies the scalar value to the buffer at the provided byte offset.

    Parameters

    • buffer: Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float16Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array

      the destination buffer

    • offset: number

      the offset in buffer, in units of buffer

    Returns void

Generated using TypeDoc