Explorar o código

Shaderc: Add missing raw compilation targets (#2478)

Hugo Amnov %!s(int64=4) %!d(string=hai) anos
pai
achega
b2d72b1495
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      tools/shaderc/shaderc.cpp

+ 8 - 0
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);