[v2 4/5] d3dx9/tests: Add more tests for skip_constants effect parameter.

Paul Gofman gofmanp at gmail.com
Tue Jul 11 06:27:00 CDT 2017


Signed-off-by: Paul Gofman <gofmanp at gmail.com>
---
v2:
    - added patch.
---
 dlls/d3dx9_36/tests/effect.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/d3dx9_36/tests/effect.c b/dlls/d3dx9_36/tests/effect.c
index 5cf899f..9658d2d 100644
--- a/dlls/d3dx9_36/tests/effect.c
+++ b/dlls/d3dx9_36/tests/effect.c
@@ -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);
-- 
2.9.4




More information about the wine-patches mailing list