tests/shader_runner: Use the common resource_readback structure in d3d9 and d3d11 readback structures.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura
2022-05-17 15:45:38 +02:00
committed by Alexandre Julliard
parent b5e773058c
commit ccdb702d53
4 changed files with 40 additions and 25 deletions

View File

@@ -21,6 +21,7 @@
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
struct vec2
@@ -33,6 +34,15 @@ struct vec4
float x, y, z, w;
};
struct resource_readback
{
uint64_t width;
unsigned int height;
unsigned int depth;
uint64_t row_pitch;
void *data;
};
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;