resources: remove legacy shader authoring path
This commit is contained in:
@@ -76,7 +76,7 @@ void CollectQuotedIncludeDependencyPaths(
|
||||
}
|
||||
}
|
||||
|
||||
bool IsUnityStyleAuthoringPragmaDirective(const std::string& line) {
|
||||
bool IsShaderAuthoringPragmaDirective(const std::string& line) {
|
||||
std::vector<std::string> pragmaTokens;
|
||||
if (!TryTokenizeQuotedArguments(line, pragmaTokens) ||
|
||||
pragmaTokens.empty() ||
|
||||
@@ -95,14 +95,14 @@ bool IsUnityStyleAuthoringPragmaDirective(const std::string& line) {
|
||||
pragmaTokens[1] == "backend";
|
||||
}
|
||||
|
||||
Containers::String StripUnityStyleAuthoringPragmas(const Containers::String& sourceText) {
|
||||
Containers::String StripShaderAuthoringPragmas(const Containers::String& sourceText) {
|
||||
std::istringstream stream(ToStdString(sourceText));
|
||||
std::string rawLine;
|
||||
std::string strippedSource;
|
||||
|
||||
while (std::getline(stream, rawLine)) {
|
||||
const std::string normalizedLine = TrimCopy(StripAuthoringLineComment(rawLine));
|
||||
if (IsUnityStyleAuthoringPragmaDirective(normalizedLine)) {
|
||||
if (IsShaderAuthoringPragmaDirective(normalizedLine)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user