mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
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:
parent
80dbf329ca
commit
71e633cb1b
@ -3477,8 +3477,9 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetVertexBuffers(ID3D12Graphi
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
count = 0;
|
||||||
first = start_slot;
|
first = start_slot;
|
||||||
for (i = 0, count = 0; i < view_count; ++i)
|
for (i = 0; i < view_count; ++i)
|
||||||
{
|
{
|
||||||
if (views[i].BufferLocation)
|
if (views[i].BufferLocation)
|
||||||
{
|
{
|
||||||
@ -3492,12 +3493,10 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetVertexBuffers(ID3D12Graphi
|
|||||||
{
|
{
|
||||||
if (count)
|
if (count)
|
||||||
VK_CALL(vkCmdBindVertexBuffers(list->vk_command_buffer, first, count, buffers, offsets));
|
VK_CALL(vkCmdBindVertexBuffers(list->vk_command_buffer, first, count, buffers, offsets));
|
||||||
|
count = 0;
|
||||||
|
first = start_slot + i + 1;
|
||||||
|
|
||||||
stride = 0;
|
stride = 0;
|
||||||
++count;
|
|
||||||
|
|
||||||
first += count;
|
|
||||||
count = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
invalidate |= list->strides[start_slot + i] != stride;
|
invalidate |= list->strides[start_slot + i] != stride;
|
||||||
|
Loading…
Reference in New Issue
Block a user