UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SkyPassRendering.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 SkyPassRendering.h: Sky pass rendering implementation.
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
10#include "RendererInterface.h"
11#include "MeshPassProcessor.h"
12
13
14
15class FSkyPassMeshProcessor : public FSceneRenderingAllocatorObject<FSkyPassMeshProcessor>, public FMeshPassProcessor
16{
17public:
18
20
21 virtual void AddMeshBatch(const FMeshBatch& RESTRICT MeshBatch, uint64 BatchElementMask, const FPrimitiveSceneProxy* RESTRICT PrimitiveSceneProxy, int32 StaticMeshId = -1) override final;
22 virtual void CollectPSOInitializers(const FSceneTexturesConfig& SceneTexturesConfig, const FMaterial& Material, const FPSOPrecacheVertexFactoryData& VertexFactoryData, const FPSOPrecacheParams& PreCacheParams, TArray<FPSOPrecacheData>& PSOInitializers) override final;
23
25
28
36
37private:
38 bool TryAddMeshBatch(
41 const FPrimitiveSceneProxy* RESTRICT PrimitiveSceneProxy,
43 const FMaterialRenderProxy& MaterialRenderProxy,
44 const FMaterial& Material);
45
46 bool Process(
47 const FMeshBatch& MeshBatch,
49 const FPrimitiveSceneProxy* RESTRICT PrimitiveSceneProxy,
51 const FMaterialRenderProxy& RESTRICT MaterialRenderProxy,
52 const FMaterial& RESTRICT MaterialResource,
53 ERasterizerFillMode MeshFillMode,
54 ERasterizerCullMode MeshCullMode);
55
56 void SetStateForMobile();
57
58 template <typename T>
59 void CollectPSOInitializersInternal(T& SkyPassShaders, const FSceneTexturesConfig& SceneTexturesConfig, const FMaterial& Material, const FPSOPrecacheVertexFactoryData& VertexFactoryData, const FPSOPrecacheParams& PreCacheParams, TArray<FPSOPrecacheData>& PSOInitializers);
60};
61
62
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
#define RESTRICT
Definition Platform.h:706
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ERasterizerCullMode
Definition RHIDefinitions.h:369
ERasterizerFillMode
Definition RHIDefinitions.h:358
EShadingPath
Definition SceneUtils.h:24
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition MaterialRenderProxy.h:102
Definition MaterialShared.h:2058
Definition MeshPassProcessor.h:1670
Definition MeshPassProcessor.h:2199
const FScene *RESTRICT Scene
Definition MeshPassProcessor.h:2203
Definition PrimitiveSceneProxy.h:296
Definition SceneView.h:1425
Definition ScenePrivate.h:2875
Definition SkyPassRendering.h:16
FMeshPassProcessorRenderState PassDrawRenderState
Definition SkyPassRendering.h:26
ESkyPassType SkyPassType
Definition SkyPassRendering.h:35
ESkyPassType
Definition SkyPassRendering.h:30
@ SPT_RealTimeCapture_DepthNop
Definition SkyPassRendering.h:33
@ SPT_RealTimeCapture_DepthWrite
Definition SkyPassRendering.h:32
@ SPT_Default
Definition SkyPassRendering.h:31
static FRDGTextureDesc GetCaptureFrameSkyEnvMapTextureDesc(uint32 CubeWidth, uint32 CubeMipCount)
Definition SkyPassRendering.cpp:329
virtual void AddMeshBatch(const FMeshBatch &RESTRICT MeshBatch, uint64 BatchElementMask, const FPrimitiveSceneProxy *RESTRICT PrimitiveSceneProxy, int32 StaticMeshId=-1) override final
Definition SkyPassRendering.cpp:23
virtual void CollectPSOInitializers(const FSceneTexturesConfig &SceneTexturesConfig, const FMaterial &Material, const FPSOPrecacheVertexFactoryData &VertexFactoryData, const FPSOPrecacheParams &PreCacheParams, TArray< FPSOPrecacheData > &PSOInitializers) override final
Definition SkyPassRendering.cpp:185
EShadingPath ShadingPath
Definition SkyPassRendering.h:27
Definition Array.h:670
Definition ConcurrentLinearAllocator.h:571
Type
Definition RHIFeatureLevel.h:20
Definition MeshBatch.h:371
Definition MeshPassProcessor.h:2118
Definition PSOPrecache.h:30
Definition PSOPrecache.h:150
Definition RenderGraphDefinitions.h:627
Definition SceneTexturesConfig.h:114