17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-01 11:32:11 +01:00

mashadercompiler: Add support for UNC paths

MS DXC on Windows (at least IDxcUtils::BuildArguments) does not support forward slashes in UNC paths. This change feeds it native format with backslashes.

This makes it possible to build Linux and Windows binaries from a single source on a network share.
This commit is contained in:
combolek
2026-07-24 20:54:12 -07:00
parent d9eb705d4a
commit 1d08198d22
2 changed files with 13 additions and 3 deletions

View File

@@ -26,6 +26,10 @@ class MaShaderCompiler {
std::filesystem::path m_output_path;
private:
// Stored in the native format, since DXC does not accept forward
// slashes in UNC paths. Use wstring() to retrieve it in native
// format or generic_wstring() to get the canonical forward slash
// format.
std::filesystem::path m_shader_path;
bool m_generate_debug = false;
void ParseOptions();