From b2d72b1495872bb4b616542d9232f9de70bc1573 Mon Sep 17 00:00:00 2001 From: Hugo Amnov Date: Sun, 18 Apr 2021 20:45:33 +0200 Subject: [PATCH] Shaderc: Add missing raw compilation targets (#2478) --- tools/shaderc/shaderc.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/shaderc/shaderc.cpp b/tools/shaderc/shaderc.cpp index d7d7875b3..895678273 100644 --- a/tools/shaderc/shaderc.cpp +++ b/tools/shaderc/shaderc.cpp @@ -1454,6 +1454,14 @@ namespace bgfx compiled = true; } + else if (profile->lang == ShadingLang::Metal) + { + compiled = compileMetalShader(_options, BX_MAKEFOURCC('M', 'T', 'L', 0), input, _writer); + } + else if (profile->lang == ShadingLang::SpirV) + { + compiled = compileSPIRVShader(_options, profile->id, input, _writer); + } else if (profile->lang == ShadingLang::PSSL) { compiled = compilePSSLShader(_options, 0, input, _writer);