UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SceneFilterRendering.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 SceneFilterRendering.h: Filter rendering definitions.
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
10#include "RenderResource.h"
11#include "RendererInterface.h"
12#include "ShaderParameters.h"
13#include "Shader.h"
17
18enum class EStereoscopicPass;
19
23 SHADER_PARAMETER( FVector4f, UVScaleBias )
26
45 FRHICommandList& RHICmdList,
46 float X,
47 float Y,
48 float SizeX,
49 float SizeY,
50 float U,
51 float V,
52 float SizeU,
53 float SizeV,
54 FIntPoint TargetSize,
55 FIntPoint TextureSize,
58 uint32 InstanceCount = 1
59 );
60
61// NOTE: Assumes previously set PSO has PrimitiveType = PT_TriangleList
63 FRHICommandList& RHICmdList,
64 float X,
65 float Y,
66 float SizeX,
67 float SizeY,
68 const FMatrix& PosTransform,
69 float U,
70 float V,
71 float SizeU,
72 float SizeV,
73 const FMatrix& TexTransform,
74 FIntPoint TargetSize,
75 FIntPoint TextureSize
76 );
77
78// NOTE: Assumes previously set PSO has PrimitiveType = PT_TriangleList
80 FRHICommandList& RHICmdList,
81 float X,
82 float Y,
83 float SizeX,
84 float SizeY,
85 float U,
86 float V,
87 float SizeU,
88 float SizeV,
89 FIntPoint TargetSize,
90 FIntPoint TextureSize,
93 int32 InstanceCount = 1
94 );
95
96// NOTE: Assumes previously set PSO has PrimitiveType = PT_TriangleList
98 FRHICommandList& RHICmdList,
99 float X,
100 float Y,
101 float SizeX,
102 float SizeY,
103 float U,
104 float V,
105 float SizeU,
106 float SizeV,
107 FIntPoint TargetSize,
108 FIntPoint TextureSize,
110 int32 StereoViewIndex,
111 bool bHasCustomMesh,
113 int32 InstanceCount = 1
114 );
115
117{
118public:
119
120 // if one of those constants change, UpscaleVS needs to be recompiled
121
122 // number of quads in x
123 static const uint32 Width = 32; // used for CylindricalProjection (smaller FOV could do less tessellation)
124 // number of quads in y
125 static const uint32 Height = 20; // to minimize distortion we also tessellate in Y but a perspective distortion could do that with fewer triangles.
126
128 void InitRHI(FRHICommandListBase& RHICmdList) override;
129
130 uint32 NumVertices() const;
131
132 uint32 NumPrimitives() const;
133};
134
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
#define X(Name, Desc)
Definition FormatStringSan.h:47
EDrawRectangleFlags
Definition RendererInterface.h:540
@ EDRF_Default
Definition RendererInterface.h:542
RENDERER_API void DrawPostProcessPass(FRHICommandList &RHICmdList, float X, float Y, float SizeX, float SizeY, float U, float V, float SizeU, float SizeV, FIntPoint TargetSize, FIntPoint TextureSize, const TShaderRef< FShader > &VertexShader, int32 StereoViewIndex, bool bHasCustomMesh, EDrawRectangleFlags Flags=EDRF_Default, int32 InstanceCount=1)
Definition SceneFilterRendering.cpp:308
RENDERER_API void DrawHmdMesh(FRHICommandList &RHICmdList, float X, float Y, float SizeX, float SizeY, float U, float V, float SizeU, float SizeV, FIntPoint TargetSize, FIntPoint TextureSize, EStereoscopicPass StereoView, const TShaderRef< FShader > &VertexShader, int32 InstanceCount=1)
RENDERER_API void DrawTransformedRectangle(FRHICommandList &RHICmdList, float X, float Y, float SizeX, float SizeY, const FMatrix &PosTransform, float U, float V, float SizeU, float SizeV, const FMatrix &TexTransform, FIntPoint TargetSize, FIntPoint TextureSize)
Definition SceneFilterRendering.cpp:220
RENDERER_API void DrawRectangle(FRHICommandList &RHICmdList, float X, float Y, float SizeX, float SizeY, float U, float V, float SizeU, float SizeV, FIntPoint TargetSize, FIntPoint TextureSize, const TShaderRef< FShader > &VertexShader, EDrawRectangleFlags Flags=EDRF_Default, uint32 InstanceCount=1)
Definition SceneFilterRendering.cpp:200
#define END_GLOBAL_SHADER_PARAMETER_STRUCT
Definition ShaderParameterMacros.h:1669
#define BEGIN_GLOBAL_SHADER_PARAMETER_STRUCT
Definition ShaderParameterMacros.h:1663
#define SHADER_PARAMETER(MemberType, MemberName)
Definition ShaderParameterMacros.h:1684
EStereoscopicPass
Definition StereoRendering.h:21
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition RenderResource.h:509
Definition RHICommandList.h:455
Definition RHICommandList.h:3819
Definition Shader.h:829
Definition SceneFilterRendering.h:117
Definition Shader.h:1021
Definition IntPoint.h:25