On Wed May 31 05:48:05 2023 +0000, Francisco Casas wrote:
changed this line in [version 2 of the diff](/wine/vkd3d/-/merge_requests/209/diffs?diff_id=49551&start_sha=78e71c4bc794f5606fc1137d99ce63ce3e9865c5#b9a696b7e2f161c9052ff1159d7d8cb2907cdeae_5224_5195)
I don't have any indication. For now I will leave it just for 5.0.
Probably we want to do it just for 5.0 since we are thinking on implementing 5.1 resource arrays as a single component anyways and, as you say, when objects are contained within structs the native compiler crashes, even on the simplest cases:
``` struct { Texture2D tex; float4 a; } apple;
float4 main() : sv_target { return apple.tex.Load(int3(0, 0, 0)) + apple.a; }
```
I am inclined to enable the same restrictions for objects within structs that we apply for SM < 5 for SM 5.1.