mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
libs/vkd3d: Allow root signatures with no descriptors.
A root signature can have no descriptors when it is empty, or it has only root constants.
This commit is contained in:
parent
bb80c759fc
commit
7aaa801768
@ -2247,9 +2247,7 @@ static void STDMETHODCALLTYPE d3d12_command_list_SetComputeRootSignature(ID3D12G
|
||||
if (list->compute_root_signature == rs)
|
||||
return;
|
||||
|
||||
if (!(list->compute_descriptor_set = d3d12_command_list_allocate_descriptor_set(list, rs)))
|
||||
return;
|
||||
|
||||
list->compute_descriptor_set = d3d12_command_list_allocate_descriptor_set(list, rs);
|
||||
list->compute_root_signature = rs;
|
||||
}
|
||||
|
||||
@ -2264,9 +2262,7 @@ static void STDMETHODCALLTYPE d3d12_command_list_SetGraphicsRootSignature(ID3D12
|
||||
if (list->graphics_root_signature == rs)
|
||||
return;
|
||||
|
||||
if (!(list->graphics_descriptor_set = d3d12_command_list_allocate_descriptor_set(list, rs)))
|
||||
return;
|
||||
|
||||
list->graphics_descriptor_set = d3d12_command_list_allocate_descriptor_set(list, rs);
|
||||
list->graphics_root_signature = rs;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user