Talk:Swizzling (computer graphics)

Latest comment: 10 years ago by 92.77.211.90 in topic permutation?

Not only in graphics

edit

The term swizzle is not exclusive to graphics. ¤ ehudshapira 16:42, 3 September 2007 (UTC)Reply

But what is this *for*?

edit

Someone please add a section explaining why swizzling is needed, and what it does practically, rather than just mathematically. Under what circumstances would a programmer use it? 81.158.2.229 (talk) 15:27, 5 May 2008 (UTC)Reply

I agree that the article poorly explains the common use of swizzling, so I've added an examples needed tag. There are two reasons for the poor explanation:
  1. In GPGPU programming, "swizzling" also includes selecting some components in isolation, without rearrangement. For example, I can extract the RGB components of a 4-D vector representing an RGBA colour by using "vec3 rgbColour = colour.rgb". This is indeed very common.
  2. The use of swizzling via rearrangement is rather useless on its own. However, it can facilitate optimisations. For examples, see this page.
Hopefully someone gets around to clarifying all this in the article. C xong (talk) 01:13, 4 March 2010 (UTC)Reply

permutation?

edit

That's not a permutation matrix. Permutations are bijective.--92.77.211.90 (talk) 13:27, 5 May 2014 (UTC)Reply