Class that encapsulates a single i8 value.

Note

type does not exist in WGSL yet

Hierarchy

  • I8Value

Constructors

Properties

Methods

Constructors

Properties

bits: number
type: ScalarType = Type.i8
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