Shaderc: Add missing raw compilation targets (#2478)

This commit is contained in:
Hugo Amnov 2021-04-18 20:45:33 +02:00 committed by GitHub
parent c3b8ec0dd0
commit b2d72b1495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);