3 ms·
I’m seeing a lot of versions of the correct logic under this comment, so here’s mine! if((mask & WGPUColorWriteMask_Alpha) && (mask & WGPUColorWriteMask_Bl
by DecoPerson 4y ago
I’m seeing a lot of versions of the correct logic under this comment, so here’s mine!
if((mask & WGPUColorWriteMask_Alpha) && (mask & WGPUColorWriteMask_Blue)) { //… }
This is the least confusing form I’ve seen that doesn’t require a function, macro, custom operator, etc.