vkd3d-shader/hlsl: Parse the maxvertexcount attribute.

This commit is contained in:
Shaun Ren
2025-03-10 16:32:42 -04:00
committed by Henri Verbeet
parent 7be7e589a9
commit e880b11626
Notes: Henri Verbeet 2025-03-12 22:20:50 +01:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1405
4 changed files with 75 additions and 54 deletions

View File

@@ -1188,6 +1188,9 @@ struct hlsl_ctx
* the patch constant function in a hull shader. */
bool is_patch_constant_func;
/* The maximum output vertex count of a geometry shader. */
unsigned int max_vertex_count;
/* In some cases we generate opcodes by parsing an HLSL function and then
* invoking it. If not NULL, this field is the name of the function that we
* are currently parsing, "mangled" with an internal prefix to avoid