Export local keywords of shader as well as global keywords (#554)

* Export local keywords of shader

* Export local keywords of shader
This commit is contained in:
Jayatubi 2020-08-06 10:39:48 +08:00 committed by GitHub
parent 84c75fadf5
commit 813e8b10a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -648,6 +648,15 @@ namespace AssetStudio
}
sb.Append("}\n");
}
if (m_LocalKeywords != null && m_LocalKeywords.Length > 0)
{
sb.Append("Local Keywords { ");
foreach (string keyword in m_LocalKeywords)
{
sb.Append($"\"{keyword}\" ");
}
sb.Append("}\n");
}
sb.Append("\"");
if (m_ProgramCode.Length > 0)