Skip to content

not

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

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

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)

© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.