Draw Material to Render Target

I realized that the problem wasn’t with the engine version. The problem was due to the directx version. For some reason, the render target works differently on 11 than on 12. Does anyone know why?