mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Store samplers in a fixed-size array.
We will need to allocate some structures in the Vulkan backend; this is easier if we don't need to worry about allocating them dynamically. 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:
committed by
Alexandre Julliard
parent
e208d87847
commit
3e8b5a9fc3
@@ -88,6 +88,7 @@ struct input_element
|
||||
};
|
||||
|
||||
#define MAX_RESOURCES 32
|
||||
#define MAX_SAMPLERS 32
|
||||
|
||||
struct shader_runner
|
||||
{
|
||||
@@ -103,7 +104,7 @@ struct shader_runner
|
||||
struct resource *resources[MAX_RESOURCES];
|
||||
size_t resource_count;
|
||||
|
||||
struct sampler *samplers;
|
||||
struct sampler samplers[MAX_SAMPLERS];
|
||||
size_t sampler_count;
|
||||
|
||||
struct input_element *input_elements;
|
||||
|
Reference in New Issue
Block a user