mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Metal: Added embedded shaders.
This commit is contained in:
parent
50bb6f6506
commit
522fb9cbcc
2 changed files with 10 additions and 0 deletions
|
@ -504,6 +504,11 @@ class Metaballs : public entry::AppI
|
|||
fs_metaballs = bgfx::makeRef(fs_metaballs_dx11, sizeof(fs_metaballs_dx11) );
|
||||
break;
|
||||
|
||||
case bgfx::RendererType::Metal:
|
||||
vs_metaballs = bgfx::makeRef(vs_metaballs_mtl, sizeof(vs_metaballs_mtl) );
|
||||
fs_metaballs = bgfx::makeRef(fs_metaballs_mtl, sizeof(fs_metaballs_mtl) );
|
||||
break;
|
||||
|
||||
default:
|
||||
vs_metaballs = bgfx::makeRef(vs_metaballs_glsl, sizeof(vs_metaballs_glsl) );
|
||||
fs_metaballs = bgfx::makeRef(fs_metaballs_glsl, sizeof(fs_metaballs_glsl) );
|
||||
|
|
|
@ -127,6 +127,11 @@ class DrawStress : public entry::AppI
|
|||
fs_drawstress = bgfx::makeRef(fs_drawstress_dx11, sizeof(fs_drawstress_dx11) );
|
||||
break;
|
||||
|
||||
case bgfx::RendererType::Metal:
|
||||
vs_drawstress = bgfx::makeRef(vs_drawstress_mtl, sizeof(vs_drawstress_mtl) );
|
||||
fs_drawstress = bgfx::makeRef(fs_drawstress_mtl, sizeof(fs_drawstress_mtl) );
|
||||
break;
|
||||
|
||||
default:
|
||||
vs_drawstress = bgfx::makeRef(vs_drawstress_glsl, sizeof(vs_drawstress_glsl) );
|
||||
fs_drawstress = bgfx::makeRef(fs_drawstress_glsl, sizeof(fs_drawstress_glsl) );
|
||||
|
|
Loading…
Reference in a new issue