[PATCH vkd3d 07/10] tests: Add tests for NULL views in IASetVertexBuffers().
Conor McCarthy
cmccarthy at codeweavers.com
Fri Sep 17 10:37:05 CDT 2021
Part of a vkd3d-proton patch by Hans-Kristian Arntzen.
Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
---
tests/d3d12.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/d3d12.c b/tests/d3d12.c
index 89b1f000..c027d9b7 100644
--- a/tests/d3d12.c
+++ b/tests/d3d12.c
@@ -19122,6 +19122,10 @@ static void test_null_vbv(void)
vbv[1].SizeInBytes = 0;
ID3D12GraphicsCommandList_IASetVertexBuffers(command_list, 0, ARRAY_SIZE(vbv), vbv);
+ /* Call 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);
transition_resource_state(command_list, context.render_target,
--
2.32.0
More information about the wine-devel
mailing list