25 Jan
2023
25 Jan
'23
9:29 p.m.
Francisco Casas (@fcasas) commented about tests/entry-point-overload.shader_test:
+ +[pixel shader] + +float4 main() : sv_target +{ + return 0.1; +} + +float4 main(float tex : texcoord) : sv_target +{ + return tex; +} + +[test] +draw quad +todo probe (0, 0) rgba (0.2, 0.2, 0.2, 0.2) Actually it seems that the chosen function depends on the version of the compiler!
fxc 9.29.952.3111 (`d3d_compiler43.dll`) seems to load the first `main()`, while fxc 10.1 (`d3d_compiler47.dll`) seems to load the second, at least for me. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/65#note_21920