How to fix - Build failed with IL2CPP on an empty URP project in unity 6?

I created a new URP project with unity 6 and changed the scripting backend to IL2CPP. With everything empty, I tried to build for windows but it failed with an error regarding some shader warning in the URP package.

Shader warning in ‘Hidden/Universal Render Pipeline/ScreenSpaceAmbientOcclusion’: implicit truncation of vector type at Packages/com.unity.render-pipelines.universal/Shaders/Utils/ScreenSpaceAmbientOcclusion.shader(167) (on d3d11)

What does this mean? And how to fix it?

1 Like

Providing further context:
In my Packages/Universal RP/Shaders/Utils/ScreenSpaceAmbientOcculision.shader file, in the inspector window, it shows me 2 warnings about implicit truncation of Vector type D3D at line 167 and 211.
I have no clue how to fix this. I am not sure if I can even edit any of these files since they are provided by Unity.

I have tried upgrading to unity 6000.0.25f1 and the issue still persist.

Sometimes shaders compile weird, maybe try reimporting the URP package with the right click menu?

Updating the editor to version 6000.0.28f1 did the trick