diff --git a/tools/shadercompiler/main.cpp b/tools/shadercompiler/main.cpp index d3ddc12..4ce5bdd 100755 --- a/tools/shadercompiler/main.cpp +++ b/tools/shadercompiler/main.cpp @@ -42,14 +42,8 @@ int main(int argc, char* argv[]) { ShaderLanguage language; CompileOptions options; -#ifdef PLATFORM_MACOS - options.is_apple_mobile = (bool)argv[3]; - - language = ShaderLanguage::MSL; -#else language = ShaderLanguage::SPIRV; -#endif - + const auto compiled_source = shader_compiler.compile(ShaderLanguage::GLSL, stage, ShaderSource(buffer.str()), language, options); if(!compiled_source.has_value()) { prism::log::error(System::Core, "Error when compiling {}!", source_path);