You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add debug option for very verbose output and make sure that it is honored throughout the source-code. New default: Without debug being specified, only minimal output is given. This is in contrast to /nologo where no output is given.
Fix for handling -debug parameter. Include tests now output an object (-Fo).
Fix clang warning "codecvt_utf8<wchar_t>' is deprecated" by replacing it with the old code that uses "MultiByteToWideChar" and "WideCharToMultiByte". See: https://en.cppreference.com/w/cpp/header/codecvt .
Add a test for /P parameter used with /Fo. This is not allowed and the test is expected to fail.
Full /P parameter support for preprocessing .HLSL files.
Fixed Access Violation if no input file was specified.
efxc2CompilerIncludes.h - make verbose and debug bools
CMakeLists.txt - add test for preprocess requests with no input filename since that's separate code.
Remove an old macro that referenced wcsdup function. We do not use that directly any more.
add a comment about where some source-code is based on for later reference.
/setprivate now works.
eliminated pShaderWithNewName variable. Results now go into CompilerOutput variable so that the write procedures should work with it.
Input streams need to be read with the std::ios::binary flag. Otherwise, an implementation might change the EOL and throw things off.
Add option to check the code with PVS-Studio. This is set to OFF since PVS Studio is not required to build the software. It's just something to help me code.
Suppress some PVS warnings about an issue with "[noreturn]" functions. I double-checked the code and the issue does not apply.
Issue detected by PVS-Studio. The global namespace should only contain 'main', namespace declarations and 'extern "C"' declarations.
Fix a few errors related to 64-bit types thanks to PVS-Studio and suppress some warnings for things I do not think are an issue.
PVS-Studio warned me about where an int was used for potentially 64-bit indexes (an int is 32-bits). Unfortunately, the WideCharToMultiByte and MultiByteToWideChar Win32 API functions take a char count that is only an int. I was using them to convert things from Unicode to UTF8 and back. The fix is to switch to the _wcstombs_s_l and _mbstowcs_s_l specifying a UTF8 locale.
The readall call can fail.
Sometimes, we don't use results of a function so those should be typecast to void.
Use Win32 API constants in the g_ErrorTable table instead of hard-coding the values.