Commit 92a2ebc6 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

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

parent a639324b
......@@ -371,9 +371,15 @@ static void test_get_blob_part(void)
hr = D3DStripShader(NULL, test_blob_part[6], 0, &blob);
ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#lx.\n", hr);
hr = D3DStripShader(test_blob_part, 2, 0, &blob);
hr = D3DStripShader(test_blob_part, 7 * sizeof(DWORD), 0, &blob);
ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#lx.\n", hr);
hr = D3DStripShader(test_blob_part, 8 * sizeof(DWORD), 0, &blob);
#if D3D_COMPILER_VERSION < 46
todo_wine
#endif
ok(hr == expected, "Got unexpected hr %#lx.\n", hr);
hr = D3DStripShader(test_blob_part, test_blob_part[6], 0, NULL);
ok(hr == E_FAIL, "Got unexpected hr %#lx.\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