VideoCommon: move vertex shader gen logic to a 'process_vertex()' function, to eventually allow for custom shaders to override vertex logic

This commit is contained in:
iwubcode
2025-05-17 19:45:58 -05:00
parent 66b8fa03cb
commit b23dddea4e
3 changed files with 294 additions and 93 deletions

View File

@ -433,7 +433,7 @@ void ShaderCache::CompileMissingPipelines()
std::unique_ptr<AbstractShader> ShaderCache::CompileVertexShader(const VertexShaderUid& uid) const
{
const ShaderCode source_code =
GenerateVertexShaderCode(m_api_type, m_host_config, uid.GetUidData());
GenerateVertexShaderCode(m_api_type, m_host_config, uid.GetUidData(), {});
return g_gfx->CreateShaderFromSource(ShaderStage::Vertex, source_code.GetBuffer());
}