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