d3dx9/tests: Add more tests for skip_constants effect parameter.

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2017-07-11 14:27:00 +03:00 committed by Alexandre Julliard
parent 4b11a99108
commit d8723657d2
1 changed files with 5 additions and 0 deletions

View File

@ -6924,6 +6924,9 @@ static void test_effect_skip_constants(IDirect3DDevice9 *device)
hr = D3DXCreateEffectEx(device, test_effect_skip_constants_blob, sizeof(test_effect_skip_constants_blob),
NULL, NULL, "v4", 0, NULL, &effect, NULL);
ok(hr == D3DERR_INVALIDCALL, "Got result %#x.\n", hr);
hr = D3DXCreateEffectEx(device, test_effect_skip_constants_blob, sizeof(test_effect_skip_constants_blob),
NULL, NULL, "v1;v5;v4", 0, NULL, &effect, NULL);
ok(hr == D3DERR_INVALIDCALL, "Got result %#x.\n", hr);
hr = D3DXCreateEffectEx(device, test_effect_skip_constants_blob, sizeof(test_effect_skip_constants_blob),
NULL, NULL, " v1#,.+-= &\t\nv2*/!\"'v5 v6[1]", 0, NULL, &effect, NULL);
@ -6939,6 +6942,8 @@ static void test_effect_skip_constants(IDirect3DDevice9 *device)
"Unexpected IsParameterUsed result.\n");
ok(!effect->lpVtbl->IsParameterUsed(effect, "v5", "tech0"),
"Unexpected IsParameterUsed result.\n");
ok(!effect->lpVtbl->IsParameterUsed(effect, "v6", "tech0"),
"Unexpected IsParameterUsed result.\n");
hr = effect->lpVtbl->SetFloat(effect, "v1", 28.0f);
ok(hr == D3D_OK, "Got result %#x.\n", hr);