latte: check if Vulkan or Metal

Co-authored-by: Exzap <13877693+Exzap@users.noreply.github.com>
This commit is contained in:
SamoZ256 2025-05-19 16:30:32 +02:00 committed by GitHub
parent c01e6bf3b8
commit 4ec2638395
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -701,7 +701,7 @@ LatteDecompilerShader* LatteShader_CreateShaderFromDecompilerOutput(LatteDecompi
// copy uniform offsets
// for OpenGL these are retrieved in _prepareSeparableUniforms()
// HACK
if (g_renderer->GetType() != RendererAPI::OpenGL)
if (g_renderer->GetType() == RendererAPI::Vulkan || g_renderer->GetType() == RendererAPI::Metal)
{
shader->uniform.loc_remapped = decompilerOutput.uniformOffsetsVK.offset_remapped;
shader->uniform.loc_uniformRegister = decompilerOutput.uniformOffsetsVK.offset_uniformRegister;