mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 22:41:18 +12:00
check if verticesPerInstance uniform is used
This commit is contained in:
parent
326d3442cd
commit
4b58ac1a1e
2 changed files with 13 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue