mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Move hlsl_ir_function_decl->extern_vars to a local variable.
This commit is contained in:
committed by
Henri Verbeet
parent
db80f09c7a
commit
a7266284ee
Notes:
Henri Verbeet
2025-07-23 17:30:00 +02:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1471
@@ -2998,7 +2998,6 @@ struct hlsl_ir_function_decl *hlsl_new_func_decl(struct hlsl_ctx *ctx,
|
|||||||
decl->return_type = return_type;
|
decl->return_type = return_type;
|
||||||
decl->parameters = *parameters;
|
decl->parameters = *parameters;
|
||||||
decl->loc = *loc;
|
decl->loc = *loc;
|
||||||
list_init(&decl->extern_vars);
|
|
||||||
|
|
||||||
if (!hlsl_types_are_equal(return_type, ctx->builtin_types.Void))
|
if (!hlsl_types_are_equal(return_type, ctx->builtin_types.Void))
|
||||||
{
|
{
|
||||||
|
@@ -645,12 +645,6 @@ struct hlsl_ir_function_decl
|
|||||||
* executed. Needed to deal with return statements in non-uniform control
|
* executed. Needed to deal with return statements in non-uniform control
|
||||||
* flow, since some backends can't handle them. */
|
* flow, since some backends can't handle them. */
|
||||||
struct hlsl_ir_var *early_return_var;
|
struct hlsl_ir_var *early_return_var;
|
||||||
|
|
||||||
/* List of all the extern semantic variables; linked by the
|
|
||||||
* hlsl_ir_var.extern_entry fields. This exists as a convenience because
|
|
||||||
* it is often necessary to iterate all extern variables and these can be
|
|
||||||
* declared in as function parameters, or as the function return value. */
|
|
||||||
struct list extern_vars;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct hlsl_ir_call
|
struct hlsl_ir_call
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user