Skip to content

not

const not: DualFn<{(value): boolean; <T>(value): T; }>

Defined in: packages/typegpu/src/std/boolean.ts:225

Returns the logical negation of the given value. For booleans returns !value. For boolean vectors, returns component-wise !value.

not(true) // returns false
not(vec3b(true, true, false)) // returns vec3b(false, false, true)