use the ENABLE_METAL macro

This commit is contained in:
Samuliak 2025-01-16 16:36:02 +01:00
parent 0b1932c206
commit 40264302c2
No known key found for this signature in database

View file

@ -524,6 +524,7 @@ void LatteSHRC_UpdateVSBaseHash(uint8* vertexShaderPtr, uint32 vertexShaderSize,
if (LatteGPUState.contextNew.PA_CL_CLIP_CNTL.get_DX_CLIP_SPACE_DEF()) if (LatteGPUState.contextNew.PA_CL_CLIP_CNTL.get_DX_CLIP_SPACE_DEF())
vsHash += 0x1537; vsHash += 0x1537;
#if ENABLE_METAL
if (g_renderer->GetType() == RendererAPI::Metal) if (g_renderer->GetType() == RendererAPI::Metal)
{ {
if (usesGeometryShader || _activeFetchShader->mtlFetchVertexManually) if (usesGeometryShader || _activeFetchShader->mtlFetchVertexManually)
@ -563,6 +564,7 @@ void LatteSHRC_UpdateVSBaseHash(uint8* vertexShaderPtr, uint32 vertexShaderSize,
vsHash += 349ULL; vsHash += 349ULL;
} }
} }
#endif
_shaderBaseHash_vs = vsHash; _shaderBaseHash_vs = vsHash;
} }