Commit 8330635c authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d11/tests: Extend test for ID3D11DeviceContext::UpdateSubresource().

parent 3d7c6660
...@@ -4227,6 +4227,9 @@ static void test_update_subresource(void) ...@@ -4227,6 +4227,9 @@ static void test_update_subresource(void)
set_box(&box, 4, 4, 0, 3, 1, 1); set_box(&box, 4, 4, 0, 3, 1, 1);
ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)texture, 0, &box, ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)texture, 0, &box,
bitmap_data, sizeof(*bitmap_data), 0); bitmap_data, sizeof(*bitmap_data), 0);
set_box(&box, 0, 0, 0, 4, 4, 0);
ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)texture, 0, &box,
bitmap_data, 4 * sizeof(*bitmap_data), 0);
ID3D11DeviceContext_Draw(context, 4, 0); ID3D11DeviceContext_Draw(context, 4, 0);
get_texture_readback(backbuffer, &rb); get_texture_readback(backbuffer, &rb);
for (i = 0; i < 4; ++i) for (i = 0; i < 4; ++i)
......
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