error: The shader requires a sampler in slot 0 which hasn't been set [XXXsampler]

About the sampler, you need to assign it to your pixelshader.

m_d3dContext.Get()->PSSetSamplers(0,1,&m_sampleState);

原文地址:https://www.cnblogs.com/minggoddess/p/3785726.html