Output GLSL from shader compiler
This should be optimized later :-)
This commit is contained in:
parent
d31715526a
commit
f932f83b89
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue