mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
tests: Add a test for compute thread IDs.
This commit is contained in:
committed by
Alexandre Julliard
parent
404a2d6a3d
commit
809a43f06b
Notes:
Alexandre Julliard
2023-01-25 22:44:06 +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/64
@ -35,6 +35,11 @@ struct vec4
|
||||
float x, y, z, w;
|
||||
};
|
||||
|
||||
struct uvec4
|
||||
{
|
||||
unsigned int x, y, z, w;
|
||||
};
|
||||
|
||||
struct resource_readback
|
||||
{
|
||||
uint64_t width;
|
||||
@ -97,6 +102,11 @@ static bool compare_float(float f, float g, unsigned int ulps)
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline bool compare_uvec4(const struct uvec4 *v1, const struct uvec4 *v2)
|
||||
{
|
||||
return v1->x == v2->x && v1->y == v2->y && v1->z == v2->z && v1->w == v2->w;
|
||||
}
|
||||
|
||||
static inline bool compare_vec4(const struct vec4 *v1, const struct vec4 *v2, unsigned int ulps)
|
||||
{
|
||||
return compare_float(v1->x, v2->x, ulps)
|
||||
|
Reference in New Issue
Block a user