Archived
1
Fork 0

Output GLSL from shader compiler

This should be optimized later :-)
This commit is contained in:
Joshua Goins 2022-02-21 12:08:27 -05:00
parent d31715526a
commit f932f83b89

View file

@ -112,6 +112,8 @@ std::optional<ShaderSource> ShaderCompiler::compile(const ShaderLanguage from_la
}
switch(to_language) {
case ShaderLanguage::GLSL:
return ShaderSource(shader_source);
case ShaderLanguage::WGSL:
case ShaderLanguage::SPIRV:
return ShaderSource(spirv);