File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -109,12 +109,20 @@ Mobile没人权也不是一天两天了。
109
109
# VRS的特殊情景下的处理
110
110
111
111
## PixelShader Modify Depth:
112
+
113
+ ### Nvidia: 可以用
112
114
NV的文档里提了这种情况, 注意最后一行
113
115
114
116
[ Advanced API Performance: Variable Rate Shading | NVIDIA Technical Blog] ( https://developer.nvidia.com/blog/advanced-api-performance-variable-rate-shading/ )
115
117
116
118
Do not modify the output depth value from the pixel shader. If the pixel shader modifies depth, VRS is automatically disabled.
117
119
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
+
118
126
## Pixel Shader With Clip
119
127
这个虚幻的注释里留了一点线索。
120
128
如果VRS着色的像素clip了,会直接丢弃一个block的像素,造成肉眼可见的闪烁
You can’t perform that action at this time.
0 commit comments