check if verticesPerInstance uniform is used

This commit is contained in:
Samuliak 2024-11-11 17:21:16 +01:00
parent 326d3442cd
commit 4b58ac1a1e
No known key found for this signature in database
2 changed files with 13 additions and 3 deletions

View file

@ -547,6 +547,12 @@ namespace LatteDecompiler
{
decompilerContext->hasUniformVarBlock = true; // uf_verticesPerInstance and uf_streamoutBufferBase*
}
if (g_renderer->GetType() == RendererAPI::Metal)
{
// TODO: also check for rect primitive
if (decompilerContext->shaderType == LatteConst::ShaderType::Vertex && decompilerContext->options->usesGeometryShader)
decompilerContext->hasUniformVarBlock = true; // uf_verticesPerInstance
}
}
void _initUniformBindingPoints(LatteDecompilerShaderContext* decompilerContext)