TimmHess / UnrealImageCapture

A small tutorial repository on capturing images with semantic annotation from UnrealEngine to disk.
MIT License
225 stars 51 forks source link

The RenderRequest is not defined #30

Closed stevechaw closed 1 year ago

stevechaw commented 1 year ago

I'm using this code in vs2022, the compile returns not defined error. Am I missing something? Any hint will be appreciated.

ENQUEUE_RENDER_COMMAND(SceneDrawCompletion)( [renderTargetResource](FRHICommandListImmediate& RHICmdList) { FTexture2DRHIRef Target = renderTargetResource->GetRenderTargetTexture(); RenderRequest->Readback.EnqueueCopy(RHICmdList, Target); });

stevechaw commented 1 year ago

ENQUEUE_RENDER_COMMAND(SceneDrawCompletion)( [renderTargetResource, renderRequest](FRHICommandListImmediate& RHICmdList) { FTexture2DRHIRef Target = renderTargetResource->GetRenderTargetTexture(); renderRequest->Readback.EnqueueCopy(RHICmdList, Target); });