mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
tests/hlsl: Add a numeric types 16-bit test.
This commit is contained in:
committed by
Henri Verbeet
parent
49a683f260
commit
1b7340a6ed
Notes:
Henri Verbeet
2025-02-10 13:34:32 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1368
@ -100,3 +100,26 @@ float4 main() : sv_target
|
|||||||
13.0, 14.0, 15.0);
|
13.0, 14.0, 15.0);
|
||||||
return m[1];
|
return m[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[require]
|
||||||
|
shader model >= 6.2
|
||||||
|
native-16-bit
|
||||||
|
|
||||||
|
[pixel shader]
|
||||||
|
float4 main() : sv_target
|
||||||
|
{
|
||||||
|
half4 a = {0, 1, 2, 3};
|
||||||
|
half2 b = {4, 5};
|
||||||
|
int16_t3 c = {6.4, 7, 8};
|
||||||
|
int16_t d = 9.4;
|
||||||
|
uint16_t4x2 e = {14.4, 15, 16, 17, 18, 19, 20, 21};
|
||||||
|
vector<half, 3> g = {22, 23, 24};
|
||||||
|
matrix<uint16_t, 3, 2> h = {25.4, 26, 27, 28, 29, 30};
|
||||||
|
|
||||||
|
return mul(e, b) + a + c.xyzx + d + g.xxyz + h[2].xyxy;
|
||||||
|
}
|
||||||
|
|
||||||
|
[test]
|
||||||
|
draw quad
|
||||||
|
probe (0, 0) rgba (197.0, 218.0, 238.0, 257.0)
|
||||||
|
Reference in New Issue
Block a user