Module: vkd3d Branch: master Commit: ef7cf9b1ad6a6de92ec5bf1864ec4124903e936b URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/ef7cf9b1ad6a6de92ec5bf1864ec41...
Author: Francisco Casas fcasas@codeweavers.com Date: Tue Apr 25 14:03:50 2023 -0400
vkd3d-shader/hlsl: Support resource arrays when writting SM4.
The new fixmes can be triggered in presence of object components within structs (for SM5).
In shaders such as this one:
struct apple { Texture2D tex : TEX; float4 color : COLOR; };
float4 main(struct apple input) : sv_target { return input.tex.Load(int3(1, 2, 3)); }
Or this one:
struct { Texture2D tex; float4 color; } s;
float4 main() : sv_target { return s.tex.Load(int3(1, 2, 3)); }
---
libs/vkd3d-shader/tpf.c | 127 ++++++++++++++++++++------------ tests/object-references.shader_test | 6 +- tests/register-reservations.shader_test | 6 +- tests/uav.shader_test | 4 +- 4 files changed, 87 insertions(+), 56 deletions(-)