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);

 

 

posted on 2014-06-13 14:06  minggoddess  阅读(279)  评论(0编辑  收藏  举报