-
Notifications
You must be signed in to change notification settings - Fork 361
Add bool vector coercion #1362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bool vector coercion #1362
Conversation
| <td>`vec`|N|<`bool`>`(`|e|`)` : vec|N|<bool> | ||
| <td>Component-wise coercion of a unsigned integer vector to a boolean vector.<br> | ||
| Component |i| of the result is `bool(`|e|`[`|i|`])`<br> | ||
| (OpINotEqual to compare |e| against a zero vector.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this line is right given we're doing component wise checks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OpINotEqual operates on vector operands, producing a vector result of the same component count, and "Results are computed per component."
| <td>`vec`|N|<`bool`>`(`|e|`)` : vec|N|<bool> | ||
| <td>Component-wise coercion of a signed integer vector to a boolean vector.<br> | ||
| Component |i| of the result is `bool(`|e|`[`|i|`])`<br> | ||
| (OpINotEqual to compare |e| against a zero vector.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
| <td>`vec`|N|<`bool`>`(`|e|`)` : vec|N|<bool> | ||
| <td>Component-wise coercion of a floating point vector to a boolean vector.<br> | ||
| Component |i| of the result is `bool(`|e|`[`|i|`])`<br> | ||
| (OpFUnordNotEqual to compare |e| against a zero vector.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
|
Doesn't look controversial, merging |
This CL adds unimplemented tests for the `dpdyFine` builtin. Issue: gpuweb#1254
Fixes #1355