Lines Matching refs:filesystem
27 #include <filesystem>
537 std::vector<std::filesystem::path> shaderIncludePaths;
539 std::filesystem::path& shaderSourcePath;
540 std::filesystem::path& compiledShaderDestinationPath;
720 std::filesystem::path path;
727 found = std::filesystem::exists(path);
733 found = std::filesystem::exists(path);
1547 bool writeToFile(const array_view<T>& data, std::filesystem::path aDestinationFile)
1564 const std::filesystem::path relativeInputFilename =
1565 std::filesystem::relative(inputFilename, settings.shaderSourcePath);
1567 const std::string extension = std::filesystem::path(inputFilename).extension().string();
1568 std::filesystem::path outputFilename = settings.compiledShaderDestinationPath / relativeInputFilename;
1571 std::filesystem::create_directories(outputFilename.parent_path());
1575 if (!std::filesystem::exists(outputFilename) ||
1576 !std::filesystem::equivalent(inputFilename, outputFilename)) {
1578 std::filesystem::copy(inputFilename, outputFilename, std::filesystem::copy_options::overwrite_existing);
1760 std::string lowercaseFileExt = std::filesystem::path(file).extension().string();
1781 std::filesystem::path const currentFolder = std::filesystem::current_path();
1782 std::filesystem::path shaderSourcesPath = currentFolder;
1783 std::filesystem::path compiledShaderDestinationPath;
1784 std::vector<std::filesystem::path> shaderIncludePaths;
1785 std::filesystem::path sourceFile;
1869 if (!std::filesystem::exists(shaderSourcesPath)) {
1875 std::filesystem::create_directories(compiledShaderDestinationPath);
1877 if (!std::filesystem::exists(compiledShaderDestinationPath)) {
1896 LUME_LOG_I(" Source path: '%s'", std::filesystem::absolute(shaderSourcesPath).string().c_str());
1898 LUME_LOG_I(" Include path: '%s'", std::filesystem::absolute(path).string().c_str());
1900 LUME_LOG_I("Destination path: '%s'", std::filesystem::absolute(compiledShaderDestinationPath).string().c_str());
1907 std::vector<std::filesystem::path> searchPath;
1940 std::string relativeFilename = std::filesystem::relative(file, shaderSourcesPath).string();
1977 std::string relativeFilename = std::filesystem::relative(removedFile, shaderSourcesPath).string();