HLSL code 'Texture2D' to 'sampler2D'

You need to use a Texture Sample, not a Texture Object.