# Enable Vulkan on RTXDI branch

**URL:** <https://forums.unrealengine.com/t/enable-vulkan-on-rtxdi-branch/1893726>\
**Category:** Programming & Scripting\
**Tags:** rhi, vulkan, unreal-engine, question\
**Created:** [June 7, 2024, 11:18am UTC](https://forums.unrealengine.com/t/enable-vulkan-on-rtxdi-branch/1893726 "2024-06-07T11:18:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Idrismc23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idrismc23](https://forums.unrealengine.com/u/Idrismc23)\
**Post date:** [June 7, 2024, 11:18am UTC](https://forums.unrealengine.com/t/enable-vulkan-on-rtxdi-branch/1893726/1 "2024-06-07T11:18:07Z")

</div>

Hi,

I trying to enable Vulkan in this branch [https://github.com/NvRTX/UnrealEngine/tree/nvrtx-5.3](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:

```auto
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:

```auto
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:

```auto
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

---

<div class="post-metadata">

**Author:** ![Idrismc23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idrismc23](https://forums.unrealengine.com/u/Idrismc23)\
**Post date:** [June 18, 2024, 1:44pm UTC](https://forums.unrealengine.com/t/enable-vulkan-on-rtxdi-branch/1893726/2 "2024-06-18T13:44:47Z")

</div>

bump
