Commit b09d195b authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

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

parent fcb5b6c3
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment