mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests/hlsl: Add tests for SV_Depth.
This commit is contained in:
committed by
Alexandre Julliard
parent
dbe3c00a77
commit
b68a9ae3ec
Notes:
Alexandre Julliard
2024-04-19 22:27:07 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/777
35
tests/hlsl/depth-out.shader_test
Normal file
35
tests/hlsl/depth-out.shader_test
Normal file
@@ -0,0 +1,35 @@
|
||||
[require]
|
||||
shader model >= 4.0
|
||||
|
||||
[dsv]
|
||||
size (2d, 640, 480)
|
||||
|
||||
[pixel shader]
|
||||
float depth;
|
||||
|
||||
float main() : SV_Depth
|
||||
{
|
||||
return depth;
|
||||
}
|
||||
|
||||
[test]
|
||||
uniform 0 float 0.0
|
||||
clear dsv 1.0
|
||||
depth less
|
||||
todo(sm>=6 | glsl) draw quad
|
||||
probe dsv all r (0.0)
|
||||
|
||||
uniform 0 float 0.75
|
||||
clear dsv 1.0
|
||||
todo(sm>=6 | glsl) draw quad
|
||||
probe dsv all r (0.75)
|
||||
|
||||
clear dsv 0.5
|
||||
depth greater
|
||||
todo(sm>=6 | glsl) draw quad
|
||||
probe dsv all r (0.75)
|
||||
|
||||
depth less
|
||||
clear dsv 0.5
|
||||
todo(sm>=6 | glsl) draw quad
|
||||
probe dsv all r (0.5)
|
Reference in New Issue
Block a user