r.Material.PreshaderGapInterval
r.Material.PreshaderGapInterval
#Overview
name: r.Material.PreshaderGapInterval
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Insert an empty element in the preshader buffer every specified number of elements in the buffer. Workaround for a shader compiler register overflow bug.
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/Materials/HLSLMaterialTranslator.cpp:198
Scope: file
Source code excerpt:
static int32 GPreshaderGapInterval = 32;
static FAutoConsoleVariableRef CVarPreshaderGapInterval(
TEXT("r.Material.PreshaderGapInterval"),
GPreshaderGapInterval,
TEXT("Insert an empty element in the preshader buffer every specified number of elements in the buffer. Workaround for a shader compiler register overflow bug."));
/* Controls whether DDC caching of material translation results should be forcefully disabled. */
#define FORCE_DISABLE_MATERIAL_TRANSLATION_DDC false
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Classes/Materials/Material.h:1027
Scope: file
Source code excerpt:
uint8 bIsBlendable : 1;
/** If non-zero, overrides r.Material.PreshaderGapInterval for this material. Workaround for a platform specific register overflow bug. */
UPROPERTY(EditAnywhere, Category = Material, AdvancedDisplay)
uint16 PreshaderGap;
/** true if we have printed a warning about material usage for a given usage flag. */
UPROPERTY(transient, duplicatetransient)
uint32 UsageFlagWarnings;