14 Apr
2023
14 Apr
'23
1:21 a.m.
Zebediah Figura (@zfigura) commented about tests/entry-point-semantics.shader_test:
+} + + +% Different indexes of the same semantic can have different types. +[pixel shader] +float4 main(in float2 a : TEXCOORD0, in float b : TEXCOORD1) : sv_target +{ + return float4(a, b, 0); +} + +[test] +todo draw quad +todo probe (0, 0) rgba (1.0, 2.0, 3.0, 0.0) + + +% Duplicated input semantics can only have different types if they have the same layout and register types. It turns out I didn't test completely enough; this actually is legal in sm1.
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/148#note_30016