1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

d3dcompiler/tests: Add a couple tests for minimum size in D3DGetBlobPart().

This commit is contained in:
Matteo Bruni 2023-04-06 23:19:16 +02:00 committed by Alexandre Julliard
parent 3fbfd1da2c
commit a639324b3d

View file

@ -150,6 +150,17 @@ static void test_get_blob_part(void)
ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#lx.\n", hr);
ok(blob2 == blob, "D3DGetBlobPart failed got %p, expected %p\n", blob, blob2);
hr = D3DGetBlobPart(test_blob_part, 7 * sizeof(DWORD), D3D_BLOB_INPUT_SIGNATURE_BLOB, 0, &blob);
ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#lx.\n", hr);
ok(blob2 == blob, "D3DGetBlobPart failed got %p, expected %p\n", blob, blob2);
hr = D3DGetBlobPart(test_blob_part, 8 * sizeof(DWORD), D3D_BLOB_INPUT_SIGNATURE_BLOB, 0, &blob);
#if D3D_COMPILER_VERSION < 46
todo_wine
#endif
ok(hr == expected, "Got unexpected hr %#lx.\n", hr);
ok(blob2 == blob, "D3DGetBlobPart failed got %p, expected %p\n", blob, blob2);
hr = D3DGetBlobPart(test_blob_part, test_blob_part[6], D3D_BLOB_INPUT_SIGNATURE_BLOB, 0, NULL);
ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#lx.\n", hr);