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:
parent
ea93df18dd
commit
4e0f92014a
2 changed files with 0 additions and 17 deletions
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Reference in a new issue