mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 15:01:18 +12:00
retrieve ps input table without using global variable
This commit is contained in:
parent
295a6ed9fd
commit
1750715791
4 changed files with 52 additions and 54 deletions
|
@ -54,7 +54,7 @@ MTL::RenderPipelineState* MetalPipelineCache::GetRenderPipelineState(const Latte
|
|||
MTL::RenderPipelineState* pipeline = compiler.Compile(false, true, true, attemptedCompilation);
|
||||
|
||||
// If FBOs don't match, it wouldn't be possible to reconstruct the pipeline from the cache
|
||||
if (fbosMatch)
|
||||
if (pipeline && fbosMatch)
|
||||
AddCurrentStateToCache(hash);
|
||||
|
||||
// Place the pipeline to the cache if the compilation was at least attempted
|
||||
|
@ -360,9 +360,6 @@ void MetalPipelineCache::LoadPipelineFromCache(std::span<uint8> fileData)
|
|||
|
||||
MetalAttachmentsInfo attachmentsInfo(*lcr, pixelShader);
|
||||
|
||||
// TODO: this shouldn't probably be called directly
|
||||
LatteShader_UpdatePSInputs(lcr->GetRawView());
|
||||
|
||||
MTL::RenderPipelineState* pipeline = nullptr;
|
||||
// compile
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue