Archived
1
Fork 0

Remove obsolete MSL ShaderLanguage option

This is no longer relevant now that Metal is a unsupported GFX backend, the MSL conversion is now handled by MoltenVK
This commit is contained in:
Joshua Goins 2022-02-07 13:07:30 -05:00
parent ea93df18dd
commit 4e0f92014a
2 changed files with 0 additions and 17 deletions

View file

@ -18,7 +18,6 @@ enum class ShaderStage {
/// The shader language that the shader is written in. /// The shader language that the shader is written in.
enum class ShaderLanguage { enum class ShaderLanguage {
GLSL, GLSL,
MSL,
SPIRV SPIRV
}; };

View file

@ -100,22 +100,6 @@ std::optional<ShaderSource> ShaderCompiler::compile(const ShaderLanguage from_la
} }
switch(to_language) { switch(to_language) {
case ShaderLanguage::MSL:
{
spirv_cross::CompilerMSL msl(std::move(spirv));
spirv_cross::CompilerMSL::Options opts;
if(options.is_apple_mobile) {
opts.platform = spirv_cross::CompilerMSL::Options::Platform::iOS;
} else {
opts.platform = spirv_cross::CompilerMSL::Options::Platform::macOS;
}
opts.enable_decoration_binding = true;
msl.set_msl_options(opts);
return ShaderSource(msl.compile());
}
case ShaderLanguage::SPIRV: case ShaderLanguage::SPIRV:
return ShaderSource(spirv); return ShaderSource(spirv);
default: default: