You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Copying //UE4/Dev-Rendering to Dev-Main (//UE4/Dev-Main) @ 6944469
#rb none #rnx [CL 6944849 by Rolando Caloca in Main branch]
This commit is contained in:
@@ -410,7 +410,7 @@ void FVisualizeTexturePresent::PresentContent(FRHICommandListImmediate& RHICmdLi
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
DestRect = SrcRect;
|
||||
DestRect = View.UnconstrainedViewRect;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -453,9 +453,8 @@ void FVisualizeTexturePresent::PresentContent(FRHICommandListImmediate& RHICmdLi
|
||||
}
|
||||
|
||||
auto& RenderTarget = View.Family->RenderTarget->GetRenderTargetTexture();
|
||||
PRAGMA_DISABLE_DEPRECATION_WARNINGS
|
||||
SetRenderTarget(RHICmdList, RenderTarget, FTextureRHIRef(), true);
|
||||
PRAGMA_ENABLE_DEPRECATION_WARNINGS
|
||||
FRHIRenderPassInfo RPInfo(RenderTarget, ERenderTargetActions::Load_Store);
|
||||
RHICmdList.BeginRenderPass(RPInfo, TEXT("VisualizeTexture"));
|
||||
RHICmdList.SetViewport(DestRect.Min.X, DestRect.Min.Y, 0.0f, DestRect.Max.X, DestRect.Max.Y, 1.0f);
|
||||
|
||||
FGraphicsPipelineStateInitializer GraphicsPSOInit;
|
||||
@@ -495,6 +494,7 @@ void FVisualizeTexturePresent::PresentContent(FRHICommandListImmediate& RHICmdLi
|
||||
*VertexShader,
|
||||
EDRF_Default);
|
||||
}
|
||||
RHICmdList.EndRenderPass();
|
||||
|
||||
FRenderTargetTemp TempRenderTarget(View, View.UnconstrainedViewRect.Size());
|
||||
FCanvas Canvas(&TempRenderTarget, NULL, View.Family->CurrentRealTime, View.Family->CurrentWorldTime, View.Family->DeltaWorldTime, View.GetFeatureLevel());
|
||||
|
||||
Reference in New Issue
Block a user