Hi,
I trying to enable Vulkan in this branch https://github.com/NvRTX/UnrealEngine/tree/nvrtx-5.3 from nvidia since it only supports DX.
So for that, I did the following:
I set GMaxRHIShaderPlatform to be SP_VULKAN_SM6 because bit number 51 is 1 and then in RenderUtils.cpp the following condition will be true:
if (GRHISupportsRayTracing && bRayTracingAllowedOnCurrentPlatform)
in DataDrivenPlatformInfo.ini
I have set bSupportsRayTracingShaders
to true
so bAllowPipeline
in DeferredShadingRenderer.cpp
will be true.
I am now getting an error:
project/proj/Saved/ShaderDebugInfo/VULKAN_SM6/Global/FLumenRadianceCacheHardwareRayTracingRGS/7"
D:/Idriss/unrealengine/Engine/Shaders/Private/RayTracing/RayTracingLightingCommon.ush(504,32): Shader FLumenRadianceCacheHardwareRayTracingRGS, Permutation 7, VF None:
/Engine/Private/RayTracing/RayTracingLightingCommon.ush(504,32): error: use of undeclared identifier 'FarFieldReferencePos'
FarFieldShadowRay.Origin += FarFieldReferencePos;
followed by this error:
LogWindows: Error: appError called: Fatal error: [File:d:\Idriss\unrealengine\Engine\Source\Runtime\RenderCore\Private\ShaderParameterStruct.cpp] [Line: 385]
Shader FOcclusionRGS, permutation 140 has unbound parameters not represented in the parameter struct:
bSceneLightingChannelsValid
Light_InvRadius
Light_Direction
Light_SourceRadius
LightingChannelMask
NormalBias
LightScissor
PixelOffset
TraceDistance
LODTransitionStart
LODTransitionEnd
AvoidSelfIntersectionTraceDistance
bTransmissionSamplingDistanceCulling
TransmissionSamplingTechnique
TransmissionMeanFreePathType
RejectionSamplingTrials
bAcceptFirstHit
bTwoSidedGeometry
MaxBiasForInexactGeometry
bUseHairVoxel
is there any solution for that?
Thanks,
Idriss