mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Add a UINT_MAX layer count test to test_clear_depth_stencil_view().
Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
dbb07a40f8
commit
41685c374a
@ -4485,6 +4485,17 @@ static void test_clear_depth_stencil_view(void)
|
|||||||
reset_command_list(command_list, context.allocator);
|
reset_command_list(command_list, context.allocator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
transition_resource_state(command_list, ds.texture,
|
||||||
|
D3D12_RESOURCE_STATE_COPY_SOURCE, D3D12_RESOURCE_STATE_DEPTH_WRITE);
|
||||||
|
dsv_desc.Texture2DArray.ArraySize = UINT_MAX;
|
||||||
|
ID3D12Device_CreateDepthStencilView(device, ds.texture, &dsv_desc, ds.dsv_handle);
|
||||||
|
ID3D12GraphicsCommandList_ClearDepthStencilView(command_list, ds.dsv_handle,
|
||||||
|
D3D12_CLEAR_FLAG_DEPTH, expected_values[4], 0, 0, NULL);
|
||||||
|
|
||||||
|
transition_resource_state(command_list, ds.texture,
|
||||||
|
D3D12_RESOURCE_STATE_DEPTH_WRITE, D3D12_RESOURCE_STATE_COPY_SOURCE);
|
||||||
|
check_sub_resource_float(ds.texture, 5, queue, command_list, expected_values[4], 1);
|
||||||
|
|
||||||
destroy_depth_stencil(&ds);
|
destroy_depth_stencil(&ds);
|
||||||
destroy_test_context(&context);
|
destroy_test_context(&context);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user