Fix embarassing macOS/iOS switchup
This commit is contained in:
parent
63f844a20d
commit
fcf6277032
1 changed files with 2 additions and 2 deletions
|
@ -107,9 +107,9 @@ std::optional<ShaderSource> ShaderCompiler::compile(const ShaderLanguage from_la
|
||||||
|
|
||||||
spirv_cross::CompilerMSL::Options opts;
|
spirv_cross::CompilerMSL::Options opts;
|
||||||
if(options.is_apple_mobile) {
|
if(options.is_apple_mobile) {
|
||||||
opts.platform = spirv_cross::CompilerMSL::Options::Platform::macOS;
|
|
||||||
} else {
|
|
||||||
opts.platform = spirv_cross::CompilerMSL::Options::Platform::iOS;
|
opts.platform = spirv_cross::CompilerMSL::Options::Platform::iOS;
|
||||||
|
} else {
|
||||||
|
opts.platform = spirv_cross::CompilerMSL::Options::Platform::macOS;
|
||||||
}
|
}
|
||||||
opts.enable_decoration_binding = true;
|
opts.enable_decoration_binding = true;
|
||||||
|
|
||||||
|
|
Reference in a new issue