小方块闪烁

采样depth target,做ao 

blit depth target is needed 

or there will be  8x8 pixel blocks flip

blit tex 是cs实现的一次copy from rendertarget to texture

then we can sample texture

----------------------------

这个问题是这样的 我们在前面做了一种优化,在不需要采样depthtarget的地方关掉 blit depth这样可以提升效率

但不知道什么原因 ,这一行为不符合预期 经常无法实现。就是说虽然我们调用了引擎blit depth那部分代码。

但是采样depth会看到(razor)depth tex在闪

-------------------------------

是因为,phyre之前每次都有resolve ,(也就每次都FLUSH?) 所以没有问题,

被我们优化后,没有flush depth target,flush 一下就可以了。之前我被waitForGraphicsWrites坑过一次。flush 里面就是wait

===================

flush 那个问题存疑 biltDepth 导致这个问题比较确定

原文地址:https://www.cnblogs.com/minggoddess/p/5334216.html