tests: Replace test_ps_viewport_index() with a shader runner test.

Mainly to allow testing the functionality in question with DXIL shaders
as well.
This commit is contained in:
Conor McCarthy
2024-05-01 14:36:30 +10:00
committed by Henri Verbeet
parent 55fe8df979
commit cd8cea6913
Notes: Henri Verbeet 2025-07-31 15:06:45 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1663
10 changed files with 154 additions and 119 deletions

View File

@@ -130,6 +130,14 @@ struct input_element
unsigned int index;
};
struct viewport
{
float x;
float y;
float width;
float height;
};
#define MAX_RESOURCES 32
#define MAX_SAMPLERS 32
#define DXGI_FORMAT_COUNT (DXGI_FORMAT_B4G4R4A4_UNORM + 1)
@@ -254,6 +262,9 @@ struct shader_runner
enum fog_mode fog_mode;
float fog_start, fog_end, fog_density;
bool ortho_fog;
struct viewport viewports[4];
unsigned int viewport_count;
};
struct shader_runner_ops