mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Use add_unary_arithmetic_expr() in intrinsic_pow().
Using add_unary_arithmetic_expr() instead of hlsl_new_unary_expr() allows the intrinsic to work with matrices. Otherwise we get: E5017: Aborting due to not yet implemented feature: Copying from unsupported node type. because an HLSL_IR_EXPR reaches split_matrix_copies().
This commit is contained in:
committed by
Alexandre Julliard
parent
6770ecbdf4
commit
5b1030e0cb
Notes:
Alexandre Julliard
2023-01-11 22:39:00 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/53
@@ -10,7 +10,7 @@ draw quad
|
||||
probe all rgba (0.512, 0.101192884, 0.64, 0.25) 4
|
||||
|
||||
|
||||
[pixel shader todo]
|
||||
[pixel shader]
|
||||
float4 main() : sv_target
|
||||
{
|
||||
float2x3 a = {1, 2, 3, 4, 5, 6};
|
||||
@@ -21,8 +21,8 @@ float4 main() : sv_target
|
||||
}
|
||||
|
||||
[test]
|
||||
todo draw quad
|
||||
todo probe all rgba (1.0, 32.0, 256.0, 125.0)
|
||||
draw quad
|
||||
probe all rgba (1.0, 32.0, 256.0, 125.0) 2
|
||||
|
||||
|
||||
[pixel shader fail]
|
||||
|
Reference in New Issue
Block a user