d3dx9/tests: Add more tests for IsParameterUsed() function.
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:
parent
7b93124e0e
commit
bc655a40ec
dlls/d3dx9_36/tests
|
@ -5937,6 +5937,34 @@ static void test_effect_shared_parameters(IDirect3DDevice9 *device)
|
|||
effect3->lpVtbl->GetFloat(effect3, param, &fvect.x);
|
||||
ok(fvect.x == 0.0f, "Unexpected parameter value %g.\n", fvect.x);
|
||||
|
||||
param = effect1->lpVtbl->GetParameterByName(effect1, NULL, "arr2");
|
||||
ok(!!param, "GetParameterByName failed.\n");
|
||||
ok(!effect3->lpVtbl->IsParameterUsed(effect3, param, "tech0"),
|
||||
"Unexpected IsParameterUsed result.\n");
|
||||
|
||||
param = effect3->lpVtbl->GetParameterByName(effect3, NULL, "arr2");
|
||||
ok(!!param, "GetParameterByName failed.\n");
|
||||
ok(effect3->lpVtbl->IsParameterUsed(effect3, param, "tech0"),
|
||||
"Unexpected IsParameterUsed result.\n");
|
||||
|
||||
param = effect1->lpVtbl->GetParameterByName(effect1, NULL, "vs_arr2");
|
||||
ok(!!param, "GetParameterByName failed.\n");
|
||||
ok(!effect3->lpVtbl->IsParameterUsed(effect3, param, "tech0"),
|
||||
"Unexpected IsParameterUsed result.\n");
|
||||
|
||||
todo_wine
|
||||
ok(effect3->lpVtbl->IsParameterUsed(effect3, "vs_arr2", "tech0"),
|
||||
"Unexpected IsParameterUsed result.\n");
|
||||
todo_wine
|
||||
ok(!effect3->lpVtbl->IsParameterUsed(effect3, "vs_arr2[0]", "tech0"),
|
||||
"Unexpected IsParameterUsed result.\n");
|
||||
todo_wine
|
||||
ok(!effect3->lpVtbl->IsParameterUsed(effect3, "vs_arr2[1]", "tech0"),
|
||||
"Unexpected IsParameterUsed result.\n");
|
||||
|
||||
ok(effect1->lpVtbl->IsParameterUsed(effect1, param, "tech0"),
|
||||
"Unexpected IsParameterUsed result.\n");
|
||||
|
||||
hr = effect3->lpVtbl->Begin(effect3, &passes_count, 0);
|
||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue