Constructors
constructor
- new ScalarType(kind, size, signed, read): ScalarType
Parameters
size: number
signed: boolean
read: ((buf, offset) => ScalarValue)
- (buf, offset): ScalarValue
Parameters
buf: Uint8Array
offset: number
Properties
Readonly
_signed
_signed: boolean
Readonly
_size
_size: number
Readonly
read
Type declaration
- (buf, offset): ScalarValue
Parameters
buf: Uint8Array
offset: number
Accessors
alignment
- get alignment(): number
Returns number
signed
- get signed(): boolean
Returns boolean
size
- get size(): number
Returns number
width
- get width(): number
Returns number
Methods
requiresF16
- requiresF16(): boolean
Returns boolean
toString
- toString(): string
Returns string
ScalarType describes the type of WGSL Scalar.