16 May
2023
16 May
'23
9:52 a.m.
Giovanni Mascellani (@giomasce) commented about tests/uav-rwtexture.shader_test:
+RWTexture3D<struct s> u3; + +float4 main() : sv_target1 +{ + u[int3(0, 0, 0)] = float4(11.1, 12.2, 13.3, 14.4); + return 0; +} + +% Type is too wide +[pixel shader fail] +struct s +{ + float3 a; + float2 b; +}; +RWTexture1D<struct apple> u; This fails because you're using `struct apple` instead of `struct s`, not because `struct s` is too wide. This also happens elsewhere (for buffers too).
Notice that you can run tests with `VKD3D_TEST_DEBUG=1` to make sure that the compiler error matches your expectations. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/193#note_32856