Add placeholders for MSL, HLSL, and WGSL
This commit is contained in:
parent
c9cac0f226
commit
5d335b0ed3
2 changed files with 13 additions and 1 deletions
|
@ -18,7 +18,10 @@ enum class ShaderStage {
|
|||
/// The shader language that the shader is written in.
|
||||
enum class ShaderLanguage {
|
||||
GLSL,
|
||||
SPIRV
|
||||
SPIRV,
|
||||
MSL,
|
||||
HLSL,
|
||||
WGSL // lol how do we even convert to this
|
||||
};
|
||||
|
||||
/// Compilation options when compiling shaders.
|
||||
|
|
|
@ -102,6 +102,15 @@ std::optional<ShaderSource> ShaderCompiler::compile(const ShaderLanguage from_la
|
|||
switch(to_language) {
|
||||
case ShaderLanguage::SPIRV:
|
||||
return ShaderSource(spirv);
|
||||
case ShaderLanguage::MSL:
|
||||
prism::log("Unimplemented shader language: MSL");
|
||||
return ShaderSource(spirv);
|
||||
case ShaderLanguage::HLSL:
|
||||
prism::log("Unimplemented shader language: HLSL");
|
||||
return ShaderSource(spirv);
|
||||
case ShaderLanguage::WGSL:
|
||||
prism::log("Unimplemented shader language: WGSL");
|
||||
return ShaderSource(spirv);
|
||||
default:
|
||||
return {};
|
||||
}
|
||||
|
|
Reference in a new issue