Gems/Atom/Asset/Shader/Code/Source/Editor/ShaderAssetBuilder.cpp
static void AppendListOfPossibleFutureLocations(AZStd::unordered_set<AZStd::string>& includedFiles, AZStd::string_view normalizedRelativePath, AZStd::string_view currentFolderPath, const AZStd::vector<AZStd::string>& includeDirectories)
        {
            AZStd::string fullPath;
            AzFramework::StringFunc::Path::Join(currentFolderPath.data(), normalizedRelativePath.data(), fullPath);
            includedFiles.insert(fullPath);
            for (const auto &includeDir : includeDirectories)
            {
                AzFramework::StringFunc::Path::Join(includeDir.c_str(), normalizedRelativePath.data(), fullPath);
                includedFiles.insert(fullPath);
            }
        }
// Appends to @includedFiles normalized paths of possible future locations of the file @normalizedRelativePath.
// The future locations are each directory listed in @includeDirectories joined with @normalizedRelativePath.
// This function is called when an included file doesn't exist but We need to declare source dependency so a .shader
// asset is rebuilt when the missing file appears in the future.
Appends to @includedFiles normalized paths of possible future locations of the file @normalizedRelativePath.
The future locations are each directory listed in @includeDirectories joined with @normalizedRelativePath.
This function is called when an included file doesn't exist but We need to declare source dependency so a .shader
asset is rebuilt when the missing file appears in the future.
Appends to @includedFiles normalized paths of possible future locations of the file @normalizedRelativePath . The future locations are each directory listed in @includeDirectories joined with @normalizedRelativePath . This function is called when an included file doesn ' t exist but We need to declare source dependency so a . shader asset is rebuilt when the missing file appears in the future .
static void AppendListOfPossibleFutureLocations(AZStd::unordered_set<AZStd::string>& includedFiles, AZStd::string_view normalizedRelativePath, AZStd::string_view currentFolderPath, const AZStd::vector<AZStd::string>& includeDirectories)
        {
            AZStd::string fullPath;
            AzFramework::StringFunc::Path::Join(currentFolderPath.data(), normalizedRelativePath.data(), fullPath);
            includedFiles.insert(fullPath);
            for (const auto &includeDir : includeDirectories)
            {
                AzFramework::StringFunc::Path::Join(includeDir.c_str(), normalizedRelativePath.data(), fullPath);
                includedFiles.insert(fullPath);
            }
        }
static void AppendListOfPossibleFutureLocations ( AZStd :: unordered_set < AZStd :: string > & includedFiles , AZStd :: string_view normalizedRelativePath , AZStd :: string_view currentFolderPath , const AZStd :: vector < AZStd :: string > & includeDirectories ) { AZStd :: string fullPath ; AzFramework :: StringFunc :: Path :: Join ( currentFolderPath . data ( ) , normalizedRelativePath . data ( ) , fullPath ) ; includedFiles . insert ( fullPath ) ; for ( const auto & includeDir : includeDirectories ) { AzFramework :: StringFunc :: Path :: Join ( includeDir . c_str ( ) , normalizedRelativePath . data ( ) , fullPath ) ; includedFiles . insert ( fullPath ) ; } }
Appends to @includedFiles normalized paths of possible future locations of the file @normalizedRelativePath.
Appends to @includedFiles normalized paths of possible future locations of the file @normalizedRelativePath .