> IMO better names might be is_scalar_swizzle or something.

Ah, yes, that would be a better name! is_not_scalar_swizzle in this case
(logic is flipped).

> Can num_components be 1? If so, then this will return false, whereas
> you probably wanted it to return true.

I think that's the correct behaviour...? It should return true if
multiple distinct channels are accessed. For nr_components=1, that's
false by definition.
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to