Files
UnrealEngineUWP/Engine/Source/Editor/UnrealEd/Classes/Commandlets/CompileShadersTestBedCommandlet.h
Jason Nadro ea73924fa5 Adding UCompileShadersTestBedCommandlet which is meant as a simple way to profile/test/optimization shader compilation.
- Currently it only compiles the global shaders.
- Having a commandlet is faster and easier to run repeatable tests than dealing with starting up the editor.

# How to run
ProjectName -run=CompileShadersTestBed -ddc=Cold -ddc=NoShared -noshaderddc -trace=default,counters

This ensures you don't get results in any DDC and that you always compile shaders.

#rb trivial
#jira none
#preflight 6238a0caca34ffd7bf599907

[CL 19453140 by Jason Nadro in ue5-main branch]
2022-03-21 12:18:28 -04:00

18 lines
413 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Commandlets/Commandlet.h"
#include "CompileShadersTestBedCommandlet.generated.h"
UCLASS(config=Editor)
class UCompileShadersTestBedCommandlet : public UCommandlet
{
GENERATED_UCLASS_BODY()
//~ Begin UCommandlet Interface
virtual int32 Main(const FString& Params) override;
//~ End UCommandlet Interface
};