This patch translates an int8x4 into a u32 in WGSL shaders as 8-bit integers are not supported in WebGPU right now and the WGSL built-in function dot4I8Packed() accepts u32 as its inputs and each of the u32 value logically represents a 4-element 8-bit integer vector.
This patch translates an
int8x4
into au32
in WGSL shaders as 8-bit integers are not supported in WebGPU right now and the WGSL built-in functiondot4I8Packed()
acceptsu32
as its inputs and each of theu32
value logically represents a 4-element 8-bit integer vector.issue: #16627