Have you tried translating GLSL code to HLSL and for some reason it never works, even through you've gone through it line by line? For example with noise functions.
Then do this!
- Save your shader to a file and add to the top:
#version 460
precision mediump float;