d3dx9/tests: Check pixel shader sampler states in test_effect_commitchanges().
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
174ea70bf3
commit
37bdb8e8cd
|
@ -5122,6 +5122,10 @@ static void test_effect_commitchanges(IDirect3DDevice9 *device)
|
||||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||||
hr = IDirect3DDevice9_SetSamplerState(device, D3DVERTEXTEXTURESAMPLER0, D3DSAMP_MAGFILTER, 0);
|
hr = IDirect3DDevice9_SetSamplerState(device, D3DVERTEXTEXTURESAMPLER0, D3DSAMP_MAGFILTER, 0);
|
||||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||||
|
hr = IDirect3DDevice9_SetSamplerState(device, 0, D3DSAMP_MINFILTER, 0);
|
||||||
|
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||||
|
hr = IDirect3DDevice9_SetSamplerState(device, 0, D3DSAMP_MAGFILTER, 0);
|
||||||
|
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||||
|
|
||||||
hr = IDirect3DDevice9_SetVertexShader(device, NULL);
|
hr = IDirect3DDevice9_SetVertexShader(device, NULL);
|
||||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||||
|
@ -5141,6 +5145,12 @@ static void test_effect_commitchanges(IDirect3DDevice9 *device)
|
||||||
hr = IDirect3DDevice9_GetSamplerState(device, D3DVERTEXTEXTURESAMPLER0, D3DSAMP_MAGFILTER, &value);
|
hr = IDirect3DDevice9_GetSamplerState(device, D3DVERTEXTEXTURESAMPLER0, D3DSAMP_MAGFILTER, &value);
|
||||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||||
ok(value == 0, "Unexpected sampler 0 minfilter %u.\n", value);
|
ok(value == 0, "Unexpected sampler 0 minfilter %u.\n", value);
|
||||||
|
hr = IDirect3DDevice9_GetSamplerState(device, 0, D3DSAMP_MINFILTER, &value);
|
||||||
|
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||||
|
ok(value == 1, "Unexpected sampler 0 minfilter %u.\n", value);
|
||||||
|
hr = IDirect3DDevice9_GetSamplerState(device, 0, D3DSAMP_MAGFILTER, &value);
|
||||||
|
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||||
|
ok(value == 0, "Unexpected sampler 0 minfilter %u.\n", value);
|
||||||
|
|
||||||
ivect[3] = 2;
|
ivect[3] = 2;
|
||||||
hr = effect->lpVtbl->SetValue(effect, param, ivect, sizeof(ivect));
|
hr = effect->lpVtbl->SetValue(effect, param, ivect, sizeof(ivect));
|
||||||
|
|
Loading…
Reference in New Issue