Swizzling

Definition - What does Swizzling mean?

Swizzling, in the context of computer graphics, is the reordering of vector information in the pixel of an image in order to have it rendered quickly and more efficiently. This is because the swizzling is done in favor of the way that a specific graphics processing unit (GPU) or a CPU reads the pixel information, thereby lessening the overhead. The result is the same image that can be rendered much more quickly.

Techopedia explains Swizzling

Swizzling is achieved by reordering the matrix of values that make up the vector information. It is done because different renderers and graphics processors access data in different ways and in different orders, so swizzling vector information to cater to this special way allows the programmer to use specific instructions that can process data faster. This may also help in organizing the data in memory to allow better use of texture caches. For example, the vector component c1.rgba may be swizzled into c2.abgr to remove a step that a graphics processor might take to reorder the data, making processing faster.

One drawback of swizzling is that it makes it more difficult to access the image data quickly since it has changed dramatically from its original form. So a swizzled image might be faster to process, but it is very difficult to edit after the fact.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值