mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
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:
committed by
Alexandre Julliard
parent
b5e773058c
commit
ccdb702d53
@@ -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;
|
||||
|
Reference in New Issue
Block a user