UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StaticMeshBatch.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "HAL/Platform.h"
6#include "MeshBatch.h"
7#include "MeshPassProcessor.h"
8
10
33
34namespace DecalRendering { enum { DecalRenderTargetMode_NumBits = 5 }; }
35
40{
41public:
42
45 float InScreenSize,
49 bool bInUseAnisotropy,
55 ERHIFeatureLevel::Type FeatureLevel);
56
57 int8 GetLODIndex() const { return bInvalidLODIndex ? -1 : int8(UnsignedLODIndex); }
58
61
64
67
70
71 /* Every bit corresponds to one MeshPass. If bit is set, then FPrimitiveSceneInfo::CachedMeshDrawCommandInfos contains this mesh pass. */
73
74private:
75
77 uint8 UnsignedLODIndex : 4;
78
80 uint8 bInvalidLODIndex : 1;
81
82public:
83
85 UE_DEPRECATED(5.4, "Public LODIndex member is deprecated and doesn't contain valid data anymore! Use GetLODIndex() function instead.")
87
90
93
94 uint8 CastShadow : 1; // Whether it can be used in shadow renderpasses.
95 uint8 bUseForMaterial : 1; // Whether it can be used in renderpasses requiring material outputs.
96 uint8 bUseForDepthPass : 1; // Whether it can be used in depth pass.
97 uint8 bUseAsOccluder : 1; // User hint whether it's a good occluder.
98 uint8 bUseSkyMaterial : 1; // Whether this batch uses a Sky material or not.
99 uint8 bUseSingleLayerWaterMaterial : 1; // Whether this batch uses a water material or not.
100 uint8 bUseHairStrands : 1; // Whether it contains hair strands geometry.
101 uint8 bUseAnisotropy : 1; // Whether material uses anisotropy parameter.
102 uint8 bOverlayMaterial : 1; // Whether mesh uses overlay material.
103
108
111
114
117
120
123
125 uint8 DecalRenderTargetModeMask : DecalRendering::DecalRenderTargetMode_NumBits;
126
129};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int8 int8
An 8-bit signed integer.
Definition Platform.h:1121
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint8_t uint8
Definition binka_ue_file_header.h:8
uint16_t uint16
Definition binka_ue_file_header.h:7
Definition HitProxies.h:86
Definition MeshPassProcessor.h:156
Definition PrimitiveSceneInfo.h:266
Definition StaticMeshBatch.h:40
uint8 bRenderToVirtualTexture
Definition StaticMeshBatch.h:105
uint8 bUseForLumenSceneCapture
Definition StaticMeshBatch.h:122
uint8 bUseForDepthPass
Definition StaticMeshBatch.h:96
uint8 bUseForMaterial
Definition StaticMeshBatch.h:95
uint8 CastShadow
Definition StaticMeshBatch.h:94
uint8 bSupportsNaniteRendering
Definition StaticMeshBatch.h:113
uint8 bUseSingleLayerWaterMaterial
Definition StaticMeshBatch.h:99
uint8 bUseAsOccluder
Definition StaticMeshBatch.h:97
int32 GetStaticMeshCommandInfoIndex(EMeshPass::Type MeshPass) const
Definition StaticMeshBatch.cpp:73
uint16 NumElements
Definition StaticMeshBatch.h:69
uint8 bSupportsGPUScene
Definition StaticMeshBatch.h:116
float ScreenSize
Definition StaticMeshBatch.h:66
uint8 DecalRenderTargetModeMask
Definition StaticMeshBatch.h:125
int8 GetLODIndex() const
Definition StaticMeshBatch.h:57
int8 LODIndex
Definition StaticMeshBatch.h:86
uint8 bSupportsCachingMeshDrawCommands
Definition StaticMeshBatch.h:110
uint8 RuntimeVirtualTextureMaterialType
Definition StaticMeshBatch.h:107
uint8 bUseForWaterInfoTextureDepth
Definition StaticMeshBatch.h:119
uint8 bUseAnisotropy
Definition StaticMeshBatch.h:101
uint16 CommandInfosBase
Definition StaticMeshBatch.h:72
uint8 bUseHairStrands
Definition StaticMeshBatch.h:100
int32 Id
Definition StaticMeshBatch.h:63
uint8 bDitheredLODTransition
Definition StaticMeshBatch.h:89
uint8 bOverlayMaterial
Definition StaticMeshBatch.h:102
uint8 bUseSkyMaterial
Definition StaticMeshBatch.h:98
FMeshPassMask CommandInfosMask
Definition StaticMeshBatch.h:60
uint8 bSelectable
Definition StaticMeshBatch.h:92
Definition StaticMeshBatch.h:16
int32 Id
Definition StaticMeshBatch.h:23
~FStaticMeshBatch()
Definition StaticMeshBatch.cpp:23
FPrimitiveSceneInfo * PrimitiveSceneInfo
Definition StaticMeshBatch.h:20
Definition DecalRenderingCommon.cpp:14
Definition MeshPassProcessor.h:36
Type
Definition RHIFeatureLevel.h:20
Definition RuntimeVirtualTexture.h:231
Definition MeshBatch.h:371