tests/shader-runner: Add tests for 64-bit casts.

This commit is contained in:
Conor McCarthy
2023-11-10 14:48:23 +10:00
committed by Alexandre Julliard
parent 08b8730866
commit 130e7bdf0f
Notes: Alexandre Julliard 2023-11-15 22:58:28 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/459
5 changed files with 137 additions and 5 deletions

View File

@@ -42,11 +42,6 @@ static ID3D10Blob *compile_shader(const char *source, size_t len, const char *pr
return bytecode;
}
struct dvec2
{
double x, y;
};
static bool compare_uint8(uint8_t a, uint8_t b, unsigned int max_diff)
{
return abs(a - b) <= max_diff;