mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 23:41:18 +12:00
support metal shaders in graphics packs
This commit is contained in:
parent
3d84b78362
commit
ec2410222c
3 changed files with 30 additions and 22 deletions
|
@ -339,7 +339,7 @@ void LatteShader_CreateRendererShader(LatteDecompilerShader* shader, bool compil
|
|||
// check if a custom shader is present
|
||||
std::string shaderSrc;
|
||||
|
||||
const std::string* customShaderSrc = GraphicPack2::FindCustomShaderSource(shader->baseHash, shader->auxHash, gpShaderType, g_renderer->GetType() == RendererAPI::Vulkan);
|
||||
const std::string* customShaderSrc = GraphicPack2::FindCustomShaderSource(shader->baseHash, shader->auxHash, gpShaderType, g_renderer->GetType() == RendererAPI::Vulkan, g_renderer->GetType() == RendererAPI::Metal);
|
||||
if (customShaderSrc)
|
||||
{
|
||||
shaderSrc.assign(*customShaderSrc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue