mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests/hlsl: Test minimum precision floating point numbers.
This commit is contained in:
committed by
Henri Verbeet
parent
1496ddc52f
commit
6a699d2872
Notes:
Henri Verbeet
2025-05-27 21:09:11 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1514
@@ -22,6 +22,26 @@ uniform 0 float 10.0
|
|||||||
draw quad
|
draw quad
|
||||||
probe (0, 0) rgba (10.0, 10.0, 10.0, 10.0)
|
probe (0, 0) rgba (10.0, 10.0, 10.0, 10.0)
|
||||||
|
|
||||||
|
[require]
|
||||||
|
shader model >= 4.0
|
||||||
|
|
||||||
|
[pixel shader]
|
||||||
|
uniform float4 f;
|
||||||
|
|
||||||
|
float4 main() : sv_target
|
||||||
|
{
|
||||||
|
min16float4 h = f;
|
||||||
|
return h * min16float4(h[1], 2.0, 0.5, -0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
[test]
|
||||||
|
uniform 0 float4 0.0 0.0 0.0 0.0
|
||||||
|
draw quad
|
||||||
|
probe (0, 0) rgba(0.0, 0.0, 0.0, 0.0)
|
||||||
|
uniform 0 float4 3.0 5.0 -0.2 -10.0
|
||||||
|
draw quad
|
||||||
|
probe (0, 0) rgba(15.0, 10.0, -0.1, 5.0) 4096
|
||||||
|
|
||||||
[require]
|
[require]
|
||||||
shader model >= 6.2
|
shader model >= 6.2
|
||||||
native-16-bit
|
native-16-bit
|
||||||
|
Reference in New Issue
Block a user