mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Add a test for arrays with an expression as the index.
Currently, the compiler requires that dereferences be HLSL_IR_CONSTANT, so that it can compute the offset at compile time. However, scenarios such as this test will produce a dereference with HLSL_IR_EXPR, which will generate an error. Passing this test in particular will require adding support for SM4 relative addressing, as well as support for non-constant indexing in general. Signed-off-by: Ethan Lee <flibitijibibo@gmail.com>
This commit is contained in:
committed by
Alexandre Julliard
parent
bb680e73de
commit
aa17d139be
Notes:
Alexandre Julliard
2023-05-29 22:32:19 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/189
@@ -50,6 +50,7 @@ vkd3d_shader_tests = \
|
||||
tests/arithmetic-int.shader_test \
|
||||
tests/arithmetic-int-uniform.shader_test \
|
||||
tests/arithmetic-uint.shader_test \
|
||||
tests/array-index-expr.shader_test \
|
||||
tests/array-parameters.shader_test \
|
||||
tests/asfloat.shader_test \
|
||||
tests/asuint.shader_test \
|
||||
|
Reference in New Issue
Block a user