mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/dxil: Count global variables in dxil_block_compute_module_decl_count().
This commit is contained in:
parent
4ec7f360d9
commit
8aa6e2228e
Notes:
Alexandre Julliard
2024-01-03 23:09:35 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/505
@ -1237,7 +1237,7 @@ static size_t dxil_block_compute_module_decl_count(const struct dxil_block *bloc
|
|||||||
size_t i, count;
|
size_t i, count;
|
||||||
|
|
||||||
for (i = 0, count = 0; i < block->record_count; ++i)
|
for (i = 0, count = 0; i < block->record_count; ++i)
|
||||||
count += block->records[i]->code == MODULE_CODE_FUNCTION;
|
count += block->records[i]->code == MODULE_CODE_FUNCTION || block->records[i]->code == MODULE_CODE_GLOBALVAR;
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user