vkd3d: Simplify d3d12_command_list_IASetVertexBuffers().

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:
Józef Kucia 2018-08-23 18:33:02 +02:00 committed by Alexandre Julliard
parent 80dbf329ca
commit 71e633cb1b
1 changed files with 4 additions and 5 deletions

View File

@ -3477,8 +3477,9 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetVertexBuffers(ID3D12Graphi
return;
}
count = 0;
first = start_slot;
for (i = 0, count = 0; i < view_count; ++i)
for (i = 0; i < view_count; ++i)
{
if (views[i].BufferLocation)
{
@ -3492,12 +3493,10 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetVertexBuffers(ID3D12Graphi
{
if (count)
VK_CALL(vkCmdBindVertexBuffers(list->vk_command_buffer, first, count, buffers, offsets));
count = 0;
first = start_slot + i + 1;
stride = 0;
++count;
first += count;
count = 0;
}
invalidate |= list->strides[start_slot + i] != stride;