dot4U8Packed
On this page

dot4U8Packed

Function

Reads both u32 arguments as four UNSIGNED bytes and sums the four products into a u32.

The signature and the sentence under each name are the compiler's own text at commit 26de7be8.

Syntax

declare function dot4U8Packed(a0: u32, a1: u32): u32
declare function dot4U8Packed(a: u32, b: u32): u32

Parameters

Return value

u32

Description

WebGPU-only: GLSL ES 3.00 has no form of it, so a module using it emits WGSL alone. The host should check navigator.gpu.wgslLanguageFeatures for packed_4x8_integer_dot_product, which reflect().requiredLanguageFeatures reports.

Targets

WGSL
dot4U8Packed(a, b)
GLSL ES 3.00
dot4U8Packed has no GLSL ES 3.00 form

Examples

See also

Edit this page Report a problem