mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
tests: Add tests for d3d12_command_list_IASetVertexBuffers() calls with NULL views.
Part of a vkd3d-proton patch by Hans-Kristian Arntzen. 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
f172647d5e
commit
2bf4539c0d
@ -19201,6 +19201,10 @@ static void test_null_vbv(void)
|
|||||||
vbv[1].SizeInBytes = 0;
|
vbv[1].SizeInBytes = 0;
|
||||||
ID3D12GraphicsCommandList_IASetVertexBuffers(command_list, 0, ARRAY_SIZE(vbv), vbv);
|
ID3D12GraphicsCommandList_IASetVertexBuffers(command_list, 0, ARRAY_SIZE(vbv), vbv);
|
||||||
|
|
||||||
|
/* Calls with NULL "views" pointers should be ignored. */
|
||||||
|
ID3D12GraphicsCommandList_IASetVertexBuffers(command_list, 0, 1, NULL);
|
||||||
|
ID3D12GraphicsCommandList_IASetVertexBuffers(command_list, 1, 1, NULL);
|
||||||
|
|
||||||
ID3D12GraphicsCommandList_DrawInstanced(command_list, 4, 4, 0, 0);
|
ID3D12GraphicsCommandList_DrawInstanced(command_list, 4, 4, 0, 0);
|
||||||
|
|
||||||
transition_resource_state(command_list, context.render_target,
|
transition_resource_state(command_list, context.render_target,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user