tests: Test FFP point size.

This commit is contained in:
Elizabeth Figura
2024-10-03 16:23:04 -05:00
committed by Henri Verbeet
parent 3ddf46649b
commit ec53e325b6
Notes: Henri Verbeet 2024-10-10 23:00:15 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1146
7 changed files with 75 additions and 1 deletions

View File

@@ -92,6 +92,18 @@ struct resource_readback
void *data;
};
static inline uint32_t float_to_int(float f)
{
union
{
uint32_t u;
float f;
} u;
u.f = f;
return u.u;
}
static inline bool vkd3d_array_reserve(void **elements, size_t *capacity, size_t element_count, size_t element_size)
{
size_t new_capacity, max_capacity;