Commit d8723657 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

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

parent 4b11a991
......@@ -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);
......
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