Menu Close
How Can We Help?
You are here:
Print

Unreal Engine 5 Ray Tracing Tier 1.0 Support

Changes for enable Emulated Ray Tracing with Nvidia GTX (Pascal) GPUs in Unreal Engine (tested with UE5.3.2).

File \Engine\Source\Runtime\D3D12RHI\Private\D3D12Adapter.cpp

					&& FDataDrivenShaderPlatformInfo::GetSupportsRayTracing(GMaxRHIShaderPlatform)
					&& !FParse::Param(FCommandLine::Get(), TEXT("noraytracing")))
				{
					UE_LOG(LogD3D12RHI, Log, TEXT("D3D12 ray tracing tier 1.0 is supported."));

					GRHISupportsRayTracing = RHISupportsRayTracing(GMaxRHIShaderPlatform);
					GRHISupportsRayTracingShaders = GRHISupportsRayTracing && RHISupportsRayTracingShaders(GMaxRHIShaderPlatform);

					if (D3D12Caps5.RaytracingTier >= D3D12_RAYTRACING_TIER_1_1
						&& RootDevice7)
					{

// @Line 1148, comment and replace log entry:
						//UE_LOG(LogD3D12RHI, Log, TEXT("Ray tracing is disabled because D3D12 ray tracing tier 1.1 is required but only tier 1.0 is supported."));
            UE_LOG(LogD3D12RHI, Log, TEXT("Ray tracing tier 1.1 features are disabled (GTX Pascal)."));

File \Engine\Source\Runtime\D3D12RHI\Private\Windows\WindowsD3D12Device.cpp

#define DXR_ALLOW_EMULATED_RAYTRACING 1

Credits:
https://github.com/kotn3l/UnrealEngine/commit/d0f30c9edf36705eba7f849e44beb7c8f7521508
https://forums.unrealengine.com/t/solved-cant-enable-raytracing-in-ue5-gtx-1060-nvidia-pascal/231479

Comments are welcome.