mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/hlsl: Add an "is_patch_constant_func" field to struct hlsl_ctx.
In anticipation of the need for is_patch_constant_func in sm4_generate_vsir_reg_from_deref(), in order to generate vsir registers from InputPatch/OutputPatch dereferences.
This commit is contained in:
Notes:
Henri Verbeet
2025-02-03 16:40:17 +01:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Elizabeth Figura (@zfigura) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1362
@@ -1180,6 +1180,10 @@ struct hlsl_ctx
|
||||
unsigned int input_control_point_count;
|
||||
struct hlsl_type *input_control_point_type;
|
||||
|
||||
/* Whether the current function being processed during HLSL codegen is
|
||||
* the patch constant function in a hull shader. */
|
||||
bool is_patch_constant_func;
|
||||
|
||||
/* 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
|
||||
|
||||
Reference in New Issue
Block a user