After enable dx12 for raytracing, ReadPixels crashes in 4.22 preview4, the following code work well in 4.21
code snippet:
FTextureRenderTargetCubeResource* CubeResource = (FTextureRenderTargetCubeResource*)SceneCapture->GetCaptureComponentCube()->TextureTarget->GameThread_GetRenderTargetResource();
CubeResource->ReadPixels(SurfaceData, FReadSurfaceDataFlags(RCM_UNorm, CubeFace_NegX));
log:
DestTexture2D is nullptr
Fatal error: [File:D:\Build++UE4\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp] [Line: 819]
Rendering thread exception:
Fatal error!