请输入您要查询的百科知识:

 

词条 Swizzling (computer graphics)
释义

  1. See also

  2. References

  3. External links

In computer graphics, swizzling means rearranging the elements of a vector.[1] For example, if A = {1,2,3,4}, where the components are x, y, z, and w respectively, you could compute B = A.wwxy, whereupon B would equal {4,4,1,2}. This is common in GPGPU applications{{Examples|date=March 2010}}.

In terms of linear algebra, this is equivalent to multiplying by a matrix whose rows are standard basis vectors. If , then swizzling as above looks like

.

See also

  • morton order

References

1. ^{{cite web | url=http://www.cs.uaf.edu/2005/fall/cs301/support/glfp/ | title=OpenGL ARB_fragment_program Quick Reference ("Cheat Sheet") | publisher=University of Alaska Fairbanks | accessdate=21 January 2014 | author=Lawlor, Orion}}

External links

  • OpenGL Vertex Program documentation
{{Compu-graphics-stub}}

1 : Computer graphics

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/12 12:01:06