vkd3d-shader/hlsl: Parse function call syntax on state blocks.

This commit is contained in:
Francisco Casas
2024-03-19 16:06:12 -03:00
committed by Henri Verbeet
parent f15d8dc9e9
commit b5f2e7daeb
Notes: Henri Verbeet 2024-07-09 21:10:32 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/915
4 changed files with 47 additions and 9 deletions

View File

@@ -1290,6 +1290,9 @@ static bool state_block_contains_state(const char *name, unsigned int start, str
for (i = start; i < block->count; ++i)
{
if (block->entries[i]->is_function_call)
continue;
if (!ascii_strcasecmp(block->entries[i]->name, name))
return true;
}