对ps4 cmask fmask的理解

这俩都是绑在corlor target上8x8的格子

cmask 做fastclear 

这个比较好理解,8x8来表示这个格子是否clear

fmask msaa用

provided to support bandwidth-saving color compression feature, which eliminates redundant writes of the same color to multiple samples within a single pixel.

避免的是 同一像素不同samples的 同样颜色的冗余写入

我以前以为fmask标记了边缘。。。天呐 看来fmask里面 就是如果这16个像素颜色一样 他就标记下甚至还包含一个pixel的subfragment?

posted on 2016-11-18 18:31  minggoddess  阅读(722)  评论(0编辑  收藏  举报