mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 04:41:39 +00:00
Precompile pipelines for the custom gaussian blur shaders.
This commit is contained in:
parent
56068f77d8
commit
fde79061b9
1 changed files with 17 additions and 2 deletions
|
|
@ -5464,8 +5464,23 @@ static void ModelConsumerThread()
|
|||
EnqueueGraphicsPipelineCompilation(msaaPipelineState, emptyHolderPair, "Precompiled Pipeline MSAA");
|
||||
}
|
||||
|
||||
SanitizePipelineState(pipelineState);
|
||||
EnqueueGraphicsPipelineCompilation(pipelineState, emptyHolderPair, "Precompiled Pipeline");
|
||||
// Compile the custom gaussian blur shaders that we pass to the game.
|
||||
if (pipelineState.pixelShader != nullptr &&
|
||||
pipelineState.pixelShader->shaderCacheEntry != nullptr &&
|
||||
pipelineState.pixelShader->shaderCacheEntry->hash == 0x4294510C775F4EE8)
|
||||
{
|
||||
for (auto& shader : g_gaussianBlurShaders)
|
||||
{
|
||||
pipelineState.pixelShader = shader.get();
|
||||
SanitizePipelineState(pipelineState);
|
||||
EnqueueGraphicsPipelineCompilation(pipelineState, emptyHolderPair, "Precompiled Gaussian Blur Pipeline");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SanitizePipelineState(pipelineState);
|
||||
EnqueueGraphicsPipelineCompilation(pipelineState, emptyHolderPair, "Precompiled Pipeline");
|
||||
}
|
||||
}
|
||||
|
||||
g_pendingPipelineStateCache = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue