6 Apr
2023
6 Apr
'23
1:03 a.m.
Zebediah Figura (@zfigura) commented about tests/entry-point-semantics.shader_test:
+{ + return 0.0; +} + + +% Array elements with a semantic get successive indexes +[pixel shader todo] +struct apple +{ + float2 tp[4] : TEXCOORD0; +}; + +float4 main(in apple a) : sv_target +{ + return float4(10 * a.tp[0] + a.tp[1], 10 * a.tp[2] + a.tp[3]); +} Not a big deal (the test works either way), but it might be clearer just to take the first component of each, and then there's no math necessary?
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/148#note_29098