mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/hlsl: Evaluate index before array.
Co-authored-by: Francisco Casas <fcasas@codeweavers.com>
This commit is contained in:
committed by
Alexandre Julliard
parent
af1aa63ace
commit
8ed7437708
Notes:
Alexandre Julliard
2023-04-13 23:20:40 +02:00
Approved-by: Zebediah Figura (@zfigura) Approved-by: Francisco Casas (@fcasas) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/124
@@ -5473,7 +5473,7 @@ postfix_expr:
|
|||||||
{
|
{
|
||||||
struct hlsl_ir_node *array = node_from_list($1), *index = node_from_list($3);
|
struct hlsl_ir_node *array = node_from_list($1), *index = node_from_list($3);
|
||||||
|
|
||||||
list_move_tail($1, $3);
|
list_move_head($1, $3);
|
||||||
vkd3d_free($3);
|
vkd3d_free($3);
|
||||||
|
|
||||||
if (!add_array_access(ctx, $1, array, index, &@2))
|
if (!add_array_access(ctx, $1, array, index, &@2))
|
||||||
|
@@ -44,4 +44,4 @@ float4 main() : sv_target
|
|||||||
|
|
||||||
[test]
|
[test]
|
||||||
draw quad
|
draw quad
|
||||||
todo probe all rgba (2.2, 2.2, 2.2, 2.2)
|
probe all rgba (2.2, 2.2, 2.2, 2.2)
|
||||||
|
Reference in New Issue
Block a user