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);
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds) override
ASceneCaptureCamera(const FObjectInitializer &ObjectInitializer)
bool AddPostProcessingMaterial(const FString &Path)
Load the UMaterialInstanceDynamic at the given Path and append it to the list of shaders with Weight...
A definition of a Carla Actor with all the variation and attributes.
static uint64_t GetFrameCounter()
static FActorDefinition GetSensorDefinition()
virtual void SendGBufferTextures(FGBufferRequest &GBuffer) override
virtual void OnFirstClientConnected() override
void SendGBufferTexturesInternal(T &Self, FGBufferRequest &GBufferData)
void EndPlay(const EEndPlayReason::Type EndPlayReason) override
static FActorDefinition MakeCameraDefinition(const FString &Id, bool bEnableModifyingPostProcessEffects=false)
void BeginPlay() override
virtual void OnLastClientDisconnected() override