mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
tests/hlsl: Add a conditional 16-bit test.
This commit is contained in:
committed by
Henri Verbeet
parent
36f9510bb3
commit
67d8cf744c
Notes:
Henri Verbeet
2025-02-19 18:02:57 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1375
@@ -275,3 +275,28 @@ probe (0, 0) rgba (1.0, 0.0, 0.0, 4.0)
|
||||
uniform 0 float 0
|
||||
todo(msl) draw quad
|
||||
probe (0, 0) rgba (1.0, 1.0, 0.0, 4.0)
|
||||
|
||||
% Test 16-bit phi instructions.
|
||||
[require]
|
||||
shader model >= 6.2
|
||||
native-16-bit
|
||||
|
||||
[pixel shader]
|
||||
Texture2D<half4> tex;
|
||||
float a;
|
||||
|
||||
half4 main() : sv_target
|
||||
{
|
||||
if (a >= 2)
|
||||
return tex.Load(int3(0, 0, 0));
|
||||
else
|
||||
return half(a);
|
||||
}
|
||||
|
||||
[test]
|
||||
uniform 0 float 2
|
||||
draw quad
|
||||
probe (0, 0) rgba(0.0, 0.0, 0.0, 4.0)
|
||||
uniform 0 float 1
|
||||
draw quad
|
||||
probe (0, 0) rgba(1.0, 1.0, 1.0, 1.0)
|
||||
|
Reference in New Issue
Block a user