tests: Add more tests for mapping texture on custom heaps.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2019-04-03 16:39:10 +08:00 committed by Alexandre Julliard
parent a1ec97ca2a
commit c726a1df0a

View File

@ -5969,6 +5969,11 @@ static void test_map_resource(void)
ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
ok(data == (void *)0xdeadbeef, "Pointer was modified %p.\n", data);
/* Texture on custom heaps can be mapped, but the address doesn't get disclosed to applications */
hr = ID3D12Resource_Map(resource, 0, NULL, NULL);
todo ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
ID3D12Resource_Unmap(resource, 0, NULL);
ID3D12Resource_Release(resource);
}