UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DrawRectangle.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Math/MathFwd.h"
6#include "RendererInterface.h"
7
9class FSceneView;
11
12template<typename ShaderType, typename PointerTableType> class TShaderRefBase;
14
16{
19 const FShader* VertexShader,
20 float X,
21 float Y,
22 float SizeX,
23 float SizeY,
24 float U,
25 float V,
26 float SizeU,
27 float SizeV,
28 FIntPoint TargetSize,
29 FIntPoint TextureSize);
30
33
52 FRHICommandList& RHICmdList,
54 float X,
55 float Y,
56 float SizeX,
57 float SizeY,
58 float U,
59 float V,
60 float SizeU,
61 float SizeV,
62 FIntPoint TargetSize,
63 FIntPoint TextureSize,
65 uint32 InstanceCount = 1
66 );
67
69 FRHICommandList& RHICmdList,
71 const FSceneView& View,
73 uint32 InstanceCount = 1
74 );
75
76 // NOTE: Assumes previously set PSO has PrimitiveType = PT_TriangleList
78 FRHICommandList& RHICmdList,
80 float X,
81 float Y,
82 float SizeX,
83 float SizeY,
84 float U,
85 float V,
86 float SizeU,
87 float SizeV,
88 FIntPoint TargetSize,
89 FIntPoint TextureSize,
90 int32 StereoViewIndex,
91 bool bHasCustomMesh,
93 );
94}
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
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition RHICommandList.h:3819
Definition SceneView.h:1425
Definition Shader.h:637
Definition Shader.h:829
Definition Shader.h:1021
Definition PostProcessing.cpp:311
void SetDrawRectangleParameters(FRHIBatchedShaderParameters &BatchedParameters, const FShader *VertexShader, float X, float Y, float SizeX, float SizeY, float U, float V, float SizeU, float SizeV, FIntPoint TargetSize, FIntPoint TextureSize)
Definition SceneFilterRendering.cpp:95
void DrawRectangle(FRHICommandList &RHICmdList, const TShaderRef< FShader > &VertexShader, float X, float Y, float SizeX, float SizeY, float U, float V, float SizeU, float SizeV, FIntPoint TargetSize, FIntPoint TextureSize, EDrawRectangleFlags Flags, uint32 InstanceCount)
Definition SceneFilterRendering.cpp:338
void DrawPostProcessPass(FRHICommandList &RHICmdList, const TShaderRef< FShader > &VertexShader, float X, float Y, float SizeX, float SizeY, float U, float V, float SizeU, float SizeV, FIntPoint TargetSize, FIntPoint TextureSize, int32 StereoViewIndex, bool bHasCustomMesh, EDrawRectangleFlags Flags)
Definition SceneFilterRendering.cpp:383
Definition RHIShaderParameters.h:241
Definition IntPoint.h:25