mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Move HLSL tests to a subdirectory.
This commit is contained in:
committed by
Alexandre Julliard
parent
69f32796b0
commit
0d2f2e1860
Notes:
Alexandre Julliard
2023-06-28 23:04:19 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/248
21
tests/hlsl/minimum-precision.shader_test
Normal file
21
tests/hlsl/minimum-precision.shader_test
Normal file
@@ -0,0 +1,21 @@
|
||||
[require]
|
||||
shader model >= 4.0
|
||||
|
||||
|
||||
[pixel shader]
|
||||
float4 main() : sv_target
|
||||
{
|
||||
min16float4 a = {0, 1, 2, 3};
|
||||
min10float2 b = {4, 5};
|
||||
min16int3 c = {6.4, 7, 8};
|
||||
min12int d = 9.4;
|
||||
min16uint4x2 e = {14.4, 15, 16, 17, 18, 19, 20, 21};
|
||||
vector<min10float, 3> g = {22, 23, 24};
|
||||
matrix<min16uint, 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 all rgba (197.0, 218.0, 238.0, 257.0)
|
Reference in New Issue
Block a user