vkd3d: Use NULL descriptors for vertex buffers.

Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
This commit is contained in:
Philip Rebohle 2020-06-25 16:36:08 +02:00 committed by Hans-Kristian Arntzen
parent 87bf1e8937
commit fbbcb30590
1 changed files with 2 additions and 1 deletions

View File

@ -5456,7 +5456,8 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetVertexBuffers(d3d12_comman
}
else
{
buffers[i] = null_resources->vk_buffer;
bool null_descriptors = list->device->device_info.robustness2_features.nullDescriptor;
buffers[i] = null_descriptors ? VK_NULL_HANDLE : null_resources->vk_buffer;
offsets[i] = 0;
stride = 0;
}