NVIDIA GameWorks Integration

I’m getting shader compiler error for some of my materials with the new VXGI2-4.21 branch. I didn’t get error in v.4.20 an earlier VXGI builds.
Using now:
/tree/VXGI2-4.21

Any idea how to fix ?
Thanks.

Error: LogShaderCompilers: Warning: Failed to compile Material /Game/OldTavern/Materials//MAT_Wood.MAT_Wood for platform PCD3D_SM5, Default Material will be used in game.
LogShaderCompilers: Display: GI_UserDefinedShaderFactoryD3D11.cpp(580): Cannot compile shader: UserDefined\VoxelizePS.hlsl(407,5): warning X4000: use of potentially uninitialized variable (VxgiGetIndirectIrradiance)
/Engine/Private/ShadowProjectionCommon.ush(25,24-52): err0r X4510: ps_5_0 sampler register index (16) exceeded
LogShaderCompilers: Display: (): VxgiCompiler->compileVoxelizationPixelShader failed: Status=12

I have searched for “VxgiGetIndirectIrradiance” in the whole code and only find two file that using variable:

  • Engine\Shaders\VXGIVoxelizationPixelShader.usf
  • Engine\Source\ThirdParty\GameWorks\VXGI\include\GFSDK_VXGI.h