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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user