Commit 48a1c12d authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

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

parent a586d4e8
...@@ -12375,6 +12375,16 @@ static void test_copy_subresource_region_1d(void) ...@@ -12375,6 +12375,16 @@ static void test_copy_subresource_region_1d(void)
} }
release_resource_readback(&rb); 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, 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);
ID3D11Texture1D_Release(texture1d); ID3D11Texture1D_Release(texture1d);
ID3D11Texture2D_Release(texture2d); ID3D11Texture2D_Release(texture2d);
release_test_context(&test_context); 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