Better HN
topnewbestaskshowjobs
Log inSign up

inhahe

2 karma · joined Aug 27, 2019 (7y ago) · 2 submissions

Submissions

comment 5mo ago · link · parent

And in my experience with AI doing personal projects, 10x as fast probably understates it by at least an order of magnitude.

comment 4y ago · link · parent

"WGPUColorWriteMask_Alpha|WGPUColorWriteMask_Blue" creates a number with both the alpha and blue bits set, then "mask &" (that number) ands the mask with that number in which both bits are set, so it'll only return true if both alpha and blue are set. The parenthetical grouping of the operators is key here.

edit: oh, i think i'm wrong, nevermind.