Skip to content

Commit dc84533

Browse files
committed
update shading rate limit
1 parent 0c1bc99 commit dc84533

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

content/post/UE/UE_Variable_Shading_Rate.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,20 @@ Mobile没人权也不是一天两天了。
109109
# VRS的特殊情景下的处理
110110

111111
## PixelShader Modify Depth:
112+
113+
### Nvidia: 可以用
112114
NV的文档里提了这种情况, 注意最后一行
113115

114116
[Advanced API Performance: Variable Rate Shading | NVIDIA Technical Blog](https://developer.nvidia.com/blog/advanced-api-performance-variable-rate-shading/)
115117

116118
Do not modify the output depth value from the pixel shader. If the pixel shader modifies depth, VRS is automatically disabled.
117119

120+
### AMD: VRS Tier2 不能用
121+
122+
在AMD显卡上测试得时候发现了问题,材质连了`PixelDepthOffSet`后,开着VRS Tier2的话会出现奇怪的像素pattern,用renderdoc抓帧发现会出现有部分像素ZDepth Test不过。用VRS Tier1没有问题,恐怕还是个驱动问题..
123+
124+
最后只有在启用了PixelDepthOffset的材质上禁用VRS Tier2来解决兼容性问题(通过设置VRS Combinar可以只选择来自管线的Shading Rate,忽略来自Image的Shading Rate,需要改点引擎代码)。
125+
118126
## Pixel Shader With Clip
119127
这个虚幻的注释里留了一点线索。
120128
如果VRS着色的像素clip了,会直接丢弃一个block的像素,造成肉眼可见的闪烁

0 commit comments

Comments
 (0)