Navigation
API > API/Plugins > API/Plugins/PCG
Statically activates/deactivates output pins based on the maximum shader feature level of the current platform.
| Name | UPCGShaderFeatureLevelSwitchSettings |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h |
| Include Path | #include "Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h" |
Syntax
UCLASS (BlueprintType, ClassGroup=(Procedural), Meta=(Keywords="if branch platform shader"))
class UPCGShaderFeatureLevelSwitchSettings : public UPCGPlatformSwitchSettingsBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UPCGData → UPCGSettingsInterface → UPCGSettings → UPCGControlFlowSettings → UPCGPlatformSwitchSettingsBase → UPCGShaderFeatureLevelSwitchSettings
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ERHIFeatureLevel::Type GetCurrentShaderFeatureLevel() |
Returns current platform and platform group, either by querying from editor or by using cooked values. | Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h | |
| Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h | |||
TArray< ERHIFeatureLevel::Type > GetSanitizedRHIFeatureLevels() |
Get the users selection, sanitized to remove None and duplicates. | Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h | |
bool IsRHIFeatureLevelSelected
(
ERHIFeatureLevel::Type InFeatureLevel, |
Returns true if given shader feature level included in users selection. | Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h | |
bool IsRHIFeatureLevelSelected
(
FName InFeatureLevelName, |
Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h |
Public Virtual
Overridden from UPCGSettings
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString GetAdditionalTitleInformation() |
Derived classes can implement this to expose additional information or context, such as an asset in use by the node. | Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h | |
virtual FName GetDefaultNodeName() |
Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h | ||
virtual FText GetDefaultNodeTitle() |
Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h | ||
virtual FText GetNodeTooltipText() |
Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h | ||
virtual bool IsPinStaticallyActive
(
const FName& OutputPinLabel |
True if we know prior to execution that the given pin will be active (not on inactive branch). | Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PreSave
(
FObjectPreSaveContext ObjectSaveContext |
Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h |
Protected Virtual
Overridden from UPCGSettings
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FPCGElementPtr CreateElement() |
Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h | ||
virtual EPCGChangeType GetChangeTypeForProperty
(
const FName& InPropertyName |
Gets the change impact for a given property. | Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h | |
virtual TArray< FPCGPinProperties > InputPinProperties() |
Returns an array of all the input pin properties. You should not add manually a "params" pin, it is handled automatically by FillOverridableParamsPins. | Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h | |
virtual bool IsGPUFriendly
(
const FPCGPreConfiguredSettingsInfo* PreconfiguredInfo |
Whether this node is GPU-friendly: either it has a GPU execution backend, or it runs on CPU but does not force GPU data readbacks or uploads. | Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h | |
virtual TArray< FPCGPinProperties > OutputPinProperties() |
Elements/ControlFlow/PCGShaderFeatureLevelSwitch.h |