mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-11 13:10:57 +00:00
25 lines
1017 B
Markdown
25 lines
1017 B
Markdown
|
## NotEqual
|
||
|
Perform a component-wise not-equal-to comparison of two vectors
|
||
|
|
||
|
### Các phiên bản
|
||
|
```glsl
|
||
|
bvec2 notEqual(vec2 x, vec2 y)
|
||
|
bvec3 notEqual(vec3 x, vec3 y)
|
||
|
bvec4 notEqual(vec4 x, vec4 y)
|
||
|
|
||
|
bvec2 notEqual(ivec2 x, ivec2 y)
|
||
|
bvec3 notEqual(ivec3 x, ivec3 y)
|
||
|
bvec4 notEqual(ivec4 x, ivec4 y)
|
||
|
```
|
||
|
|
||
|
### Các tham số
|
||
|
```x``` specifies the first vector to be used in the comparison operation.
|
||
|
|
||
|
```y``` specifies the second vector to be used in the comparison operation.
|
||
|
|
||
|
### Mô tả
|
||
|
```notEqual()``` returns a boolean vector in which each element ```i``` is computed as ```x[i] != y[i]```.
|
||
|
|
||
|
### Tham khảo thêm
|
||
|
[lessThanEqual()](/glossary/?lan=vi&search=lessThanEqual), [lessThan()](/glossary/?lan=vi&search=lessThan), [greaterThanEqual()](/glossary/?lan=vi&search=greaterThanEqual), [greaterThan()](/glossary/?lan=vi&search=greaterThan), [equal()](/glossary/?lan=vi&search=equal), [any()](/glossary/?lan=vi&search=any), [all()](/glossary/?lan=vi&search=all), [not()](/glossary/?lan=vi&search=not)
|