tests: Read integer uniforms with strtol() and strtoul().

Because %i sscanf() converters are deprecated, and in practice
clamp to [-2^31, 2^31) on 32 bit.
This commit is contained in:
Giovanni Mascellani
2023-03-17 12:35:13 +01:00
committed by Alexandre Julliard
parent eb71c5f20d
commit 9a27df3a8c
Notes: Alexandre Julliard 2023-04-03 22:09:37 +02:00
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/129
3 changed files with 70 additions and 14 deletions

View File

@@ -35,6 +35,11 @@ struct vec4
float x, y, z, w;
};
struct ivec4
{
int x, y, z, w;
};
struct uvec4
{
unsigned int x, y, z, w;