From: Francisco Casas <fcasas(a)codeweavers.com> --- libs/vkd3d-shader/hlsl.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/vkd3d-shader/hlsl.h b/libs/vkd3d-shader/hlsl.h index 0dc5254d..aa682c1e 100644 --- a/libs/vkd3d-shader/hlsl.h +++ b/libs/vkd3d-shader/hlsl.h @@ -540,11 +540,17 @@ struct hlsl_ir_constant struct hlsl_reg reg; }; +/* A delimited section of code, that contains variable and type defintions. */ struct hlsl_scope { + /* Entry for the context's list of scopes. */ struct list entry; + /* List of variables declared inside this scope. */ struct list vars; + /* List of HLSL types declared inside this scope. */ struct rb_tree types; + /* Scope that contains this scope. If definitions aren't found within this scope, the upper + * scope is checked, and so on until the global scope is reached. */ struct hlsl_scope *upper; }; -- GitLab https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/38