Module: vkd3d Branch: master Commit: 8738e4662ed68b59047fbfb7614f71af09962491 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/8738e4662ed68b59047fbfb7614f71...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Fri Jun 14 02:26:19 2024 +0200
vkd3d-shader/fx: Preserve parsing order of initializer components.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com
---
libs/vkd3d-shader/hlsl.y | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/libs/vkd3d-shader/hlsl.y b/libs/vkd3d-shader/hlsl.y index b9f0deda..f5611e67 100644 --- a/libs/vkd3d-shader/hlsl.y +++ b/libs/vkd3d-shader/hlsl.y @@ -2224,6 +2224,9 @@ static unsigned int get_component_index_from_default_initializer_index(struct hl if (ctx->profile->major_version < 4) return index;
+ if (ctx->profile->type == VKD3D_SHADER_TYPE_EFFECT) + return index; + switch (type->class) { case HLSL_CLASS_MATRIX: