mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
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:
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
@@ -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
|
||||
|
Reference in New Issue
Block a user