d3dx10/tests: Add a couple D3DX10CreateAsyncTextureInfoProcessor() parameter tests.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
This commit is contained in:
parent
c6d9640007
commit
89110d1e4c
1 changed files with 16 additions and 0 deletions
|
@ -1972,6 +1972,22 @@ static void test_D3DX10CreateAsyncTextureInfoProcessor(void)
|
|||
hr = D3DX10CreateAsyncTextureInfoProcessor(NULL, NULL);
|
||||
ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
|
||||
|
||||
hr = D3DX10CreateAsyncTextureInfoProcessor(&info, NULL);
|
||||
ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
|
||||
|
||||
hr = D3DX10CreateAsyncTextureInfoProcessor(NULL, &dp);
|
||||
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
|
||||
|
||||
if (0)
|
||||
{
|
||||
/* Crashes on native. */
|
||||
hr = ID3DX10DataProcessor_Process(dp, (void *)test_image[0].data, test_image[0].size);
|
||||
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
|
||||
}
|
||||
|
||||
hr = ID3DX10DataProcessor_Destroy(dp);
|
||||
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
|
||||
|
||||
hr = D3DX10CreateAsyncTextureInfoProcessor(&info, &dp);
|
||||
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue