Skip to content

Sign up to be notified when the ShaderHunt platform is available, along with interactive examples teaching TypeGPU from the ground up.

not

not<T>(value): T

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

Returns component-wise !value.

T extends AnyBooleanVecInstance

T

T

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