tests: Allow specifying a custom input layout.

Signed-off-by: Zebediah Figura <zfigura@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-03-21 20:42:16 -05:00
committed by Alexandre Julliard
parent 16b383aef5
commit 3ed4c6fe23
4 changed files with 124 additions and 15 deletions

View File

@@ -68,6 +68,15 @@ struct texture
unsigned int slot;
};
struct input_element
{
char *name;
unsigned int slot;
DXGI_FORMAT format;
unsigned int texel_size;
unsigned int index;
};
struct shader_runner
{
const struct shader_runner_ops *ops;
@@ -84,6 +93,9 @@ struct shader_runner
struct sampler *samplers;
size_t sampler_count;
struct input_element *input_elements;
size_t input_element_count, input_element_capacity;
};
struct shader_runner_ops