Files
UnrealEngine/Engine/Source/Runtime/Renderer/Private/GPUBenchmark.h
2025-05-18 13:04:45 +08:00

18 lines
718 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
/*=============================================================================
GPUBenchmark.h: GPUBenchmark to compute performance index to set video options automatically
=============================================================================*/
#pragma once
#include "CoreMinimal.h"
class FRHICommandListImmediate;
class FSceneView;
struct FSynthBenchmarkResults;
// @param >0, WorkScale 10 for normal precision and runtime of less than a second
// @param bDebugOut has no effect in shipping
void RendererGPUBenchmark(FRHICommandListImmediate& RHICmdList, FSynthBenchmarkResults& InOut, const FSceneView& View, float WorkScale, bool bDebugOut = false);