UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GPUFeedbackCompaction.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "GlobalShader.h"
7
8// Setups FBuildFeedbackHashTableCS arguments to run one lane per feedback element
10{
13
18 SHADER_PARAMETER(uint32, FeedbackBufferSize)
20
21 class FFeedbackBufferStride : SHADER_PERMUTATION_RANGE_INT("FEEDBACK_BUFFER_STRIDE", 1, 2);
22 using FPermutationDomain = TShaderPermutationDomain<FFeedbackBufferStride>;
23
24 static bool ShouldCompilePermutation(const FGlobalShaderPermutationParameters& Parameters);
25 static void ModifyCompilationEnvironment(const FGlobalShaderPermutationParameters& Parameters, FShaderCompilerEnvironment& OutEnvironment);
26};
27
28// Takes a list of feedback elements and builds a hash table with element counts
53
54// Compacts feedback element hash table into a unique and tightly packed array of feedback elements with counts
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_GLOBAL_SHADER(ShaderClass)
Definition GlobalShader.h:408
const bool
Definition NetworkReplayStreaming.h:178
#define SHADER_PARAMETER_RDG_BUFFER_SRV(ShaderType, MemberName)
Definition ShaderParameterMacros.h:1800
#define RDG_BUFFER_ACCESS(MemberName, Access)
Definition ShaderParameterMacros.h:1923
#define SHADER_PARAMETER_RDG_BUFFER_UAV(ShaderType, MemberName)
Definition ShaderParameterMacros.h:1812
#define BEGIN_SHADER_PARAMETER_STRUCT(StructTypeName, DllStorage)
Definition ShaderParameterMacros.h:1482
#define END_SHADER_PARAMETER_STRUCT()
Definition ShaderParameterMacros.h:1485
#define SHADER_PARAMETER(MemberType, MemberName)
Definition ShaderParameterMacros.h:1684
#define SHADER_USE_PARAMETER_STRUCT(ShaderClass, ShaderParentClass)
Definition ShaderParameterStruct.h:62
#define SHADER_PERMUTATION_RANGE_INT(InDefineName, Start, Count)
Definition ShaderPermutation.h:499
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition GPUFeedbackCompaction.h:30
Definition GPUFeedbackCompaction.h:10
Definition GPUFeedbackCompaction.h:56
Definition GlobalShader.h:269
Definition GlobalShader.h:73
Definition ShaderCore.h:544
Definition ShaderPermutation.h:229