Commit Graph

343 Commits

Author SHA1 Message Date
David Harvey
cb655c8881 WindowsMixedReality uplugin syntax fix
#jira UE-149794
#rnx
#rb trivial
#preflight skip

[CL 20361965 by David Harvey in ue5-main branch]
2022-05-25 06:00:43 -04:00
David Harvey
5960c816c6 HoloLens build rules: WindowsMixedReality
#preflight 628cb0e9f057b981ca51f6fa
#jira UE-149794
#rnx
#rb Jeff.Fisher

[CL 20361225 by David Harvey in ue5-main branch]
2022-05-25 04:05:04 -04:00
robert manuszewski
f8a812a32f Converting hardcoded short class/enum names to pathnames ahead of ANY_PACKAGE removal
#rb trivial
#jira UE-99463
#preflight 6288fd998828ea88c8aef3d0

#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 20314896 via CL 20314897 via CL 20314903 via CL 20314904
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20315214 by robert manuszewski in ue5-main branch]
2022-05-22 10:30:02 -04:00
David Harvey
c6d15e4adf Ensure HoloLens only includes the HoloLens versions of the Windows API wrapper files.
#jira UE-151367
#rnx
#rb Jeff.Fisher
#preflight 628610139701e2d2b2efa36a

[CL 20277795 by David Harvey in ue5-main branch]
2022-05-19 05:55:47 -04:00
David Harvey
9cc4146fbc move HoloLens runtime source to platform extension folder.
#jira UE-149794
#rnx
#rb Jeff.Fisher
#preflight 6284cd49614041edb76395dc

[CL 20258963 by David Harvey in ue5-main branch]
2022-05-18 06:59:59 -04:00
christopher waters
4b9e68073c Deprecating RHICreateTexture2D and RHICreateTextureExternal2D.
#jira none
#rb zach.bethel
#preflight 627a6ec010766ef8c1f54f1e

[CL 20129702 by christopher waters in ue5-main branch]
2022-05-10 17:13:37 -04:00
zach bethel
a574adf6d5 Deprecated RHICreateTargetableShaderResource utility method, since it's not actually used to create multisampled resources. Removed instances where it appeared multiple textures were being created, but only one was actually created. Cleaned up FTextureRenderTargetResource derived classes to use TextureRHI and TextureRenderTargetRHI.
#preflight 62798ef94561731dbe14105b
#rb christopher.waters

[CL 20113900 by zach bethel in ue5-main branch]
2022-05-09 19:27:51 -04:00
Lauren Barnes
6248f8d412 Replacing legacy EditorStyle calls with AppStyle
#preflight 6272a74d2f6d177be3c6fdda
#rb Matt.Kuhlenschmidt

#ROBOMERGE-OWNER: Lauren.Barnes
#ROBOMERGE-AUTHOR: lauren.barnes
#ROBOMERGE-SOURCE: CL 20057269 via CL 20070159 via CL 20072035 via CL 20072203
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)
#ROBOMERGE-CONFLICT from-shelf

[CL 20105363 by Lauren Barnes in ue5-main branch]
2022-05-09 13:12:28 -04:00
christopher waters
7f7df46ef9 Changing uses of RHIGetNativeDevice and GetNativeResource to use the per-RHI interfaces. XR Edition.
#jira none
#rb robert.srinivasiah
#preflight 6275775bbf6585e3ee7040c5

[CL 20084067 by christopher waters in ue5-main branch]
2022-05-06 16:25:38 -04:00
fieldsJacksonG
770c1abe71 PR #9129: Add Windows 11 to supported WMR Windows Versions (Contributed by fieldsJacksonG)
ROB: Legacy fix for WMR. Kinda clumsy, but fits in with current pattern + what is done in FMicrosoftSpatialSoundModule::StartupModule()

#jira UE-150190 UE-150184
#rb Jeff.Fisher
#preflight 626a4863631e64c0b9ec52ad

#ROBOMERGE-AUTHOR: robert.srinivasiah
#ROBOMERGE-SOURCE: CL 19966611 in //UE5/Release-5.0/... via CL 19967577
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19971930 by fieldsJacksonG in ue5-main branch]
2022-04-28 18:56:52 -04:00
jeff fisher
6b73d760ff UE-145518 Connecting HoloLens 2 remotely to editor crashes the engine with FPS template project
-Added a check that the RHI is DX11, because only that is supported.  If not we log a warning and do not attempt to connect.
#jira UE-145518
#preflight 6269ccad2735a2c0eabd1570
#rb Joe.Conley

#ROBOMERGE-AUTHOR: jeff.fisher
#ROBOMERGE-SOURCE: CL 19965022 in //UE5/Release-5.0/... via CL 19966072
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19971815 by jeff fisher in ue5-main branch]
2022-04-28 18:55:01 -04:00
christopher waters
18cb677334 Converting uses of RHICreateTargetableShaderResource2D to use RHICreateTargetableShaderResource.
#jira none
#rb zach.bethel
#preflight 624341dcc667881bf4dba704

[CL 19548181 by christopher waters in ue5-main branch]
2022-03-29 16:03:46 -04:00
christopher waters
35d21d13ae Converting RHICreateTargetableShaderResourceXXX to use the new API.
RHICreateTargetableShaderResource2D changes will come in a later CL.

#jira none
#rb luke.thatcher
#preflight 6242188fc61d8a458f1ea406

[CL 19533075 by christopher waters in ue5-main branch]
2022-03-28 16:47:16 -04:00
Jeff Fisher
e5f4b68114 WindowsMixedReality UE5.1 fixes
-Initializing a struct.
-Pipeline pixel density because it is accessed from multiple threads.
#review-19392556
#rb Jules.Blok
#preflight 62337068bc1cf28038296afe

[CL 19423447 by Jeff Fisher in ue5-main branch]
2022-03-17 13:37:01 -04:00
Jeff Fisher
b68b16462f UE-146001 //UE5/Main - Compile UnrealGame HoloLens - WindowsMixedRealityRHI.h error: 'FD3D11Texture2D': undeclared identifier
-Updated a couple type names due to rhi refactor.
#jira UE-146001
#rb build
#preflight 623206f6736af8e08227cbac

[CL 19406619 by Jeff Fisher in ue5-main branch]
2022-03-16 11:54:12 -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
christopher waters
a66dc7e7ba Restoring D3D11 includes to WindowsMixedRealityRHI.
Fixing WindowsMixedRealityHMD errors.

#jira UE-145138
#rb jeff.fisher
#preflight 6227af1ae83598518f40a464
#robomerge FNNC

[CL 19309000 by christopher waters in ue5-main branch]
2022-03-08 14:52:16 -05:00
christopher waters
b7f30cbbaf Adding minimal interfaces to D3D11 and D3D12 RHIs
- Adding ID3D12DynamicRHI and ID3D11DynamicRHI interfaces for plugins that want to touch DirectX resources/devices directly.
- Adding specific headers for including DirectX headers: D3D12ThirdParty.h and D3D11ThirdParty.h
- Modifying plugins that were using D3D11RHIPrivate.h and D3D12RHIPrivate.h to use the interfaces instead.
- Removing plugin references to UE Modules and ThirdParty libraries that were only needed because they included the private RHI headers.
- Removing D3D11RHI/Private and D3D12RHI/Private from plugin include paths.

#jira none
#rb jeannoe.morissette, kenzo.terelst, mihnea.balta, eric.mcdaniel
#preflight 6222395bb066ef60bbad004a

[CL 19267223 by christopher waters in ue5-main branch]
2022-03-04 11:34:00 -05:00
jeff fisher
a177cc7f51 Fix build break.
-WindowsMixedReality.uplugin needs to be reverted, this is referencing a module that still exists, not the plugin that was removed.
#rb build
#jira UE-134396
#preflight TBD

#ROBOMERGE-AUTHOR: jeff.fisher
#ROBOMERGE-SOURCE: CL 18984457 in //UE5/Release-5.0/... via CL 18985583 via CL 18987618
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18987970 by jeff fisher in ue5-main branch]
2022-02-14 18:30:00 -05:00
jeff fisher
975a0e6a2c UE-133356 HoloLens platform does not show in Platforms dropdown
UE-134396 Engine not taking correct HoloLens SDK
-Because the HoloLensTargetPlatform module was defined in a plugin it was missed by code which checks for the existence of such modules very early in editor startup, before any plugins are loaded.  This meant that parts of the editor never found that compiled support existed.  Other parts did so the packaging options would show up, but the menu layout was incorrect.  Possibly other features were also breaking based on this cached data saying that the platform had no support.
-We are moving the modules out of the HoloLensAR plugin into Engine/Source/Developer/HoloLens, like all other non-extension platforms.
-It was also discovered that HoloLensPlatformProperties did not enable virtual texture support.  Because HoloLens currently shares SM5 shaders with windows and the code that decides what platform properties to use for SM5 simply applies the first SM5 properties it finds shaders could be built with or without virtual texture support arbitrarily.  As a temporary fix we have enabled virtual texture support for hololens.  The properties are now the same and it doesn't matter which is chosen.  At present the windows properties are found first.
-Deleting the now empty HoloLensAR plugin.  This results in a pop up warning when opening a project which had this plugin enabled, but 5.0 seems as good a time as any for that to happen.
-Removed the now missing HoloLensAR from several projects and templates that enabled it.
-Fixed a project material that needed a new flag set for ue5.
#rb Josh.Adams Rob.srinivasiah steve.smith
#jira UE-133356 UE-134396
#preflight 620a7e7017632e94845adafd
#preflight 620a857bd332bab8531f49bb

#ROBOMERGE-AUTHOR: jeff.fisher
#ROBOMERGE-SOURCE: CL 18983886 in //UE5/Release-5.0/... via CL 18985213 via CL 18987568
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18987907 by jeff fisher in ue5-main branch]
2022-02-14 18:27:33 -05:00
steve smith
bef67cad87 Fix startup error in editor if WMR is enabled and the windows build is later than 2004 (e.g. 20H1, 20H2 etc). This is an interim fix, since the WMR path is tagged as deprecated in 5.0 and will be removed in a future version.
#jira UE-141849
#rb rob.srinivasiah, jeff.fisher
#preflight 6203143f7e40979d33bff28b
#lockdown nick.whiting

#ROBOMERGE-AUTHOR: steve.smith
#ROBOMERGE-SOURCE: CL 18913127 in //UE5/Release-5.0/... via CL 18919730 via CL 18920821
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v916-18915374)

[CL 18921485 by steve smith in ue5-main branch]
2022-02-09 13:24:06 -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
fred kimberley
7fbfaf57c8 Require explicit constructors/casts when converting between FVector, FVector3d, and FVector3f.
#jira UE-122078
#rb Andrew.Davidson, Colin.McGinley
#preflight standard build

#ROBOMERGE-AUTHOR: fred.kimberley
#ROBOMERGE-SOURCE: CL 18817999 in //UE5/Release-5.0/... via CL 18818012 via CL 18822871
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18824721 by fred kimberley in ue5-main branch]
2022-02-02 07:59:31 -05:00
jeff fisher
6b37a57100 MixedRealityInterop debug dll dependency problems
-Switched to using the release interop dll because the debug dll has dependency problems.  There appear to be incompatibilities between the interop debug config and unreal's debug config.  This is a quick fix to get the debug build working.  The interop itself will have release grade debugging info, but at least we can run and debug UE code more easily.
#rb
#jira UE-91500
#preflight 61f9c1939e4d23cd93b4258d

#ROBOMERGE-AUTHOR: jeff.fisher
#ROBOMERGE-SOURCE: CL 18817778 in //UE5/Release-5.0/... via CL 18817787 via CL 18822865
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18824697 by jeff fisher in ue5-main branch]
2022-02-02 07:58:27 -05:00
jeff fisher
28bc3ffa05 UE-91500 Hololens generated mesh work once PIE with TP_HolloensBP Template
-Fixed world mesh with hololens on WMR plugin.  WMR interop writes floats UE side was assuming doubles.  Now we assume floats in the affected buffers.
#rb Steve.Smith
#jira UE-91500
#preflight

#ROBOMERGE-AUTHOR: jeff.fisher
#ROBOMERGE-SOURCE: CL 18811641 in //UE5/Release-5.0/... via CL 18811651 via CL 18822718
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18823655 by jeff fisher in ue5-main branch]
2022-02-02 05:56:18 -05:00