Commit 2a356bc1 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d10core/tests: Add test for readback from 1D array texture.

parent 48a1c12d
......@@ -9612,6 +9612,16 @@ static void test_copy_subresource_region_1d(void)
}
release_resource_readback(&rb);
get_texture1d_readback(texture1d, 0, &rb);
for (i = 0; i < texture1d_desc.Width; ++i)
{
color = get_readback_color(&rb, i, 0);
ok(compare_color(color, bitmap_data[i], 1),
"Got color 0x%08x at %u, expected 0x%08x.\n",
color, i, bitmap_data[i]);
}
release_resource_readback(&rb);
ID3D10Texture1D_Release(texture1d);
ID3D10Texture2D_Release(texture2d);
release_test_context(&test_context);
......
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