tests: Add a test for sampling from nonzero mipmap levels.

This commit is contained in:
Zebediah Figura
2023-04-30 19:27:58 -05:00
committed by Alexandre Julliard
parent e3eb4fc5eb
commit 4ec60707e2
Notes: Alexandre Julliard 2023-05-08 22:34:30 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/191
8 changed files with 54 additions and 3 deletions

View File

@@ -116,6 +116,7 @@ static void parse_require_directive(struct shader_runner *runner, const char *li
static const char *const model_strings[] =
{
[SHADER_MODEL_2_0] = "2.0",
[SHADER_MODEL_3_0] = "3.0",
[SHADER_MODEL_4_0] = "4.0",
[SHADER_MODEL_4_1] = "4.1",
[SHADER_MODEL_5_0] = "5.0",
@@ -747,6 +748,7 @@ static void compile_shader(struct shader_runner *runner, const char *source, siz
static const char *const shader_models[] =
{
[SHADER_MODEL_2_0] = "4_0",
[SHADER_MODEL_3_0] = "4_0",
[SHADER_MODEL_4_0] = "4_0",
[SHADER_MODEL_4_1] = "4_1",
[SHADER_MODEL_5_0] = "5_0",