Commit Graph

126 Commits

Author SHA1 Message Date
zach bethel
3cc87760bd Removed cases of AddCopyToResolveTargetPass which either weren't necessary or weren't performing multisample resolves.
#preflight 628270aa046b81bf93c13e50

[CL 20226032 by zach bethel in ue5-main branch]
2022-05-16 12:09:51 -04:00
Wei Liu
355707489e Refactor of mobile custom depth/stencil to line up with pc on all mobile platform.
#jira none

#rb Dmitriy.Dyomin
#fyi Serge.Bernier
#preflight 627b87a65d003338d95018bf

[CL 20135905 by Wei Liu in ue5-main branch]
2022-05-11 06:10:52 -04:00
Wei Liu
7a856d1cc8 Fix a bug of stencil testing in PPMaterial if MobileSupportFetchBindedCustomStencilBuffer
#jira none

#rb Dmitriy.Dyomin
#preflight 626f471a4e72a74df29343c4

[CL 20006037 by Wei Liu in ue5-main branch]
2022-05-01 22:55:01 -04:00
wei liu
ae766258a1 Fix a bug of writing stencil in PPMaterial on mobile.
#jira UE-149937

#rb Dmitriy.Dyomin
#preflight 62666da07e06ec750592b34a
#lockdown Jack.Porter

#p4v-preflight-copy 19900274

#ROBOMERGE-OWNER: wei.liu
#ROBOMERGE-AUTHOR: wei.liu
#ROBOMERGE-SOURCE: CL 19899826 in //UE5/Release-5.0/... via CL 19900340
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v940-19807014)

[CL 19902161 by wei liu in ue5-main branch]
2022-04-25 10:22:27 -04:00
Charles deRousiers
61cf50b66f Change Strata binding buffer function args to take view instead of the explicit scene data.
#rb none
#jira none
#preflight 6246ee2a292f228e0914eed2
#fyi sebastien.hillaire

[CL 19586823 by Charles deRousiers in ue5-main branch]
2022-04-01 08:35:55 -04:00
Wei Liu
d3e9fe947c Initialize Strata on mobile to fix crashes on mobile.
#jira none

#rb Dmitriy.Dyomin, Sebastien.Hillaire
#preflight 6232808aef5d0f0e8ffcbf37

[CL 19415778 by Wei Liu in ue5-main branch]
2022-03-16 20:43:06 -04:00
Luke Thatcher
ee64a28f30 Copying //UE5/Dev-ParallelRendering to //UE5/Main
This change is the copy-up of work from //UE5/Dev-ParallelRendering to unify the various RHI texture types
 - The separate RHI texture types (FRHITexture2D, FRHITexture2DArray, FRHITexture3D, FRHITextureCube, FRHITextureCubeArray) have been replaced with a single type: FRHITexture.
 - Includes the required refactoring / fixes for the various platform RHIs.

The old texture types are still supported via typedefs, but will soon be marked deprecated. Future rendering code should make use of the FRHITexture type instead.

#jira UE-139559
#rb Mihnea.Balta
#preflight 622f3af819287beb2c3047f6
#robomerge[FN_ENGINEMERGE] DEV-NC

[CL 19371962 by Luke Thatcher in ue5-main branch]
2022-03-14 09:14:58 -04:00
serge bernier
7a2e3e00ae Cherrypick Kevin O. fixes (19244345 & 19259468) from ue5-release5.0
-Make sure to test against the default stencil value always
-Adding proper support for OverrideOutput in the PPM stencil skip path.
-Reverse the stencil oprands, Ref goes on the left side and Value on the right side

#rb [at]Kevin.Ortegren

#ROBOMERGE-AUTHOR: serge.bernier
#ROBOMERGE-SOURCE: CL 19353831 via CL 19353862 via CL 19355202 via CL 19357403 via CL 19357633
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19358577 by serge bernier in ue5-main branch]
2022-03-11 13:50:57 -05:00
kevin ortegren
e0a1feab84 Adding proper support for OverrideOutput in the PPM stencil skip path.
Note that this was incidentaclly working because if (PassSequence.IsEnabled(EPass::VisualizeLumenScene)) is always true, making that the last pass and not requiring any other pass to copy to the override output.

Continuation on 19244345

#jira UE-142899
#rnx
#rb zach.bethel
#preflight 6221532fc7262e0e53898286
[FYI] serge.bernier

#ROBOMERGE-AUTHOR: kevin.ortegren
#ROBOMERGE-SOURCE: CL 19259468 in //UE5/Release-5.0/... via CL 19260203
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v924-19243027)

[CL 19263845 by kevin ortegren in ue5-main branch]
2022-03-04 04:12:05 -05:00
kevin ortegren
b810a53a16 Skip post process material pass when all the pixels will fail the stencil test of the material. Corrects certain stencil test operations from executing full screen when not needed. Saves performance on platforms that are doing the stencil test in the pixel shader with a clip.
Cherry-pickked from 18906109, including my additional fixes:
*Setting RDG output to scenecolor when skipping post process material due to full stencil fail.(Avoids tripping the 'unwritten' RDG validation warning)
*Swapped operand order for stencilval and stencilref to match what the internals are doing.(This was wrong, only Equals and Not Equals worked)
*Always test the stencil clear value against the stencil ref. The stencil ref might be relying on the clear value even if no primitives write stencil. (for example if material sets Equals 0)

[FYI] serge.bernier
#rb swarm
#rnx
#preflight 621ff37f31454c90cc0e28d5
#jira UE-142899
#lockdown Mihnea.Balta

#ROBOMERGE-OWNER: kevin.ortegren
#ROBOMERGE-AUTHOR: kevin.ortegren
#ROBOMERGE-SOURCE: CL 19244345 in //UE5/Release-5.0/... via CL 19248927
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v924-19243027)

[CL 19262899 by kevin ortegren in ue5-main branch]
2022-03-04 03:03:20 -05:00
Sebastien Hillaire
cbe8136535 Added support for strata post process blend mode.
#rb none
#preflight none
#fyi charles.derousiers

[CL 19243774 by Sebastien Hillaire in ue5-main branch]
2022-03-03 10:05:56 -05:00
serge bernier
0c81d56cfe Compile fix
#rb [at]aurel.cordonnier

#ROBOMERGE-AUTHOR: serge.bernier
#ROBOMERGE-SOURCE: CL 19152481 via CL 19152673 via CL 19152691 via CL 19160441
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19161683 by serge bernier in ue5-main branch]
2022-02-25 19:55:53 -05:00
kevin ortegren
fc3acdf6d1 [Backout] - CL19146706
[FYI] Kevin.Ortegren
Original CL Desc
-----------------------------------------------------------------
Skip post process material pass when all the pixels will fail the stencil test of the material. Corrects certain stencil test operations from executing full screen when not needed. Saves performance on platforms that are doing the stencil test in the pixel shader with a clip.

#rb serge.bernier
#rnx
#preflight 6218e872a77f4c4a4ba5a6b3
#jira UE-142899


#p4v-cherrypick 18906109

#ROBOMERGE-AUTHOR: serge.bernier
#ROBOMERGE-SOURCE: CL 18900989 via CL 18901005 via CL 18901009 via CL 19148744 via CL 19148993
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19160947 by kevin ortegren in ue5-main branch]
2022-02-25 19:29:43 -05:00
kevin ortegren
4f288c3acc Skip post process material pass when all the pixels will fail the stencil test of the material. Corrects certain stencil test operations from executing full screen when not needed. Saves performance on platforms that are doing the stencil test in the pixel shader with a clip.
#rb serge.bernier
#rnx
#preflight 6218e872a77f4c4a4ba5a6b3
#jira UE-142899


#p4v-cherrypick 18906109


#ROBOMERGE-OWNER: kevin.ortegren
#ROBOMERGE-AUTHOR: serge.bernier
#ROBOMERGE-SOURCE: CL 18900989 via CL 18901005 via CL 18901009 via CL 19146706 via CL 19147637 via CL 19147656 via CL 19147669 via CL 19148219
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19156762 by kevin ortegren in ue5-main branch]
2022-02-25 16:22:08 -05:00
jason hoerner
fe5466c276 High res editor screenshot with mask fix, when the viewport aspect ratio is constrained. When a rect is specified for the screenshot, apply that rect to the mask image when merging it into the alpha of the color image, to match the rect used in the prior call to FRenderTarget::ReadPixels.
#jira FORT-451434
#rnx
#rb zach.bethel
#lockdown mihnea.balta
#preflight 620eff82e8554a6f64f74599

#ROBOMERGE-AUTHOR: jason.hoerner
#ROBOMERGE-SOURCE: CL 19082951 in //UE5/Release-5.0/... via CL 19097536
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19141061 by jason hoerner in ue5-main branch]
2022-02-24 23:44:16 -05:00
Charles deRousiers
a02d41c4ee Renamed PROJECT_STRATA into STRATA_ENABLED.
This avoids to define STRATA_ENABLED as 'env. define' for all global shaders needing a Strata specific path.

#rb none
#jira none
#fyi sebastien.hillaire
#preflight 62151b25797dbbeb472ae2eb

[CL 19074999 by Charles deRousiers in ue5-main branch]
2022-02-22 12:35:58 -05:00
serge bernier
be5b56fe91 Fix typos
#rb mickael.gilabert

#ROBOMERGE-AUTHOR: serge.bernier
#ROBOMERGE-SOURCE: CL 18979647 via CL 18979769 via CL 18979811 via CL 18979848 via CL 18992708 via CL 18993049
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18997350 by serge bernier in ue5-main branch]
2022-02-15 11:35:04 -05:00
serge bernier
245b44fd42 Skip post process material pass when all the pixels will fail the stencil test of the material. 0.1ms save on switch and will save more on mobile that are doing the stencil test in the pixel shader with a clip.
#ROBOMERGE-AUTHOR: serge.bernier
#ROBOMERGE-SOURCE: CL 18900989 via CL 18901005 via CL 18901009 via CL 18906109 via CL 18906530
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v915-18905420)

[CL 18906583 by serge bernier in ue5-main branch]
2022-02-08 14:00:07 -05:00
robert srinivasiah
3737a45475 Hololens: Dedicated Shader Platform
We can't share DDPI infrastructure with PC D3D ES3.1 because of conflicts from sharing. We need a separate shader platform.
For now, we'll just 'intrusively' plumb the new Hololens shader platform. In the future, we want to move as much code out into
Hololens-specific platform code to reduce conflict with shared paths that don't need to know about Hololens.

#rb steve.smith, christopher.waters
#jira UE-133375
#preflight 61f9ca302251c6fb596e583e

#ROBOMERGE-AUTHOR: robert.srinivasiah
#ROBOMERGE-SOURCE: CL 18818524 in //UE5/Release-5.0/... via CL 18818546 via CL 18822881
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18824735 by robert srinivasiah in ue5-main branch]
2022-02-02 08:00:15 -05:00
serge bernier
9bd5dd217f Make the fetching of the Stencil/depth in the PostProcessMaterial datadriven instead of just testing the feature level. This enable some consoles using the mobile renderer to still have the possibility to use the HiStencil and fetch directly the stencil buffer in the shader.
#jira UE-139942#rb
#rb florin.pascu

#preflight Main

#ROBOMERGE-OWNER: serge.bernier
#ROBOMERGE-AUTHOR: serge.bernier
#ROBOMERGE-SOURCE: CL 18795109 via CL 18795681 via CL 18795876 via CL 18801655 via CL 18802214
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)
#ROBOMERGE-CONFLICT from-shelf

[CL 18808079 by serge bernier in ue5-main branch]
2022-02-01 09:47:39 -05:00
Charles deRousiers
3dbbdcd80f Fix crash on mobile when Strata is disabled.
#rb none
#jira none
#preflight 61e68691152881f71cb587e1

[CL 18637420 by Charles deRousiers in ue5-main branch]
2022-01-18 04:34:36 -05:00
Charles deRousiers
aaab5fe5ad Add Strata support for fetching post-process input.
#rb none
#jira none
#fyi sebastien.hillaire
#preflight 61e06dba341d372424dece93

[CL 18600182 by Charles deRousiers in ue5-main branch]
2022-01-13 13:39:51 -05:00
Charles deRousiers
a7930a32d8 Add initial strata conversion for postprocess domain material.
#rb none
#jira none
#preflight 61dfff561e7c2075bb1e65f0
#fyi sebastien.hillaire

[CL 18595009 by Charles deRousiers in ue5-main branch]
2022-01-13 05:42:09 -05:00
aurel cordonnier
34f55d3a4a Merge from Release-Engine-Test @ 17946149 to UE5/Main
This represents UE4/Main @17911760, Release-5.0 @17915875 and Dev-PerfTest @17914035

[CL 17949667 by aurel cordonnier in ue5-main branch]
2021-10-27 15:14:40 -04:00
christopher waters
15fb3777bf Adding a required StencilRef argument to SetGraphicsPipelineState.
#jira none
#rb zach.bethel, mihnea.balta, florin.pascu
#preflight 61312f4a79ce170001d4a79e
#robomerge[bot1] emt

[CL 17422777 by christopher waters in ue5-main branch]
2021-09-03 11:59:36 -04:00