On 1/18/23 10:14, Henri Verbeet (@hverbeet) wrote:
In the last version D3D9 and D3D11 tests are executed on non-cross builds too. I also added some additional logging so that it's easier to follow what's happening (especially, say, if a log trace is shared and it's not clear what was executed in the first place). How do you both see that?
Generally I'm in favour, although the nested #ifdef's do look a bit messy.
Unfortunately there is a warning in non-cross builds I don't completely understand how to get rid of:
In file included from ../vkd3d/tests/d3d12_crosstest.h:46, from ../vkd3d/tests/d3d12.c:24: ../vkd3d/include/private/vkd3d_test.h:323:5: warning: no previous prototype for ‘wmain’ [-Wmissing-prototypes] 323 | int wmain(int argc, WCHAR **wargv) | ^~~~~
Any suggestion for that?
We probably need to add -municode, much like 59d918fd50e6a4fad4052b563bfd248d8ff87013 did for the demos.
Do we actually need a Unicode main()? Could we just do something like the attached diff?