14#include "Runtime/RenderCore/Public/RenderingThread.h"
18 constexpr bool bEnableModifyingPostProcessEffects =
true;
21 bEnableModifyingPostProcessEffects);
25 : Super(ObjectInitializer)
28 TEXT(
"Material'/Carla/PostProcessingMaterials/PhysicLensDistortion.PhysicLensDistortion'"));
46 Super::EndPlay(EndPlayReason);
52 ENQUEUE_RENDER_COMMAND(MeasureTime)
54 [](
auto &InRHICmdList)
56 std::chrono::time_point<std::chrono::high_resolution_clock> Time =
57 std::chrono::high_resolution_clock::now();
58 auto Duration = std::chrono::duration_cast< std::chrono::milliseconds >(Time.time_since_epoch());
59 uint64_t Milliseconds = Duration.count();
61 FString(
" Time: ") + FString::FromInt(Milliseconds);
62 TRACE_CPUPROFILER_EVENT_SCOPE_TEXT(*ProfilerText);
65 FPixelReader::SendPixelsInRenderThread<ASceneCaptureCamera, FColor>(*
this);
TSharedPtr< const FActorInfo > carla::rpc::ActorState UWorld * World
static FActorDefinition GetSensorDefinition()
virtual void SendGBufferTextures(FGBufferRequest &GBuffer) override
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds) override
virtual void OnLastClientDisconnected() override
void BeginPlay() override
void EndPlay(const EEndPlayReason::Type EndPlayReason) override
virtual void OnFirstClientConnected() override
ASceneCaptureCamera(const FObjectInitializer &ObjectInitializer)
void SendGBufferTexturesInternal(T &Self, FGBufferRequest &GBufferData)
bool AddPostProcessingMaterial(const FString &Path)
Load the UMaterialInstanceDynamic at the given Path and append it to the list of shaders with Weight.
static uint64_t GetFrameCounter()
static FActorDefinition MakeCameraDefinition(const FString &Id, bool bEnableModifyingPostProcessEffects=false)
创建一个相机参与者定义。