-
Notifications
You must be signed in to change notification settings - Fork 193
Conversation
@gents83 I've updated a mistake from a previous comment to avoid confusion, In the case of |
Actually that's not quite right either, since |
It should be lsb except when zero, right? 0...0001 = 0 Sounds correct? |
Sounds correct, so
|
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master gfx-rs/naga#2243 +/- ##
==========================================
+ Coverage 82.02% 82.04% +0.02%
==========================================
Files 80 80
Lines 43161 43246 +85
==========================================
+ Hits 35401 35481 +80
- Misses 7760 7765 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Thanks for the PR, the logic looks good!
Left a few comments regarding a few bitcasts.
Also, @evahop, thanks for helping out with this PR! |
Tnx for precious suggestions! |
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.
HLSL backend looks good now.
I noticed that the spv backend is not generating what it should.
I also opened #2258 to fix the countLeadingZeros
impl which is not working properly for the same reasons.
with suggestion of @teoxoy Co-authored-by: Teodor Tanasoaia <[email protected]>
with suggestion of @teoxoy Co-authored-by: Teodor Tanasoaia <[email protected]>
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.
Looks good!
Adds countTrailingZeros from gfx-rs/wgpu#4402
Use lsb or ctz.
It uses:
PS: It's my first integration in Naga, so please double check it carefully :)