Commit b577650
Use 0.4 for depth unorm value in depth_compare_func rendering test (#4374)
This PR make depth_compare_func rendering operation test use 0.4 for
depth unrom value instead of 0.5001, which is exactly representable
in both depth16unorm and depth24unorm, and closely approximated
in depth32float.
This can help prevent shaders and depthClearValue get rounded in
different way, and make Qualcomm devices pass the test when using
DXGI_FORMAT_D24_UNORM_S8_UINT format for depth24plus-stencil8.
* Update src/webgpu/api/operation/rendering/depth.spec.ts
Co-authored-by: Kai Ninomiya <kainino1@gmail.com>
---------
Co-authored-by: Kai Ninomiya <kainino1@gmail.com>1 parent 64b4dfc commit b577650
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | | - | |
294 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
295 | 298 | | |
296 | 299 | | |
297 | 300 | | |
| |||
0 commit comments