vkd3d-shader/hlsl: Check for non-static object references.

It is responsibility of the shader's programmer to ensure that
object references can be solved statically.

Resource arrays for ps_5_1 and vs_5_1 are an exception which is not
properly handled yet. They probably deserve a different object type.

Signed-off-by: Francisco Casas <fcasas@codeweavers.com>
This commit is contained in:
Francisco Casas
2022-07-22 11:40:24 -04:00
committed by Alexandre Julliard
parent 1bba18aa75
commit 6989266e76
Notes: Alexandre Julliard 2022-10-18 00:13:00 +02:00
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/7
3 changed files with 50 additions and 2 deletions

View File

@ -89,7 +89,7 @@ draw quad
probe all rgba (2132, 2132, 2132, 1111)
[pixel shader fail todo]
[pixel shader fail]
Texture2D tex[3];
uniform int n;
@ -109,7 +109,7 @@ float4 main() : sv_target
}
[pixel shader fail todo]
[pixel shader fail]
// Note: Only valid in shader model 5.1
Texture2D tex[3];
uniform int n;