Closed stevechaw closed 1 year ago
ENQUEUE_RENDER_COMMAND(SceneDrawCompletion)( [renderTargetResource, renderRequest](FRHICommandListImmediate& RHICmdList) { FTexture2DRHIRef Target = renderTargetResource->GetRenderTargetTexture(); renderRequest->Readback.EnqueueCopy(RHICmdList, Target); });
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); });