Commit Graph

169 Commits

Author SHA1 Message Date
mihnea balta
9e78da67eb Include the D3D12 debug layer DLL in all build configurations.
We want to be able to use -d3ddebug in Test and Shipping as well.

#rnx
#jira UE-200678
#rb christopher.waters

[CL 31561775 by mihnea balta in ue5-main branch]
2024-02-16 08:16:25 -05:00
christopher waters
f995e190cd D3D12RHI dependency cleanup
- Previously, nearly every single D3D12RHI cpp file was including D3D12RHIPrivate.h first because of prior include order dependencies.
- Added appropriate includes to all headers to get them to compile independently.
- D3D12RHI cpp files can now include their similarly named headers first, so we can remove D3D12RHI from the build validation exclusion of this include order.
- NVaftermath module should always define NV_AFTERMATH. NV_AFTERMATH not being defined should be a build error, not something we fall back to being disabled.
- Fixing issue where D3D12ThirdParty.h could remove the global warning disables from other headers. This would only happen when it was included before any other header. Removing the disable of the "macro redefinition" warning since it doesn't seem to affect us anymore.
- Removed D3D12_PLATFORM_SUPPORTS_ASSERTRESOURCESTATES in favor of the more descriptive D3D12_SUPPORTS_DEBUG_COMMAND_LIST

[CL 31495752 by christopher waters in ue5-main branch]
2024-02-14 17:10:17 -05:00
tyler shaub
49a67009cc Update XInput to 1.4 and remove version checks (re-applies CL 30574982)
Marked XInput1_4.dll for delay load to avoid unnecessary loading in cookers

#jira UE-196970
#rb ben.hoffman

[CL 31095273 by tyler shaub in ue5-main branch]
2024-02-01 13:50:34 -05:00
graeme thornton
a496e745fc [Backout] - CL30574982 - Causes content worker to fail to run inside of the docker container
[FYI] ben.hoffman
Original CL Desc
-----------------------------------------------------------------
Update to XInput version 1.4. Instead of requiring the XInput 1.3 dll from DirectX, we can just add a system dependency and it'll work.

1.4 brings some small improvements and bug fixes and is the default that is shipped with Windows 10.

#jira UE-196970
#rb David.Harvey, Phillip.Kavan

[CL 30646075 by graeme thornton in ue5-main branch]
2024-01-16 16:33:33 -05:00
ben hoffman
c4017c3003 Update to XInput version 1.4. Instead of requiring the XInput 1.3 dll from DirectX, we can just add a system dependency and it'll work.
1.4 brings some small improvements and bug fixes and is the default that is shipped with Windows 10.

#jira UE-196970
#rb David.Harvey, Phillip.Kavan

[CL 30575024 by ben hoffman in ue5-main branch]
2024-01-11 14:54:27 -05:00
joe kirchoff
9cfbb6a32f Fix warnings in ModuleRules
#rnx

[CL 30431868 by joe kirchoff in ue5-main branch]
2023-12-21 13:35:12 -05:00
yuriy odonnell
cd5fbd1a8b Extend D3DX12Residency library to allow making a set of resources resident independently of command list execution
* Issue an explicit residency request when updating tile mappings for reserved resources

#jira UE-202367
#rb zach.bethel

[CL 30329586 by yuriy odonnell in ue5-main branch]
2023-12-14 15:21:43 -05:00
christopher waters
5b338d27a9 Adding support for D3D12_FEATURE_DATA_D3D12_OPTIONS19 max descriptor heap sizes to avoid the hack that creates an extra large descriptor heap. This hack started causing d3ddebug errors in more recent drivers once the drivers started implementing the new size queries.
#rb Yuriy.ODonnell

[CL 29760921 by christopher waters in ue5-main branch]
2023-11-15 17:09:20 -05:00
christopher waters
cffda7f195 Updating to Agility SDK 1.611.1
[CL 29759205 by christopher waters in ue5-main branch]
2023-11-15 16:26:13 -05:00
henrik karlsson
d5bf11be3a Fixed for header units
#rb steve.robb

[CL 28171593 by henrik karlsson in ue5-main branch]
2023-09-23 02:37:45 -04:00
joe kirchoff
c003184d57 Disable VisualStudioDTE support when compiling with clang, until the type library header generation is fixed
#rnx

[CL 28147144 by joe kirchoff in ue5-main branch]
2023-09-22 14:16:04 -04:00
joe kirchoff
8fc9771156 Don't use static functions in the DirectX module to get paths, it is not guaranteed that this module will exist
#rnx

[CL 27090677 by joe kirchoff in ue5-main branch]
2023-08-14 18:16:33 -04:00
david harvey
bdb4199eeb Remove unnecessary WindowsHWrapper.h & MinWindows.h include - both files will be automatically included by AllowWindowsPlatformTypes.h
#jira UE-152863
#rnx
#rb Josh.Adams

[CL 26912096 by david harvey in ue5-main branch]
2023-08-08 05:50:53 -04:00
joe kirchoff
9ee777178a Reference DirectX module for the include path rather than using a static function
#rnx
#jira UE-186136

[CL 26478184 by joe kirchoff in ue5-main branch]
2023-07-19 20:43:16 -04:00
christopher waters
2f8dde07be D3D build script cleanup:
- Removed unnecessary virtuals.
- HeadMountedDisplay include paths were public but only needed to be private.
- Core and RHI need to be public dependencies.
- Formatting cleanup.

[CL 25792718 by christopher waters in ue5-main branch]
2023-06-05 11:12:33 -04:00
christopher waters
c0773434db Mark d3d9.dll and d3d11.dll as Delay Loaded so they don't get loaded prematurely.
#rb elizabeth.baumel, luke.thatcher
#preflight 645120a5d863ba2621c9fb1b

[CL 25301802 by christopher waters in ue5-main branch]
2023-05-02 10:56:33 -04:00
christopher waters
abd9c5e40c Updating to Agility SDK 1.610.2
#jira none
#preflight 6442b95ac023bb1f7354b4d5

[CL 25151832 by christopher waters in ue5-main branch]
2023-04-21 15:32:40 -04:00
christopher waters
d90c1a586b Adding support for newer D3D12 interfaces.
#rb mihnea.balta
#preflight 642f464b85398c090c34d930

[CL 24965671 by christopher waters in ue5-main branch]
2023-04-07 12:09:25 -04:00
David Harvey
e7f9a2122d Windows platform extensions can use most of the normal Windows third party modules.
#jira UE-179187
#rnx
#rb pending
#preflight 6423f3ede11ce5214f6c8d3e

[CL 24832797 by David Harvey in ue5-main branch]
2023-03-29 04:35:22 -04:00
bryan sefcik
b722dbe12a Updated xinput module to work for arm64 devices.
#fyi joe.kirchoff
#preflight 641a271232723d4a20c15495

[CL 24744251 by bryan sefcik in ue5-main branch]
2023-03-22 00:43:18 -04:00
Joe Kirchoff
13e72fb70e UnrealBuildTool: Update GenerateTLH to build and touch the output file with one command, to prevent cases where the .tlh doesn't exist and isn't created. Allow typelib headers to be generated when using the clang compiler, by using the toolchain's compiler to generate them instead
#rb Tim.Smith
#preflight 6412395ed778f88975239bc0

[CL 24663129 by Joe Kirchoff in ue5-main branch]
2023-03-15 17:50:16 -04:00
robomerge
295a493288 Add an option to evict all tracked D3D12 resources when application is in the background
* Add CVar D3D12.EvictAllResidentResourcesInBackground (default: false) to control the behavior
* Modify D3DX12 Residency library to support local memory budget override
* Set the local override to 0 when application is not focused and the CVar is true

#rb mihnea.balta
#preflight 640f468b7e654e2e658ecbcb

[CL 24617040 by robomerge in ue5-main branch]
2023-03-13 13:54:06 -04:00
Ben Marsh
513a5dbec1 UBT: Fix missing errors/warnings when compiling rules files.
#preflight none

[CL 24586299 by Ben Marsh in ue5-main branch]
2023-03-09 20:00:10 -05:00
christopher waters
7c1ec8fd3d Updating WinPixEventRuntime to version 1.0.230302001
#preflight 640627e63206d45d20205275

[CL 24547472 by christopher waters in ue5-main branch]
2023-03-07 16:07:29 -05:00
Ruslan Idrisov
82d551fbe9 Direct Storage: Updated to the latest 1.1.1
#rb Eric.Renaudhoude, Chris.Waters
#jira None
#preflight 63fe4802040523beed1755d2

[CL 24446905 by Ruslan Idrisov in ue5-main branch]
2023-02-28 13:42:30 -05:00