mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-29 12:34:17 +01:00
use verticesPerInstance for rect vertex shaders
This commit is contained in:
parent
a1b9164831
commit
6ea6ad37d6
@ -549,8 +549,10 @@ namespace LatteDecompiler
|
|||||||
}
|
}
|
||||||
if (g_renderer->GetType() == RendererAPI::Metal)
|
if (g_renderer->GetType() == RendererAPI::Metal)
|
||||||
{
|
{
|
||||||
|
bool isRectVertexShader = (static_cast<LattePrimitiveMode>(decompilerContext->contextRegisters[mmVGT_PRIMITIVE_TYPE]) == LattePrimitiveMode::RECTS);
|
||||||
|
|
||||||
// TODO: also check for rect primitive
|
// TODO: also check for rect primitive
|
||||||
if (decompilerContext->shaderType == LatteConst::ShaderType::Vertex && decompilerContext->options->usesGeometryShader)
|
if (decompilerContext->shaderType == LatteConst::ShaderType::Vertex && (decompilerContext->options->usesGeometryShader || isRectVertexShader))
|
||||||
decompilerContext->hasUniformVarBlock = true; // uf_verticesPerInstance
|
decompilerContext->hasUniformVarBlock = true; // uf_verticesPerInstance
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user