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

@@ -28,11 +28,6 @@ struct test_options test_options = {0};
static PFN_D3D12_CREATE_VERSIONED_ROOT_SIGNATURE_DESERIALIZER pfn_D3D12CreateVersionedRootSignatureDeserializer;
static PFN_D3D12_SERIALIZE_VERSIONED_ROOT_SIGNATURE pfn_D3D12SerializeVersionedRootSignature;
struct ivec4
{
int x, y, z, w;
};
struct dvec2
{
double x, y;