r.PSOPrecache.GlobalComputeShaders
r.PSOPrecache.GlobalComputeShaders
#Overview
name: r.PSOPrecache.GlobalComputeShaders
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Precache all global compute shaders during startup (default 0).
It is referenced in 2
C++ source files.
#Summary
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/PSOPrecache.cpp:9
Scope: file
Source code excerpt:
static TAutoConsoleVariable<int32> CVarPrecacheGlobalComputeShaders(
TEXT("r.PSOPrecache.GlobalComputeShaders"),
0,
TEXT("Precache all global compute shaders during startup (default 0)."),
ECVF_ReadOnly
);
int32 GPSOPrecacheComponents = 1;
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp:9494
Scope (from outer to inner):
file
function void PrecacheComputePipelineStatesForGlobalShaders
Source code excerpt:
void PrecacheComputePipelineStatesForGlobalShaders(EShaderPlatform Platform, const ITargetPlatform* TargetPlatform)
{
static IConsoleVariable* PrecacheGlobalComputeShadersCVar = IConsoleManager::Get().FindConsoleVariable(TEXT("r.PSOPrecache.GlobalComputeShaders"));
if (!PipelineStateCache::IsPSOPrecachingEnabled() || PrecacheGlobalComputeShadersCVar == nullptr || PrecacheGlobalComputeShadersCVar->GetInt() == 0)
{
return;
}
FPlatformTypeLayoutParameters LayoutParams;