r.Shaders.WarningsAsErrors
r.Shaders.WarningsAsErrors is a console variable in Unreal Engine 5 (UE5). See what r.Shaders.WarningsAsErrors does, its values, and how to use this cvar in the Unreal console below.
Category: Renderer · Namespace:
rHelp
Whether to treat warnings as errors when running the shader compiler. Defaults to 0 (disabled). Not all compilers support this mode.
Usage
Unreal console (open with ~)
> r.Shaders.WarningsAsErrors 1Console variables take a value. Replace 1 with the setting you need. Run it with no value to print the current one.
Related in r
r.Shaders.OptimizeVarr.Shaders.SkipCompressionVarr.Shaders.SymbolPathOverrideVarr.Shaders.SymbolsVarr.Shaders.UseGBufferRefactorVarr.Shaders.ValidationVarr.Shaders.WriteSymbolsVarr.Shaders.WriteSymbols.ZipVarr.Shaders.ZeroInitialiseVarr.Shading.EnergyConservationVarr.Shading.EnergyConservation.FormatVarr.Shading.EnergyPreservationVar