vulkan: move shader compilation into Shader

This commit is contained in:
niki
2022-07-18 22:28:41 +02:00
parent a544d51c22
commit 00974b5820
8 changed files with 270 additions and 274 deletions
+3 -1
View File
@@ -368,7 +368,9 @@ Shader *Graphics::newShader(const std::vector<std::string> &stagessource, const
for (const std::string &source : stagessource)
{
Shader::SourceInfo info = Shader::getSourceInfo(source);
info.vulkan = options.defines.find("vulkan") != options.defines.end();
if (capabilities.features[FEATURE_GLSL4]) {
info.language = Shader::LANGUAGE_GLSL4;
}
bool isanystage = false;
for (int i = 0; i < SHADERSTAGE_MAX_ENUM; i++)