le
constle:DualFn<<T>(lhs,rhs) =>ToBool<ToBool<T>>>
Defined in: packages/typegpu/src/std/boolean.ts:143
Checks component-wise whether lhs <= rhs.
This function does not return bool, for that use-case, wrap the result in all.
Example
Section titled βExampleβle(vec2f(0.0, 0.0), vec2f(0.0, 1.0)) // returns vec2b(true, true)le(vec3u(0, 1, 2), vec3u(2, 1, 0)) // returns vec3b(true, true, false)all(le(vec4i(1, 2, 3, 4), vec4i(2, 3, 3, 5))) // returns true