![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "RendererUtils.h"#include "RendererPrivateUtils.h"#include "Nanite/NaniteRayTracing.h"#include "RenderTargetPool.h"#include "RHIDefinitions.h"#include "DataDrivenShaderPlatformInfo.h"#include "VisualizeTexture.h"#include "ScenePrivate.h"#include "SystemTextures.h"#include "UnifiedBuffer.h"#include "ComponentRecreateRenderStateContext.h"Classes | |
| class | FRTWriteMaskDecodeCS |
| class | FClearIndirectDispatchArgsCS |
Namespaces | |
| namespace | Substrate |
| namespace | Nanite |
| namespace | UE |
| namespace | UE::RendererPrivateUtils |
| namespace | UE::RendererPrivateUtils::Implementation |
Functions | |
| bool | ShouldSkipNaniteLPIs (EShaderPlatform ShaderPlatform) |
| IMPLEMENT_GLOBAL_SHADER (FRTWriteMaskDecodeCS, "/Engine/Private/RTWriteMaskDecode.usf", "RTWriteMaskDecodeMain", SF_Compute) | |
| IMPLEMENT_GLOBAL_SHADER_PARAMETER_STRUCT (FSubstratePublicGlobalUniformParameters, "SubstratePublic") | |
| RENDERER_API FBufferRHIRef & | GetOneTileQuadVertexBuffer () |
| RENDERER_API FBufferRHIRef & | GetOneTileQuadIndexBuffer () |
| IMPLEMENT_GLOBAL_SHADER (FClearIndirectDispatchArgsCS, "/Engine/Private/RendererUtils.usf", "ClearIndirectDispatchArgsCS", SF_Compute) | |
| void | AddClearIndirectDispatchArgsPass (FRDGBuilder &GraphBuilder, ERHIFeatureLevel::Type FeatureLevel, FRDGBufferRef IndirectArgsRDG, const FIntVector3 &DimClearValue, uint32 NumIndirectArgs, uint32 IndirectArgStride) |
| FRDGBufferRef | CreateAndClearIndirectDispatchArgs (FRDGBuilder &GraphBuilder, ERHIFeatureLevel::Type FeatureLevel, const TCHAR *Name, const FIntVector3 &DimClearValue, uint32 NumIndirectArgs, uint32 IndirectArgStride) |
Variables | |
| TGlobalResource< FTileTexCoordVertexBuffer > | GOneTileQuadVertexBuffer (1) |
| TGlobalResource< FTileIndexBuffer > | GOneTileQuadIndexBuffer (1) |
| void AddClearIndirectDispatchArgsPass | ( | FRDGBuilder & | GraphBuilder, |
| ERHIFeatureLevel::Type | FeatureLevel, | ||
| FRDGBufferRef | IndirectArgsRDG, | ||
| const FIntVector3 & | DimClearValue, | ||
| uint32 | NumIndirectArgs, | ||
| uint32 | IndirectArgStride | ||
| ) |
Clear indirect args for GPU-side building, initializes the XYZ dimensions of the dispatch arg to DimClearValue and everything else in the strided range to zero. Can clear one or more args (NumIndirectArgs). IndirectArgStride gives the size (in uints) of each argument, this may be larger than the required size. E.g., to make space for an atomic counter.
| FRDGBufferRef CreateAndClearIndirectDispatchArgs | ( | FRDGBuilder & | GraphBuilder, |
| ERHIFeatureLevel::Type | FeatureLevel, | ||
| const TCHAR * | Name, | ||
| const FIntVector3 & | DimClearValue, | ||
| uint32 | NumIndirectArgs, | ||
| uint32 | IndirectArgStride | ||
| ) |
Create an indirect args buffer and clear it using AddClearIndirectDispatchArgsPass.
| RENDERER_API FBufferRHIRef & GetOneTileQuadIndexBuffer | ( | ) |
One Tile Quad Index Buffer
| RENDERER_API FBufferRHIRef & GetOneTileQuadVertexBuffer | ( | ) |
One Tile Quad Vertex Buffer
| IMPLEMENT_GLOBAL_SHADER | ( | FClearIndirectDispatchArgsCS | , |
| "/Engine/Private/RendererUtils.usf" | , | ||
| "ClearIndirectDispatchArgsCS" | , | ||
| SF_Compute | |||
| ) |
| IMPLEMENT_GLOBAL_SHADER | ( | FRTWriteMaskDecodeCS | , |
| "/Engine/Private/RTWriteMaskDecode.usf" | , | ||
| "RTWriteMaskDecodeMain" | , | ||
| SF_Compute | |||
| ) |
| IMPLEMENT_GLOBAL_SHADER_PARAMETER_STRUCT | ( | FSubstratePublicGlobalUniformParameters | , |
| "SubstratePublic" | |||
| ) |
| bool ShouldSkipNaniteLPIs | ( | EShaderPlatform | ShaderPlatform | ) |
Returns true if Nanite primitives are to be skipped in Light Primitive Interactions (LPI) and the primitive acceleration structure (octree).
| TGlobalResource< FTileIndexBuffer > GOneTileQuadIndexBuffer(1) | ( | 1 | ) |
| TGlobalResource< FTileTexCoordVertexBuffer > GOneTileQuadVertexBuffer(1) | ( | 1 | ) |