Module: wine Branch: master Commit: 0a9ad614e62107f882ec6172b026766f94a5f624 URL: https://gitlab.winehq.org/wine/wine/-/commit/0a9ad614e62107f882ec6172b026766...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Sun Feb 25 14:52:42 2024 +0100
d3d10_1/tests: Add a basic test for returned preferred profiles.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com
---
dlls/d3d10_1/tests/d3d10_1.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/dlls/d3d10_1/tests/d3d10_1.c b/dlls/d3d10_1/tests/d3d10_1.c index 75b01c89903..ad7aaeb0dc4 100644 --- a/dlls/d3d10_1/tests/d3d10_1.c +++ b/dlls/d3d10_1/tests/d3d10_1.c @@ -1039,6 +1039,20 @@ static void test_fx_4_1_blend_state(void) ok(!refcount, "Device has %lu references left.\n", refcount); }
+static void test_shader_profiles(void) +{ + const char *profile; + + profile = D3D10GetVertexShaderProfile(NULL); + ok(!strcmp(profile, "vs_4_0"), "Unexpected profile %s.\n", profile); + + profile = D3D10GetGeometryShaderProfile(NULL); + ok(!strcmp(profile, "gs_4_0"), "Unexpected profile %s.\n", profile); + + profile = D3D10GetPixelShaderProfile(NULL); + ok(!strcmp(profile, "ps_4_0"), "Unexpected profile %s.\n", profile); +} + START_TEST(d3d10_1) { test_create_device(); @@ -1047,4 +1061,5 @@ START_TEST(d3d10_1) test_create_blend_state(); test_getdc(); test_fx_4_1_blend_state(); + test_shader_profiles(); }