d3dx9/tests: Add tests for ID3DXBaseEffect::G/SetValue().

This commit is contained in:
Rico Schüller 2012-04-18 09:33:45 +02:00 committed by Alexandre Julliard
parent fcb5b6c32c
commit b09d195bf3
1 changed files with 18 additions and 0 deletions

View File

@ -1695,6 +1695,8 @@ static void test_effect_parameter_value(IDirect3DDevice9 *device)
* effect->lpVtbl->SetMatrixArray(effect, parameter, NULL, res_desc->Elements ? res_desc->Elements : 1);
* effect->lpVtbl->SetMatrixTranspose(effect, parameter, NULL);
* effect->lpVtbl->SetMatrixTransposeArray(effect, parameter, NULL, res_desc->Elements ? res_desc->Elements : 1);
* effect->lpVtbl->GetValue(effect, parameter, NULL, res_desc->Bytes);
* effect->lpVtbl->SetValue(effect, parameter, NULL, res_desc->Bytes);
*/
hr = effect->lpVtbl->SetBool(effect, NULL, bvalue);
ok(hr == D3DERR_INVALIDCALL, "%u - %s: SetBool failed, got %#x, expected %#x\n",
@ -1836,6 +1838,22 @@ static void test_effect_parameter_value(IDirect3DDevice9 *device)
ok(hr == D3DERR_INVALIDCALL, "%u - %s: GetMatrixTransposeArray failed, got %#x, expected %#x\n",
i, res_full_name, hr, D3DERR_INVALIDCALL);
hr = effect->lpVtbl->SetValue(effect, NULL, input_value, res_desc->Bytes);
ok(hr == D3DERR_INVALIDCALL, "%u - %s: SetValue failed, got %#x, expected %#x\n",
i, res_full_name, hr, D3DERR_INVALIDCALL);
hr = effect->lpVtbl->SetValue(effect, parameter, input_value, res_desc->Bytes - 1);
ok(hr == D3DERR_INVALIDCALL, "%u - %s: SetValue failed, got %#x, expected %#x\n",
i, res_full_name, hr, D3DERR_INVALIDCALL);
hr = effect->lpVtbl->GetValue(effect, NULL, input_value, res_desc->Bytes);
ok(hr == D3DERR_INVALIDCALL, "%u - %s: GetValue failed, got %#x, expected %#x\n",
i, res_full_name, hr, D3DERR_INVALIDCALL);
hr = effect->lpVtbl->GetValue(effect, parameter, input_value, res_desc->Bytes - 1);
ok(hr == D3DERR_INVALIDCALL, "%u - %s: GetValue failed, got %#x, expected %#x\n",
i, res_full_name, hr, D3DERR_INVALIDCALL);
test_effect_parameter_value_GetTestGroup(&res[k], effect, &blob[res_value_offset], parameter, i);
/* SetBool */