vkd3d-shader/hlsl: Rename 'inner_type' to 'element_type' in function name.

Signed-off-by: Francisco Casas <fcasas@codeweavers.com>
This commit is contained in:
Francisco Casas
2022-08-16 12:33:51 -04:00
committed by Alexandre Julliard
parent 1c61b20616
commit f843a7babb
Notes: Alexandre Julliard 2022-10-18 00:13:00 +02:00
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/7
3 changed files with 5 additions and 5 deletions

View File

@@ -370,7 +370,7 @@ static struct hlsl_type *get_type_from_deref(struct hlsl_ctx *ctx, const struct
type = deref->var->data_type;
for (i = 0; i < deref->path_len; ++i)
type = hlsl_get_inner_type_from_path_index(ctx, type, deref->path[i].node);
type = hlsl_get_element_type_from_path_index(ctx, type, deref->path[i].node);
return type;
}
@@ -423,7 +423,7 @@ static bool init_deref_from_component_index(struct hlsl_ctx *ctx, struct hlsl_bl
return true;
}
struct hlsl_type *hlsl_get_inner_type_from_path_index(struct hlsl_ctx *ctx, const struct hlsl_type *type,
struct hlsl_type *hlsl_get_element_type_from_path_index(struct hlsl_ctx *ctx, const struct hlsl_type *type,
struct hlsl_ir_node *idx)
{
assert(idx);
@@ -963,7 +963,7 @@ struct hlsl_ir_load *hlsl_new_load_index(struct hlsl_ctx *ctx, const struct hlsl
type = get_type_from_deref(ctx, deref);
if (idx)
type = hlsl_get_inner_type_from_path_index(ctx, type, idx);
type = hlsl_get_element_type_from_path_index(ctx, type, idx);
if (!(load = hlsl_alloc(ctx, sizeof(*load))))
return NULL;