vkd3d-shader/fx: Preserve parsing order of initializer components.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-06-14 02:26:19 +02:00 committed by Henri Verbeet
parent c97c652ff0
commit 8738e4662e
Notes: Henri Verbeet 2024-07-08 18:55:00 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/918

View File

@ -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: