UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PrimitiveViewRelevance.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7
14{
15 // Warning: This class is memzeroed externally as 0 is assumed a
16 // valid value for all members meaning 'not relevant'. If this
17 // changes existing class usage should be re-evaluated
18
51
58
63
64 bool HasVelocity() const
65 {
67 }
68
71 {
72 // the class is only storing bits, the following avoids code redundancy
73 uint8 * RESTRICT p = (uint8*)this;
74 for(uint32 i = 0; i < sizeof(*this); ++i)
75 {
76 *p++ = 0;
77 }
78
79 // only exceptions (bugs we need to fix?):
80
81 bOpaque = true;
82 // without it BSP doesn't render
83 bRenderInMainPass = true;
84 }
85
88 {
89 // the class is only storing bits, the following avoids code redundancy
90 const uint8 * RESTRICT s = (const uint8*)&B;
91 uint8 * RESTRICT d = (uint8*)this;
92 for(uint32 i = 0; i < sizeof(*this); ++i)
93 {
94 *d = *d | *s;
95 ++s;++d;
96 }
97 return *this;
98 }
99};
#define RESTRICT
Definition Platform.h:706
#define PRAGMA_ENABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:12
#define PRAGMA_DISABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:8
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition MaterialRelevance.h:13
uint8 bTranslucencyModulate
Definition MaterialRelevance.h:33
uint8 bSeparateTranslucency
Definition MaterialRelevance.h:32
uint8 bOutputsTranslucentVelocity
Definition MaterialRelevance.h:37
uint8 bPostMotionBlurTranslucency
Definition MaterialRelevance.h:34
uint8 bOpaque
Definition MaterialRelevance.h:27
uint8 bNormalTranslucency
Definition MaterialRelevance.h:35
Definition PrimitiveViewRelevance.h:14
uint32 bRenderInMainPass
Definition PrimitiveViewRelevance.h:34
uint32 bStaticRelevance
Definition PrimitiveViewRelevance.h:20
uint32 bRenderInSecondStageDepthPass
Definition PrimitiveViewRelevance.h:50
uint32 bUsesLightingChannels
Definition PrimitiveViewRelevance.h:46
uint32 bTranslucentSelfShadow
Definition PrimitiveViewRelevance.h:48
uint32 bDynamicRelevance
Definition PrimitiveViewRelevance.h:22
uint32 bDrawRelevance
Definition PrimitiveViewRelevance.h:24
uint32 bEditorPrimitiveRelevance
Definition PrimitiveViewRelevance.h:36
uint32 bHasSimpleLights
Definition PrimitiveViewRelevance.h:44
FPrimitiveViewRelevance()
Definition PrimitiveViewRelevance.h:70
FPrimitiveViewRelevance & operator|=(const FPrimitiveViewRelevance &B)
Definition PrimitiveViewRelevance.h:87
uint32 bEditorNoDepthTestPrimitiveRelevance
Definition PrimitiveViewRelevance.h:42
bool HasTranslucency() const
Definition PrimitiveViewRelevance.h:59
uint32 bRenderCustomDepth
Definition PrimitiveViewRelevance.h:30
uint32 bEditorStaticSelectionRelevance
Definition PrimitiveViewRelevance.h:40
uint32 bInitializedThisFrame
Definition PrimitiveViewRelevance.h:57
uint32 bVelocityRelevance
Definition PrimitiveViewRelevance.h:28
uint32 bEditorVisualizeLevelInstanceRelevance
Definition PrimitiveViewRelevance.h:38
bool HasVelocity() const
Definition PrimitiveViewRelevance.h:64
uint32 bRenderInDepthPass
Definition PrimitiveViewRelevance.h:32
uint32 bShadowRelevance
Definition PrimitiveViewRelevance.h:26