Skip to content

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

any

any(value): boolean

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

Returns true if any component of value is true.

AnyBooleanVecInstance

boolean

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