mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/fx: Preserve parsing order of initializer components.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
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
@ -2224,6 +2224,9 @@ static unsigned int get_component_index_from_default_initializer_index(struct hl
|
|||||||
if (ctx->profile->major_version < 4)
|
if (ctx->profile->major_version < 4)
|
||||||
return index;
|
return index;
|
||||||
|
|
||||||
|
if (ctx->profile->type == VKD3D_SHADER_TYPE_EFFECT)
|
||||||
|
return index;
|
||||||
|
|
||||||
switch (type->class)
|
switch (type->class)
|
||||||
{
|
{
|
||||||
case HLSL_CLASS_MATRIX:
|
case HLSL_CLASS_MATRIX:
|
||||||
|
Loading…
Reference in New Issue
Block a user