@thi.ng/shader-ast-js
Version:
Customizable JS codegen, compiler & runtime for @thi.ng/shader-ast
24 lines (23 loc) • 440 B
JavaScript
import { every2, every3, every4 } from "@thi.ng/vectors/every";
import { not2, not3, not4 } from "@thi.ng/vectors/not";
import { some2, some3, some4 } from "@thi.ng/vectors/some";
const BVEC2 = {
all: every2,
any: some2,
not: (v) => not2([], v)
};
const BVEC3 = {
all: every3,
any: some3,
not: (v) => not3([], v)
};
const BVEC4 = {
all: every4,
any: some4,
not: (v) => not4([], v)
};
export {
BVEC2,
BVEC3,
BVEC4
};