Adding nanite displacement to mesh turns it isvisible


This is how it looks like at first.

When I type r.Nanite.Tessellation 1, this is how it looks:
2

Is there any way to fix this? I am using Shader Model 6 and directx12. My gpu (rx 570) supports shader model 6.5.