menu

shuffle

import { shuffle } from "destack:math";

Shuffle vector lanes.

Rearranges elements from two input vectors according to a mask. Each element in the result comes from either a or b as specified by the mask.

language/library/src/math/vector.ds:42:45
1export declare function shuffle<T, const N: usize, const M: usize, const Pattern: [uint32; M]>(a: Vector<T, N>, b: Vector<T, N>): Vector<T, M>