12template<
typename Type>
44 checkf(CVar !=
nullptr,
TEXT(
"Failed to find CVar %s when getting current value for FShaderPlatformCachedIniValue"), *CVarName);
50#if ALLOW_OTHER_PLATFORM_CONFIG
60 ensureMsgf(
OtherPlatformVar.IsValid(),
TEXT(
"Failed to get another platform's version of a cvar (possible name: '%s'). It is probably an esoteric subclass that needs to implement GetPlatformValueVariable."), *CVarName);
71 checkf(IniPlatformName ==
FName(FPlatformProperties::IniPlatformName()),
TEXT(
"FShaderPlatformCachedIniValue can only look up the current platform when ALLOW_OTHER_PLATFORM_CONFIG is false"));
#define ensureMsgf( InExpression, InFormat,...)
Definition AssertionMacros.h:465
#define checkf(expr, format,...)
Definition AssertionMacros.h:315
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
@ ECVF_ReadOnly
Definition IConsoleManager.h:71
FName ShaderPlatformToPlatformName(EShaderPlatform Platform)
Definition RHIStrings.cpp:197
EShaderPlatform GMaxRHIShaderPlatform
Definition RHI.cpp:1335
Definition NameTypes.h:617
Definition IConsoleManager.h:558
void GetValue(int32 &OutIntValue) const
Definition IConsoleManager.h:640
Definition SharedPointer.h:692
virtual IConsoleVariable * RegisterConsoleVariable(const TCHAR *Name, bool DefaultValue, const TCHAR *Help, uint32 Flags=ECVF_Default)=0
virtual IConsoleVariable * FindConsoleVariable(const TCHAR *Name, bool bTrackFrequentCalls=true) const =0
static IConsoleManager & Get()
Definition IConsoleManager.h:1270