vkd3d-shader: Exclude descriptor arrays from push constant buffer searches.

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:
Conor McCarthy 2021-07-27 23:39:59 +10:00 committed by Alexandre Julliard
parent 5bebfe264d
commit e1b334aff8

View File

@ -2433,6 +2433,9 @@ static struct vkd3d_push_constant_buffer_binding *vkd3d_dxbc_compiler_find_push_
unsigned int reg_idx = cb->range.first;
unsigned int i;
if (cb->range.first != cb->range.last)
return NULL;
for (i = 0; i < compiler->shader_interface.push_constant_buffer_count; ++i)
{
struct vkd3d_push_constant_buffer_binding *current = &compiler->push_constants[i];