mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-05 21:21:06 +00:00
25 lines
1003 B
Markdown
25 lines
1003 B
Markdown
## GreaterThanEqual
|
|
Perform a component-wise greater-than-or-equal comparison of two vectors
|
|
|
|
### Declaration
|
|
```glsl
|
|
bvec2 greaterThanEqual(vec2 x, vec2 y)
|
|
bvec3 greaterThanEqual(vec3 x, vec3 y)
|
|
bvec4 greaterThanEqual(vec4 x, vec4 y)
|
|
|
|
bvec2 greaterThanEqual(ivec2 x, ivec2 y)
|
|
bvec3 greaterThanEqual(ivec3 x, ivec3 y)
|
|
bvec4 greaterThanEqual(ivec4 x, ivec4 y)
|
|
```
|
|
|
|
### Parameters
|
|
```x``` specifies the first vector to be used in the comparison operation.
|
|
|
|
```y``` specifies the second vector to be used in the comparison operation.
|
|
|
|
### Description
|
|
```greaterThanEqual()``` returns a boolean vector in which each element ```i``` is computed as ```x[i] ≥ y[i]```.
|
|
|
|
### See Also
|
|
[lessThanEqual()](/glossary/?search=lessThanEqual), [lessThan()](/glossary/?search=lessThan), [greaterThan()](/glossary/?search=greaterThan), [equal()](/glossary/?search=equal), [notEqual()](/glossary/?search=notEqual), [any()](/glossary/?search=any), [all()](/glossary/?search=all), [not()](/glossary/?search=not)
|